[2025-03-14 00:00:05] Production.INFO: next invoice date [2025-03-14 00:00:05] Production.INFO: 2025-04-14 [2025-03-14 00:00:05] Production.INFO: getdaysdiff [2025-03-14 00:00:05] Production.INFO: +31 [2025-03-14 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (43,10,2,31,31,'RMScheduler',2025-03-14 00:00:05,1,0,,,0) [2025-03-14 00:00:05] Production.INFO: next invoice date [2025-03-14 00:00:05] Production.INFO: 2025-03-15 [2025-03-14 00:00:05] Production.INFO: getdaysdiff [2025-03-14 00:00:05] Production.INFO: +1 [2025-03-14 00:00:05] Production.INFO: call prc_setAccountDiscountPlan (146,21,2,28,1,'RMScheduler',2025-03-14 00:00:05,1,0,,,0) [2025-03-14 00:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 21:00:06 [end_date_ymd] => 2025-03-14 00:00:06 [RateCDR] => 1 ) [2025-03-14 00:00: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-03-13 21:00:06' and `end` < '2025-03-14 00:00: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-03-14 00:00:18] Production.INFO: count ==858 [2025-03-14 00:00:18] Production.ERROR: pbx CDR StartTime 2025-03-13 21:00:06 - End Time 2025-03-14 00:00:06 [2025-03-14 00:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 00:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675024', 'tblTempUsageDetail_20' ) start [2025-03-14 00:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675024', 'tblTempUsageDetail_20' ) end [2025-03-14 00:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675024', 'tblTempVendorCDR_20' ) start [2025-03-14 00:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675024', 'tblTempVendorCDR_20' ) end [2025-03-14 00:00:18] Production.INFO: ProcessCDR(1,14675024,1,1,2) [2025-03-14 00:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675024', 'tblTempUsageDetail_20' ) start [2025-03-14 00:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675024', 'tblTempUsageDetail_20' ) end [2025-03-14 00:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 00:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 00:00:23] Production.INFO: ==9080== Releasing lock... [2025-03-14 00:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 00:00:23] Production.INFO: 36.5 MB #Memory Used# [2025-03-14 00:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 21:01:06 [end_date_ymd] => 2025-03-14 00:01:06 [RateCDR] => 1 ) [2025-03-14 00:01: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-03-13 21:01:06' and `end` < '2025-03-14 00:01: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-03-14 00:01:18] Production.INFO: count ==402 [2025-03-14 00:01:19] Production.ERROR: pbx CDR StartTime 2025-03-13 21:01:06 - End Time 2025-03-14 00:01:06 [2025-03-14 00:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 00:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675029', 'tblTempUsageDetail_20' ) start [2025-03-14 00:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675029', 'tblTempUsageDetail_20' ) end [2025-03-14 00:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675029', 'tblTempVendorCDR_20' ) start [2025-03-14 00:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675029', 'tblTempVendorCDR_20' ) end [2025-03-14 00:01:19] Production.INFO: ProcessCDR(1,14675029,1,1,2) [2025-03-14 00:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675029', 'tblTempUsageDetail_20' ) start [2025-03-14 00:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675029', 'tblTempUsageDetail_20' ) end [2025-03-14 00:01:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 00:01:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 00:01:25] Production.INFO: ==9175== Releasing lock... [2025-03-14 00:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 00:01:25] Production.INFO: 31.75 MB #Memory Used# [2025-03-14 00:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 21:02:05 [end_date_ymd] => 2025-03-14 00:02:05 [RateCDR] => 1 ) [2025-03-14 00:02: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-03-13 21:02:05' and `end` < '2025-03-14 00:02: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-03-14 00:02:18] Production.INFO: count ==401 [2025-03-14 00:02:18] Production.ERROR: pbx CDR StartTime 2025-03-13 21:02:05 - End Time 2025-03-14 00:02:05 [2025-03-14 00:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675034', 'tblTempUsageDetail_20' ) start [2025-03-14 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675034', 'tblTempUsageDetail_20' ) end [2025-03-14 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675034', 'tblTempVendorCDR_20' ) start [2025-03-14 00:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675034', 'tblTempVendorCDR_20' ) end [2025-03-14 00:02:18] Production.INFO: ProcessCDR(1,14675034,1,1,2) [2025-03-14 00:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675034', 'tblTempUsageDetail_20' ) start [2025-03-14 00:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675034', 'tblTempUsageDetail_20' ) end [2025-03-14 00:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 00:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 00:02:22] Production.INFO: ==9257== Releasing lock... [2025-03-14 00:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 00:02:22] Production.INFO: 32 MB #Memory Used# [2025-03-14 00:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 21:03:05 [end_date_ymd] => 2025-03-14 00:03:05 [RateCDR] => 1 ) [2025-03-14 00:03: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-03-13 21:03:05' and `end` < '2025-03-14 00:03: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-03-14 00:03:18] Production.INFO: count ==398 [2025-03-14 00:03:18] Production.ERROR: pbx CDR StartTime 2025-03-13 21:03:05 - End Time 2025-03-14 00:03:05 [2025-03-14 00:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675039', 'tblTempUsageDetail_20' ) start [2025-03-14 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675039', 'tblTempUsageDetail_20' ) end [2025-03-14 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675039', 'tblTempVendorCDR_20' ) start [2025-03-14 00:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675039', 'tblTempVendorCDR_20' ) end [2025-03-14 00:03:18] Production.INFO: ProcessCDR(1,14675039,1,1,2) [2025-03-14 00:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675039', 'tblTempUsageDetail_20' ) start [2025-03-14 00:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675039', 'tblTempUsageDetail_20' ) end [2025-03-14 00:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 00:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 00:03:21] Production.INFO: ==9336== Releasing lock... [2025-03-14 00:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 00:03:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-14 00:04:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 21:04:04 [end_date_ymd] => 2025-03-14 00:04:04 [RateCDR] => 1 ) [2025-03-14 00:04: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-03-13 21:04:04' and `end` < '2025-03-14 00:04: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-03-14 00:04:17] Production.INFO: count ==398 [2025-03-14 00:04:17] Production.ERROR: pbx CDR StartTime 2025-03-13 21:04:04 - End Time 2025-03-14 00:04:04 [2025-03-14 00:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 00:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675044', 'tblTempUsageDetail_20' ) start [2025-03-14 00:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675044', 'tblTempUsageDetail_20' ) end [2025-03-14 00:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675044', 'tblTempVendorCDR_20' ) start [2025-03-14 00:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675044', 'tblTempVendorCDR_20' ) end [2025-03-14 00:04:17] Production.INFO: ProcessCDR(1,14675044,1,1,2) [2025-03-14 00:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675044', 'tblTempUsageDetail_20' ) start [2025-03-14 00:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675044', 'tblTempUsageDetail_20' ) end [2025-03-14 00:04:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 00:04:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 00:04:20] Production.INFO: ==9413== Releasing lock... [2025-03-14 00:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 00:04:20] Production.INFO: 31.75 MB #Memory Used# [2025-03-14 00:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 21:05:05 [end_date_ymd] => 2025-03-14 00:05:05 [RateCDR] => 1 ) [2025-03-14 00:05: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-03-13 21:05:05' and `end` < '2025-03-14 00:05: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-03-14 00:05:31] Production.INFO: count ==402 [2025-03-14 00:05:31] Production.ERROR: pbx CDR StartTime 2025-03-13 21:05:05 - End Time 2025-03-14 00:05:05 [2025-03-14 00:05:31] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 00:05:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675049', 'tblTempUsageDetail_20' ) start [2025-03-14 00:05:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675049', 'tblTempUsageDetail_20' ) end [2025-03-14 00:05:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675049', 'tblTempVendorCDR_20' ) start [2025-03-14 00:05:31] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675049', 'tblTempVendorCDR_20' ) end [2025-03-14 00:05:31] Production.INFO: ProcessCDR(1,14675049,1,1,2) [2025-03-14 00:05:31] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:05:32] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:05:32] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:05:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:05:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675049', 'tblTempUsageDetail_20' ) start [2025-03-14 00:05:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675049', 'tblTempUsageDetail_20' ) end [2025-03-14 00:05:34] Production.ERROR: pbx prc_insertCDR start [2025-03-14 00:05:34] Production.ERROR: pbx prc_insertCDR end [2025-03-14 00:05:34] Production.INFO: ==9490== Releasing lock... [2025-03-14 00:05:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 00:05:34] Production.INFO: 31.75 MB #Memory Used# [2025-03-14 00:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 21:06:06 [end_date_ymd] => 2025-03-14 00:06:06 [RateCDR] => 1 ) [2025-03-14 00:06: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-03-13 21:06:06' and `end` < '2025-03-14 00:06: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-03-14 00:06:27] Production.INFO: count ==394 [2025-03-14 00:06:27] Production.ERROR: pbx CDR StartTime 2025-03-13 21:06:06 - End Time 2025-03-14 00:06:06 [2025-03-14 00:06:27] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 00:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675054', 'tblTempUsageDetail_20' ) start [2025-03-14 00:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675054', 'tblTempUsageDetail_20' ) end [2025-03-14 00:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675054', 'tblTempVendorCDR_20' ) start [2025-03-14 00:06:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675054', 'tblTempVendorCDR_20' ) end [2025-03-14 00:06:27] Production.INFO: ProcessCDR(1,14675054,1,1,2) [2025-03-14 00:06:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:06:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:06:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:06:30] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675054', 'tblTempUsageDetail_20' ) start [2025-03-14 00:06:30] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675054', 'tblTempUsageDetail_20' ) end [2025-03-14 00:06:30] Production.ERROR: pbx prc_insertCDR start [2025-03-14 00:06:30] Production.ERROR: pbx prc_insertCDR end [2025-03-14 00:06:30] Production.INFO: ==9607== Releasing lock... [2025-03-14 00:06:30] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 00:06:30] Production.INFO: 31.75 MB #Memory Used# [2025-03-14 00:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 21:07:05 [end_date_ymd] => 2025-03-14 00:07:05 [RateCDR] => 1 ) [2025-03-14 00:07: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-03-13 21:07:05' and `end` < '2025-03-14 00:07: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-03-14 00:07:23] Production.INFO: count ==380 [2025-03-14 00:07:23] Production.ERROR: pbx CDR StartTime 2025-03-13 21:07:05 - End Time 2025-03-14 00:07:05 [2025-03-14 00:07:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 00:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675059', 'tblTempUsageDetail_20' ) start [2025-03-14 00:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675059', 'tblTempUsageDetail_20' ) end [2025-03-14 00:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675059', 'tblTempVendorCDR_20' ) start [2025-03-14 00:07:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675059', 'tblTempVendorCDR_20' ) end [2025-03-14 00:07:23] Production.INFO: ProcessCDR(1,14675059,1,1,2) [2025-03-14 00:07:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:07:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:07:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:07:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675059', 'tblTempUsageDetail_20' ) start [2025-03-14 00:07:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675059', 'tblTempUsageDetail_20' ) end [2025-03-14 00:07:28] Production.ERROR: pbx prc_insertCDR start [2025-03-14 00:07:28] Production.ERROR: pbx prc_insertCDR end [2025-03-14 00:07:28] Production.INFO: ==9683== Releasing lock... [2025-03-14 00:07:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 00:07:28] Production.INFO: 31.5 MB #Memory Used# [2025-03-14 00:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 21:08:05 [end_date_ymd] => 2025-03-14 00:08:05 [RateCDR] => 1 ) [2025-03-14 00:08: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-03-13 21:08:05' and `end` < '2025-03-14 00:08: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-03-14 00:08:22] Production.INFO: count ==368 [2025-03-14 00:08:22] Production.ERROR: pbx CDR StartTime 2025-03-13 21:08:05 - End Time 2025-03-14 00:08:05 [2025-03-14 00:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 00:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675064', 'tblTempUsageDetail_20' ) start [2025-03-14 00:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675064', 'tblTempUsageDetail_20' ) end [2025-03-14 00:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675064', 'tblTempVendorCDR_20' ) start [2025-03-14 00:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675064', 'tblTempVendorCDR_20' ) end [2025-03-14 00:08:22] Production.INFO: ProcessCDR(1,14675064,1,1,2) [2025-03-14 00:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675064', 'tblTempUsageDetail_20' ) start [2025-03-14 00:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675064', 'tblTempUsageDetail_20' ) end [2025-03-14 00:08:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 00:08:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 00:08:26] Production.INFO: ==9766== Releasing lock... [2025-03-14 00:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 00:08:26] Production.INFO: 31.5 MB #Memory Used# [2025-03-14 00:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 21:09:05 [end_date_ymd] => 2025-03-14 00:09:05 [RateCDR] => 1 ) [2025-03-14 00:09: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-03-13 21:09:05' and `end` < '2025-03-14 00:09: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-03-14 00:09:17] Production.INFO: count ==363 [2025-03-14 00:09:17] Production.ERROR: pbx CDR StartTime 2025-03-13 21:09:05 - End Time 2025-03-14 00:09:05 [2025-03-14 00:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 00:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675069', 'tblTempUsageDetail_20' ) start [2025-03-14 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675069', 'tblTempUsageDetail_20' ) end [2025-03-14 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675069', 'tblTempVendorCDR_20' ) start [2025-03-14 00:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675069', 'tblTempVendorCDR_20' ) end [2025-03-14 00:09:18] Production.INFO: ProcessCDR(1,14675069,1,1,2) [2025-03-14 00:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675069', 'tblTempUsageDetail_20' ) start [2025-03-14 00:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675069', 'tblTempUsageDetail_20' ) end [2025-03-14 00:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 00:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 00:09:21] Production.INFO: ==9846== Releasing lock... [2025-03-14 00:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 00:09:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-14 00:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 21:10:07 [end_date_ymd] => 2025-03-14 00:10:07 [RateCDR] => 1 ) [2025-03-14 00:10:07] 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-03-13 21:10:07' and `end` < '2025-03-14 00:10:07' 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-03-14 00:10:19] Production.INFO: count ==375 [2025-03-14 00:10:19] Production.ERROR: pbx CDR StartTime 2025-03-13 21:10:07 - End Time 2025-03-14 00:10:07 [2025-03-14 00:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675075', 'tblTempUsageDetail_20' ) start [2025-03-14 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675075', 'tblTempUsageDetail_20' ) end [2025-03-14 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675075', 'tblTempVendorCDR_20' ) start [2025-03-14 00:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675075', 'tblTempVendorCDR_20' ) end [2025-03-14 00:10:19] Production.INFO: ProcessCDR(1,14675075,1,1,2) [2025-03-14 00:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675075', 'tblTempUsageDetail_20' ) start [2025-03-14 00:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675075', 'tblTempUsageDetail_20' ) end [2025-03-14 00:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 00:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 00:10:22] Production.INFO: ==9925== Releasing lock... [2025-03-14 00:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 00:10:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-14 00:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 21:11:05 [end_date_ymd] => 2025-03-14 00:11:05 [RateCDR] => 1 ) [2025-03-14 00:11: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-03-13 21:11:05' and `end` < '2025-03-14 00:11: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-03-14 00:11:17] Production.INFO: count ==386 [2025-03-14 00:11:17] Production.ERROR: pbx CDR StartTime 2025-03-13 21:11:05 - End Time 2025-03-14 00:11:05 [2025-03-14 00:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675080', 'tblTempUsageDetail_20' ) start [2025-03-14 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675080', 'tblTempUsageDetail_20' ) end [2025-03-14 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675080', 'tblTempVendorCDR_20' ) start [2025-03-14 00:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675080', 'tblTempVendorCDR_20' ) end [2025-03-14 00:11:17] Production.INFO: ProcessCDR(1,14675080,1,1,2) [2025-03-14 00:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675080', 'tblTempUsageDetail_20' ) start [2025-03-14 00:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675080', 'tblTempUsageDetail_20' ) end [2025-03-14 00:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 00:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 00:11:22] Production.INFO: ==10006== Releasing lock... [2025-03-14 00:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 00:11:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-14 00:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 21:12:06 [end_date_ymd] => 2025-03-14 00:12:06 [RateCDR] => 1 ) [2025-03-14 00:12: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-03-13 21:12:06' and `end` < '2025-03-14 00:12: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-03-14 00:12:18] Production.INFO: count ==387 [2025-03-14 00:12:18] Production.ERROR: pbx CDR StartTime 2025-03-13 21:12:06 - End Time 2025-03-14 00:12:06 [2025-03-14 00:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675085', 'tblTempUsageDetail_20' ) start [2025-03-14 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675085', 'tblTempUsageDetail_20' ) end [2025-03-14 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675085', 'tblTempVendorCDR_20' ) start [2025-03-14 00:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675085', 'tblTempVendorCDR_20' ) end [2025-03-14 00:12:18] Production.INFO: ProcessCDR(1,14675085,1,1,2) [2025-03-14 00:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675085', 'tblTempUsageDetail_20' ) start [2025-03-14 00:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675085', 'tblTempUsageDetail_20' ) end [2025-03-14 00:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 00:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 00:12:21] Production.INFO: ==10085== Releasing lock... [2025-03-14 00:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 00:12:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-14 00:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 21:13:05 [end_date_ymd] => 2025-03-14 00:13:05 [RateCDR] => 1 ) [2025-03-14 00:13: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-03-13 21:13:05' and `end` < '2025-03-14 00:13: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-03-14 00:13:17] Production.INFO: count ==382 [2025-03-14 00:13:17] Production.ERROR: pbx CDR StartTime 2025-03-13 21:13:05 - End Time 2025-03-14 00:13:05 [2025-03-14 00:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675090', 'tblTempUsageDetail_20' ) start [2025-03-14 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675090', 'tblTempUsageDetail_20' ) end [2025-03-14 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675090', 'tblTempVendorCDR_20' ) start [2025-03-14 00:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675090', 'tblTempVendorCDR_20' ) end [2025-03-14 00:13:17] Production.INFO: ProcessCDR(1,14675090,1,1,2) [2025-03-14 00:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675090', 'tblTempUsageDetail_20' ) start [2025-03-14 00:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675090', 'tblTempUsageDetail_20' ) end [2025-03-14 00:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 00:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 00:13:22] Production.INFO: ==10159== Releasing lock... [2025-03-14 00:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 00:13:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-14 00:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 21:14:05 [end_date_ymd] => 2025-03-14 00:14:05 [RateCDR] => 1 ) [2025-03-14 00:14: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-03-13 21:14:05' and `end` < '2025-03-14 00:14: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-03-14 00:14:17] Production.INFO: count ==385 [2025-03-14 00:14:18] Production.ERROR: pbx CDR StartTime 2025-03-13 21:14:05 - End Time 2025-03-14 00:14:05 [2025-03-14 00:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675095', 'tblTempUsageDetail_20' ) start [2025-03-14 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675095', 'tblTempUsageDetail_20' ) end [2025-03-14 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675095', 'tblTempVendorCDR_20' ) start [2025-03-14 00:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675095', 'tblTempVendorCDR_20' ) end [2025-03-14 00:14:18] Production.INFO: ProcessCDR(1,14675095,1,1,2) [2025-03-14 00:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675095', 'tblTempUsageDetail_20' ) start [2025-03-14 00:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675095', 'tblTempUsageDetail_20' ) end [2025-03-14 00:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 00:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 00:14:21] Production.INFO: ==10237== Releasing lock... [2025-03-14 00:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 00:14:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-14 00:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 21:15:05 [end_date_ymd] => 2025-03-14 00:15:05 [RateCDR] => 1 ) [2025-03-14 00:15: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-03-13 21:15:05' and `end` < '2025-03-14 00:15: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-03-14 00:15:17] Production.INFO: count ==385 [2025-03-14 00:15:17] Production.ERROR: pbx CDR StartTime 2025-03-13 21:15:05 - End Time 2025-03-14 00:15:05 [2025-03-14 00:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675100', 'tblTempUsageDetail_20' ) start [2025-03-14 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675100', 'tblTempUsageDetail_20' ) end [2025-03-14 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675100', 'tblTempVendorCDR_20' ) start [2025-03-14 00:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675100', 'tblTempVendorCDR_20' ) end [2025-03-14 00:15:17] Production.INFO: ProcessCDR(1,14675100,1,1,2) [2025-03-14 00:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675100', 'tblTempUsageDetail_20' ) start [2025-03-14 00:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675100', 'tblTempUsageDetail_20' ) end [2025-03-14 00:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 00:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 00:15:21] Production.INFO: ==10327== Releasing lock... [2025-03-14 00:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 00:15:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-14 00:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 21:16:05 [end_date_ymd] => 2025-03-14 00:16:05 [RateCDR] => 1 ) [2025-03-14 00:16: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-03-13 21:16:05' and `end` < '2025-03-14 00:16: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-03-14 00:16:18] Production.INFO: count ==383 [2025-03-14 00:16:18] Production.ERROR: pbx CDR StartTime 2025-03-13 21:16:05 - End Time 2025-03-14 00:16:05 [2025-03-14 00:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675105', 'tblTempUsageDetail_20' ) start [2025-03-14 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675105', 'tblTempUsageDetail_20' ) end [2025-03-14 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675105', 'tblTempVendorCDR_20' ) start [2025-03-14 00:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675105', 'tblTempVendorCDR_20' ) end [2025-03-14 00:16:18] Production.INFO: ProcessCDR(1,14675105,1,1,2) [2025-03-14 00:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675105', 'tblTempUsageDetail_20' ) start [2025-03-14 00:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675105', 'tblTempUsageDetail_20' ) end [2025-03-14 00:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 00:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 00:16:21] Production.INFO: ==10436== Releasing lock... [2025-03-14 00:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 00:16:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-14 00:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 21:17:05 [end_date_ymd] => 2025-03-14 00:17:05 [RateCDR] => 1 ) [2025-03-14 00:17: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-03-13 21:17:05' and `end` < '2025-03-14 00:17: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-03-14 00:17:17] Production.INFO: count ==381 [2025-03-14 00:17:17] Production.ERROR: pbx CDR StartTime 2025-03-13 21:17:05 - End Time 2025-03-14 00:17:05 [2025-03-14 00:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675110', 'tblTempUsageDetail_20' ) start [2025-03-14 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675110', 'tblTempUsageDetail_20' ) end [2025-03-14 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675110', 'tblTempVendorCDR_20' ) start [2025-03-14 00:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675110', 'tblTempVendorCDR_20' ) end [2025-03-14 00:17:17] Production.INFO: ProcessCDR(1,14675110,1,1,2) [2025-03-14 00:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675110', 'tblTempUsageDetail_20' ) start [2025-03-14 00:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675110', 'tblTempUsageDetail_20' ) end [2025-03-14 00:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 00:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 00:17:21] Production.INFO: ==10551== Releasing lock... [2025-03-14 00:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 00:17:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-14 00:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 21:18:05 [end_date_ymd] => 2025-03-14 00:18:05 [RateCDR] => 1 ) [2025-03-14 00:18: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-03-13 21:18:05' and `end` < '2025-03-14 00:18: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-03-14 00:18:17] Production.INFO: count ==381 [2025-03-14 00:18:18] Production.ERROR: pbx CDR StartTime 2025-03-13 21:18:05 - End Time 2025-03-14 00:18:05 [2025-03-14 00:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675115', 'tblTempUsageDetail_20' ) start [2025-03-14 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675115', 'tblTempUsageDetail_20' ) end [2025-03-14 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675115', 'tblTempVendorCDR_20' ) start [2025-03-14 00:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675115', 'tblTempVendorCDR_20' ) end [2025-03-14 00:18:18] Production.INFO: ProcessCDR(1,14675115,1,1,2) [2025-03-14 00:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675115', 'tblTempUsageDetail_20' ) start [2025-03-14 00:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675115', 'tblTempUsageDetail_20' ) end [2025-03-14 00:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 00:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 00:18:21] Production.INFO: ==10672== Releasing lock... [2025-03-14 00:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 00:18:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-14 00:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 21:19:05 [end_date_ymd] => 2025-03-14 00:19:05 [RateCDR] => 1 ) [2025-03-14 00:19: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-03-13 21:19:05' and `end` < '2025-03-14 00:19: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-03-14 00:19:17] Production.INFO: count ==393 [2025-03-14 00:19:17] Production.ERROR: pbx CDR StartTime 2025-03-13 21:19:05 - End Time 2025-03-14 00:19:05 [2025-03-14 00:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675120', 'tblTempUsageDetail_20' ) start [2025-03-14 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675120', 'tblTempUsageDetail_20' ) end [2025-03-14 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675120', 'tblTempVendorCDR_20' ) start [2025-03-14 00:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675120', 'tblTempVendorCDR_20' ) end [2025-03-14 00:19:17] Production.INFO: ProcessCDR(1,14675120,1,1,2) [2025-03-14 00:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675120', 'tblTempUsageDetail_20' ) start [2025-03-14 00:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675120', 'tblTempUsageDetail_20' ) end [2025-03-14 00:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 00:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 00:19:21] Production.INFO: ==10799== Releasing lock... [2025-03-14 00:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 00:19:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-14 00:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 21:20:06 [end_date_ymd] => 2025-03-14 00:20:06 [RateCDR] => 1 ) [2025-03-14 00:20: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-03-13 21:20:06' and `end` < '2025-03-14 00:20: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-03-14 00:20:18] Production.INFO: count ==400 [2025-03-14 00:20:19] Production.ERROR: pbx CDR StartTime 2025-03-13 21:20:06 - End Time 2025-03-14 00:20:06 [2025-03-14 00:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675126', 'tblTempUsageDetail_20' ) start [2025-03-14 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675126', 'tblTempUsageDetail_20' ) end [2025-03-14 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675126', 'tblTempVendorCDR_20' ) start [2025-03-14 00:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675126', 'tblTempVendorCDR_20' ) end [2025-03-14 00:20:19] Production.INFO: ProcessCDR(1,14675126,1,1,2) [2025-03-14 00:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675126', 'tblTempUsageDetail_20' ) start [2025-03-14 00:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675126', 'tblTempUsageDetail_20' ) end [2025-03-14 00:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 00:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 00:20:22] Production.INFO: ==10919== Releasing lock... [2025-03-14 00:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 00:20:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-14 00:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 21:21:05 [end_date_ymd] => 2025-03-14 00:21:05 [RateCDR] => 1 ) [2025-03-14 00:21: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-03-13 21:21:05' and `end` < '2025-03-14 00:21: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-03-14 00:21:17] Production.INFO: count ==400 [2025-03-14 00:21:17] Production.ERROR: pbx CDR StartTime 2025-03-13 21:21:05 - End Time 2025-03-14 00:21:05 [2025-03-14 00:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675131', 'tblTempUsageDetail_20' ) start [2025-03-14 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675131', 'tblTempUsageDetail_20' ) end [2025-03-14 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675131', 'tblTempVendorCDR_20' ) start [2025-03-14 00:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675131', 'tblTempVendorCDR_20' ) end [2025-03-14 00:21:17] Production.INFO: ProcessCDR(1,14675131,1,1,2) [2025-03-14 00:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675131', 'tblTempUsageDetail_20' ) start [2025-03-14 00:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675131', 'tblTempUsageDetail_20' ) end [2025-03-14 00:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 00:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 00:21:21] Production.INFO: ==11040== Releasing lock... [2025-03-14 00:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 00:21:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-14 00:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 21:22:05 [end_date_ymd] => 2025-03-14 00:22:05 [RateCDR] => 1 ) [2025-03-14 00:22: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-03-13 21:22:05' and `end` < '2025-03-14 00:22: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-03-14 00:22:17] Production.INFO: count ==400 [2025-03-14 00:22:17] Production.ERROR: pbx CDR StartTime 2025-03-13 21:22:05 - End Time 2025-03-14 00:22:05 [2025-03-14 00:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 00:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675136', 'tblTempUsageDetail_20' ) start [2025-03-14 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675136', 'tblTempUsageDetail_20' ) end [2025-03-14 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675136', 'tblTempVendorCDR_20' ) start [2025-03-14 00:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675136', 'tblTempVendorCDR_20' ) end [2025-03-14 00:22:18] Production.INFO: ProcessCDR(1,14675136,1,1,2) [2025-03-14 00:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675136', 'tblTempUsageDetail_20' ) start [2025-03-14 00:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675136', 'tblTempUsageDetail_20' ) end [2025-03-14 00:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 00:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 00:22:21] Production.INFO: ==11202== Releasing lock... [2025-03-14 00:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 00:22:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-14 00:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 21:23:05 [end_date_ymd] => 2025-03-14 00:23:05 [RateCDR] => 1 ) [2025-03-14 00:23: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-03-13 21:23:05' and `end` < '2025-03-14 00:23: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-03-14 00:23:17] Production.INFO: count ==400 [2025-03-14 00:23:17] Production.ERROR: pbx CDR StartTime 2025-03-13 21:23:05 - End Time 2025-03-14 00:23:05 [2025-03-14 00:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675141', 'tblTempUsageDetail_20' ) start [2025-03-14 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675141', 'tblTempUsageDetail_20' ) end [2025-03-14 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675141', 'tblTempVendorCDR_20' ) start [2025-03-14 00:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675141', 'tblTempVendorCDR_20' ) end [2025-03-14 00:23:17] Production.INFO: ProcessCDR(1,14675141,1,1,2) [2025-03-14 00:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675141', 'tblTempUsageDetail_20' ) start [2025-03-14 00:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675141', 'tblTempUsageDetail_20' ) end [2025-03-14 00:23:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 00:23:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 00:23:20] Production.INFO: ==11324== Releasing lock... [2025-03-14 00:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 00:23:20] Production.INFO: 31.75 MB #Memory Used# [2025-03-14 00:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 21:24:06 [end_date_ymd] => 2025-03-14 00:24:06 [RateCDR] => 1 ) [2025-03-14 00:24: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-03-13 21:24:06' and `end` < '2025-03-14 00:24: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-03-14 00:24:18] Production.INFO: count ==403 [2025-03-14 00:24:18] Production.ERROR: pbx CDR StartTime 2025-03-13 21:24:06 - End Time 2025-03-14 00:24:06 [2025-03-14 00:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675146', 'tblTempUsageDetail_20' ) start [2025-03-14 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675146', 'tblTempUsageDetail_20' ) end [2025-03-14 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675146', 'tblTempVendorCDR_20' ) start [2025-03-14 00:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675146', 'tblTempVendorCDR_20' ) end [2025-03-14 00:24:18] Production.INFO: ProcessCDR(1,14675146,1,1,2) [2025-03-14 00:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675146', 'tblTempUsageDetail_20' ) start [2025-03-14 00:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675146', 'tblTempUsageDetail_20' ) end [2025-03-14 00:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 00:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 00:24:21] Production.INFO: ==11448== Releasing lock... [2025-03-14 00:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 00:24:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-14 00:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 21:25:05 [end_date_ymd] => 2025-03-14 00:25:05 [RateCDR] => 1 ) [2025-03-14 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-03-13 21:25:05' and `end` < '2025-03-14 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-03-14 00:25:17] Production.INFO: count ==402 [2025-03-14 00:25:17] Production.ERROR: pbx CDR StartTime 2025-03-13 21:25:05 - End Time 2025-03-14 00:25:05 [2025-03-14 00:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675151', 'tblTempUsageDetail_20' ) start [2025-03-14 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675151', 'tblTempUsageDetail_20' ) end [2025-03-14 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675151', 'tblTempVendorCDR_20' ) start [2025-03-14 00:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675151', 'tblTempVendorCDR_20' ) end [2025-03-14 00:25:17] Production.INFO: ProcessCDR(1,14675151,1,1,2) [2025-03-14 00:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675151', 'tblTempUsageDetail_20' ) start [2025-03-14 00:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675151', 'tblTempUsageDetail_20' ) end [2025-03-14 00:25:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 00:25:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 00:25:20] Production.INFO: ==11568== Releasing lock... [2025-03-14 00:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 00:25:20] Production.INFO: 32.25 MB #Memory Used# [2025-03-14 00:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 21:26:05 [end_date_ymd] => 2025-03-14 00:26:05 [RateCDR] => 1 ) [2025-03-14 00:26: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-03-13 21:26:05' and `end` < '2025-03-14 00:26: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-03-14 00:26:17] Production.INFO: count ==402 [2025-03-14 00:26:17] Production.ERROR: pbx CDR StartTime 2025-03-13 21:26:05 - End Time 2025-03-14 00:26:05 [2025-03-14 00:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 00:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675156', 'tblTempUsageDetail_20' ) start [2025-03-14 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675156', 'tblTempUsageDetail_20' ) end [2025-03-14 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675156', 'tblTempVendorCDR_20' ) start [2025-03-14 00:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675156', 'tblTempVendorCDR_20' ) end [2025-03-14 00:26:18] Production.INFO: ProcessCDR(1,14675156,1,1,2) [2025-03-14 00:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675156', 'tblTempUsageDetail_20' ) start [2025-03-14 00:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675156', 'tblTempUsageDetail_20' ) end [2025-03-14 00:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 00:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 00:26:21] Production.INFO: ==11693== Releasing lock... [2025-03-14 00:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 00:26:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-14 00:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 21:27:05 [end_date_ymd] => 2025-03-14 00:27:05 [RateCDR] => 1 ) [2025-03-14 00:27: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-03-13 21:27:05' and `end` < '2025-03-14 00:27: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-03-14 00:27:17] Production.INFO: count ==397 [2025-03-14 00:27:18] Production.ERROR: pbx CDR StartTime 2025-03-13 21:27:05 - End Time 2025-03-14 00:27:05 [2025-03-14 00:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675161', 'tblTempUsageDetail_20' ) start [2025-03-14 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675161', 'tblTempUsageDetail_20' ) end [2025-03-14 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675161', 'tblTempVendorCDR_20' ) start [2025-03-14 00:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675161', 'tblTempVendorCDR_20' ) end [2025-03-14 00:27:18] Production.INFO: ProcessCDR(1,14675161,1,1,2) [2025-03-14 00:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675161', 'tblTempUsageDetail_20' ) start [2025-03-14 00:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675161', 'tblTempUsageDetail_20' ) end [2025-03-14 00:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 00:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 00:27:21] Production.INFO: ==11815== Releasing lock... [2025-03-14 00:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 00:27:21] Production.INFO: 32 MB #Memory Used# [2025-03-14 00:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 21:28:05 [end_date_ymd] => 2025-03-14 00:28:05 [RateCDR] => 1 ) [2025-03-14 00:28: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-03-13 21:28:05' and `end` < '2025-03-14 00:28: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-03-14 00:28:17] Production.INFO: count ==391 [2025-03-14 00:28:17] Production.ERROR: pbx CDR StartTime 2025-03-13 21:28:05 - End Time 2025-03-14 00:28:05 [2025-03-14 00:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675166', 'tblTempUsageDetail_20' ) start [2025-03-14 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675166', 'tblTempUsageDetail_20' ) end [2025-03-14 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675166', 'tblTempVendorCDR_20' ) start [2025-03-14 00:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675166', 'tblTempVendorCDR_20' ) end [2025-03-14 00:28:17] Production.INFO: ProcessCDR(1,14675166,1,1,2) [2025-03-14 00:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675166', 'tblTempUsageDetail_20' ) start [2025-03-14 00:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675166', 'tblTempUsageDetail_20' ) end [2025-03-14 00:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 00:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 00:28:21] Production.INFO: ==11907== Releasing lock... [2025-03-14 00:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 00:28:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-14 00:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 21:29:05 [end_date_ymd] => 2025-03-14 00:29:05 [RateCDR] => 1 ) [2025-03-14 00:29: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-03-13 21:29:05' and `end` < '2025-03-14 00:29: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-03-14 00:29:17] Production.INFO: count ==387 [2025-03-14 00:29:17] Production.ERROR: pbx CDR StartTime 2025-03-13 21:29:05 - End Time 2025-03-14 00:29:05 [2025-03-14 00:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675171', 'tblTempUsageDetail_20' ) start [2025-03-14 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675171', 'tblTempUsageDetail_20' ) end [2025-03-14 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675171', 'tblTempVendorCDR_20' ) start [2025-03-14 00:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675171', 'tblTempVendorCDR_20' ) end [2025-03-14 00:29:17] Production.INFO: ProcessCDR(1,14675171,1,1,2) [2025-03-14 00:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675171', 'tblTempUsageDetail_20' ) start [2025-03-14 00:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675171', 'tblTempUsageDetail_20' ) end [2025-03-14 00:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 00:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 00:29:21] Production.INFO: ==11992== Releasing lock... [2025-03-14 00:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 00:29:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-14 00:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 21:30:05 [end_date_ymd] => 2025-03-14 00:30:05 [RateCDR] => 1 ) [2025-03-14 00:30: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-03-13 21:30:05' and `end` < '2025-03-14 00:30: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-03-14 00:30:18] Production.INFO: count ==395 [2025-03-14 00:30:18] Production.ERROR: pbx CDR StartTime 2025-03-13 21:30:05 - End Time 2025-03-14 00:30:05 [2025-03-14 00:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675177', 'tblTempUsageDetail_20' ) start [2025-03-14 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675177', 'tblTempUsageDetail_20' ) end [2025-03-14 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675177', 'tblTempVendorCDR_20' ) start [2025-03-14 00:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675177', 'tblTempVendorCDR_20' ) end [2025-03-14 00:30:18] Production.INFO: ProcessCDR(1,14675177,1,1,2) [2025-03-14 00:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675177', 'tblTempUsageDetail_20' ) start [2025-03-14 00:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675177', 'tblTempUsageDetail_20' ) end [2025-03-14 00:30:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 00:30:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 00:30:21] Production.INFO: ==12077== Releasing lock... [2025-03-14 00:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 00:30:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-14 00:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 21:31:05 [end_date_ymd] => 2025-03-14 00:31:05 [RateCDR] => 1 ) [2025-03-14 00:31: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-03-13 21:31:05' and `end` < '2025-03-14 00:31: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-03-14 00:31:17] Production.INFO: count ==398 [2025-03-14 00:31:17] Production.ERROR: pbx CDR StartTime 2025-03-13 21:31:05 - End Time 2025-03-14 00:31:05 [2025-03-14 00:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675182', 'tblTempUsageDetail_20' ) start [2025-03-14 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675182', 'tblTempUsageDetail_20' ) end [2025-03-14 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675182', 'tblTempVendorCDR_20' ) start [2025-03-14 00:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675182', 'tblTempVendorCDR_20' ) end [2025-03-14 00:31:17] Production.INFO: ProcessCDR(1,14675182,1,1,2) [2025-03-14 00:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675182', 'tblTempUsageDetail_20' ) start [2025-03-14 00:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675182', 'tblTempUsageDetail_20' ) end [2025-03-14 00:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 00:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 00:31:21] Production.INFO: ==12167== Releasing lock... [2025-03-14 00:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 00:31:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-14 00:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 21:32:05 [end_date_ymd] => 2025-03-14 00:32:05 [RateCDR] => 1 ) [2025-03-14 00:32: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-03-13 21:32:05' and `end` < '2025-03-14 00:32: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-03-14 00:32:17] Production.INFO: count ==397 [2025-03-14 00:32:17] Production.ERROR: pbx CDR StartTime 2025-03-13 21:32:05 - End Time 2025-03-14 00:32:05 [2025-03-14 00:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675187', 'tblTempUsageDetail_20' ) start [2025-03-14 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675187', 'tblTempUsageDetail_20' ) end [2025-03-14 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675187', 'tblTempVendorCDR_20' ) start [2025-03-14 00:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675187', 'tblTempVendorCDR_20' ) end [2025-03-14 00:32:17] Production.INFO: ProcessCDR(1,14675187,1,1,2) [2025-03-14 00:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675187', 'tblTempUsageDetail_20' ) start [2025-03-14 00:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675187', 'tblTempUsageDetail_20' ) end [2025-03-14 00:32:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 00:32:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 00:32:20] Production.INFO: ==12252== Releasing lock... [2025-03-14 00:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 00:32:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-14 00:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 21:33:05 [end_date_ymd] => 2025-03-14 00:33:05 [RateCDR] => 1 ) [2025-03-14 00:33: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-03-13 21:33:05' and `end` < '2025-03-14 00:33: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-03-14 00:33:17] Production.INFO: count ==396 [2025-03-14 00:33:17] Production.ERROR: pbx CDR StartTime 2025-03-13 21:33:05 - End Time 2025-03-14 00:33:05 [2025-03-14 00:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675192', 'tblTempUsageDetail_20' ) start [2025-03-14 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675192', 'tblTempUsageDetail_20' ) end [2025-03-14 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675192', 'tblTempVendorCDR_20' ) start [2025-03-14 00:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675192', 'tblTempVendorCDR_20' ) end [2025-03-14 00:33:17] Production.INFO: ProcessCDR(1,14675192,1,1,2) [2025-03-14 00:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675192', 'tblTempUsageDetail_20' ) start [2025-03-14 00:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675192', 'tblTempUsageDetail_20' ) end [2025-03-14 00:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 00:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 00:33:21] Production.INFO: ==12331== Releasing lock... [2025-03-14 00:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 00:33:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-14 00:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 21:34:05 [end_date_ymd] => 2025-03-14 00:34:05 [RateCDR] => 1 ) [2025-03-14 00:34: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-03-13 21:34:05' and `end` < '2025-03-14 00:34: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-03-14 00:34:18] Production.INFO: count ==397 [2025-03-14 00:34:18] Production.ERROR: pbx CDR StartTime 2025-03-13 21:34:05 - End Time 2025-03-14 00:34:05 [2025-03-14 00:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675197', 'tblTempUsageDetail_20' ) start [2025-03-14 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675197', 'tblTempUsageDetail_20' ) end [2025-03-14 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675197', 'tblTempVendorCDR_20' ) start [2025-03-14 00:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675197', 'tblTempVendorCDR_20' ) end [2025-03-14 00:34:18] Production.INFO: ProcessCDR(1,14675197,1,1,2) [2025-03-14 00:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675197', 'tblTempUsageDetail_20' ) start [2025-03-14 00:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675197', 'tblTempUsageDetail_20' ) end [2025-03-14 00:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 00:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 00:34:22] Production.INFO: ==12415== Releasing lock... [2025-03-14 00:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 00:34:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-14 00:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 21:35:05 [end_date_ymd] => 2025-03-14 00:35:05 [RateCDR] => 1 ) [2025-03-14 00:35: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-03-13 21:35:05' and `end` < '2025-03-14 00:35: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-03-14 00:35:17] Production.INFO: count ==396 [2025-03-14 00:35:17] Production.ERROR: pbx CDR StartTime 2025-03-13 21:35:05 - End Time 2025-03-14 00:35:05 [2025-03-14 00:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675202', 'tblTempUsageDetail_20' ) start [2025-03-14 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675202', 'tblTempUsageDetail_20' ) end [2025-03-14 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675202', 'tblTempVendorCDR_20' ) start [2025-03-14 00:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675202', 'tblTempVendorCDR_20' ) end [2025-03-14 00:35:17] Production.INFO: ProcessCDR(1,14675202,1,1,2) [2025-03-14 00:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:35:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:35:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675202', 'tblTempUsageDetail_20' ) start [2025-03-14 00:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675202', 'tblTempUsageDetail_20' ) end [2025-03-14 00:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 00:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 00:35:22] Production.INFO: ==12495== Releasing lock... [2025-03-14 00:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 00:35:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-14 00:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 21:36:05 [end_date_ymd] => 2025-03-14 00:36:05 [RateCDR] => 1 ) [2025-03-14 00:36: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-03-13 21:36:05' and `end` < '2025-03-14 00:36: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-03-14 00:36:17] Production.INFO: count ==394 [2025-03-14 00:36:17] Production.ERROR: pbx CDR StartTime 2025-03-13 21:36:05 - End Time 2025-03-14 00:36:05 [2025-03-14 00:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 00:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675207', 'tblTempUsageDetail_20' ) start [2025-03-14 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675207', 'tblTempUsageDetail_20' ) end [2025-03-14 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675207', 'tblTempVendorCDR_20' ) start [2025-03-14 00:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675207', 'tblTempVendorCDR_20' ) end [2025-03-14 00:36:18] Production.INFO: ProcessCDR(1,14675207,1,1,2) [2025-03-14 00:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675207', 'tblTempUsageDetail_20' ) start [2025-03-14 00:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675207', 'tblTempUsageDetail_20' ) end [2025-03-14 00:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 00:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 00:36:21] Production.INFO: ==12580== Releasing lock... [2025-03-14 00:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 00:36:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-14 00:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 21:37:05 [end_date_ymd] => 2025-03-14 00:37:05 [RateCDR] => 1 ) [2025-03-14 00:37: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-03-13 21:37:05' and `end` < '2025-03-14 00:37: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-03-14 00:37:17] Production.INFO: count ==387 [2025-03-14 00:37:17] Production.ERROR: pbx CDR StartTime 2025-03-13 21:37:05 - End Time 2025-03-14 00:37:05 [2025-03-14 00:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675212', 'tblTempUsageDetail_20' ) start [2025-03-14 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675212', 'tblTempUsageDetail_20' ) end [2025-03-14 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675212', 'tblTempVendorCDR_20' ) start [2025-03-14 00:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675212', 'tblTempVendorCDR_20' ) end [2025-03-14 00:37:17] Production.INFO: ProcessCDR(1,14675212,1,1,2) [2025-03-14 00:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675212', 'tblTempUsageDetail_20' ) start [2025-03-14 00:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675212', 'tblTempUsageDetail_20' ) end [2025-03-14 00:37:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 00:37:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 00:37:20] Production.INFO: ==12705== Releasing lock... [2025-03-14 00:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 00:37:20] Production.INFO: 31.75 MB #Memory Used# [2025-03-14 00:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 21:38:05 [end_date_ymd] => 2025-03-14 00:38:05 [RateCDR] => 1 ) [2025-03-14 00:38: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-03-13 21:38:05' and `end` < '2025-03-14 00:38: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-03-14 00:38:17] Production.INFO: count ==381 [2025-03-14 00:38:17] Production.ERROR: pbx CDR StartTime 2025-03-13 21:38:05 - End Time 2025-03-14 00:38:05 [2025-03-14 00:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675217', 'tblTempUsageDetail_20' ) start [2025-03-14 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675217', 'tblTempUsageDetail_20' ) end [2025-03-14 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675217', 'tblTempVendorCDR_20' ) start [2025-03-14 00:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675217', 'tblTempVendorCDR_20' ) end [2025-03-14 00:38:17] Production.INFO: ProcessCDR(1,14675217,1,1,2) [2025-03-14 00:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675217', 'tblTempUsageDetail_20' ) start [2025-03-14 00:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675217', 'tblTempUsageDetail_20' ) end [2025-03-14 00:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 00:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 00:38:21] Production.INFO: ==12788== Releasing lock... [2025-03-14 00:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 00:38:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-14 00:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 21:39:05 [end_date_ymd] => 2025-03-14 00:39:05 [RateCDR] => 1 ) [2025-03-14 00:39: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-03-13 21:39:05' and `end` < '2025-03-14 00:39: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-03-14 00:39:17] Production.INFO: count ==381 [2025-03-14 00:39:17] Production.ERROR: pbx CDR StartTime 2025-03-13 21:39:05 - End Time 2025-03-14 00:39:05 [2025-03-14 00:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675222', 'tblTempUsageDetail_20' ) start [2025-03-14 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675222', 'tblTempUsageDetail_20' ) end [2025-03-14 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675222', 'tblTempVendorCDR_20' ) start [2025-03-14 00:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675222', 'tblTempVendorCDR_20' ) end [2025-03-14 00:39:17] Production.INFO: ProcessCDR(1,14675222,1,1,2) [2025-03-14 00:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675222', 'tblTempUsageDetail_20' ) start [2025-03-14 00:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675222', 'tblTempUsageDetail_20' ) end [2025-03-14 00:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 00:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 00:39:21] Production.INFO: ==12869== Releasing lock... [2025-03-14 00:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 00:39:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-14 00:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 21:40:06 [end_date_ymd] => 2025-03-14 00:40:06 [RateCDR] => 1 ) [2025-03-14 00:40: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-03-13 21:40:06' and `end` < '2025-03-14 00:40: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-03-14 00:40:18] Production.INFO: count ==387 [2025-03-14 00:40:18] Production.ERROR: pbx CDR StartTime 2025-03-13 21:40:06 - End Time 2025-03-14 00:40:06 [2025-03-14 00:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675227', 'tblTempUsageDetail_20' ) start [2025-03-14 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675227', 'tblTempUsageDetail_20' ) end [2025-03-14 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675227', 'tblTempVendorCDR_20' ) start [2025-03-14 00:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675227', 'tblTempVendorCDR_20' ) end [2025-03-14 00:40:18] Production.INFO: ProcessCDR(1,14675227,1,1,2) [2025-03-14 00:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675227', 'tblTempUsageDetail_20' ) start [2025-03-14 00:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675227', 'tblTempUsageDetail_20' ) end [2025-03-14 00:40:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 00:40:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 00:40:21] Production.INFO: ==12951== Releasing lock... [2025-03-14 00:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 00:40:21] Production.INFO: 32 MB #Memory Used# [2025-03-14 00:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 21:41:05 [end_date_ymd] => 2025-03-14 00:41:05 [RateCDR] => 1 ) [2025-03-14 00:41: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-03-13 21:41:05' and `end` < '2025-03-14 00:41: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-03-14 00:41:17] Production.INFO: count ==398 [2025-03-14 00:41:17] Production.ERROR: pbx CDR StartTime 2025-03-13 21:41:05 - End Time 2025-03-14 00:41:05 [2025-03-14 00:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675233', 'tblTempUsageDetail_20' ) start [2025-03-14 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675233', 'tblTempUsageDetail_20' ) end [2025-03-14 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675233', 'tblTempVendorCDR_20' ) start [2025-03-14 00:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675233', 'tblTempVendorCDR_20' ) end [2025-03-14 00:41:17] Production.INFO: ProcessCDR(1,14675233,1,1,2) [2025-03-14 00:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675233', 'tblTempUsageDetail_20' ) start [2025-03-14 00:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675233', 'tblTempUsageDetail_20' ) end [2025-03-14 00:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 00:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 00:41:22] Production.INFO: ==13036== Releasing lock... [2025-03-14 00:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 00:41:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-14 00:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 21:42:06 [end_date_ymd] => 2025-03-14 00:42:06 [RateCDR] => 1 ) [2025-03-14 00:42: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-03-13 21:42:06' and `end` < '2025-03-14 00:42: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-03-14 00:42:18] Production.INFO: count ==393 [2025-03-14 00:42:18] Production.ERROR: pbx CDR StartTime 2025-03-13 21:42:06 - End Time 2025-03-14 00:42:06 [2025-03-14 00:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675238', 'tblTempUsageDetail_20' ) start [2025-03-14 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675238', 'tblTempUsageDetail_20' ) end [2025-03-14 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675238', 'tblTempVendorCDR_20' ) start [2025-03-14 00:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675238', 'tblTempVendorCDR_20' ) end [2025-03-14 00:42:18] Production.INFO: ProcessCDR(1,14675238,1,1,2) [2025-03-14 00:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675238', 'tblTempUsageDetail_20' ) start [2025-03-14 00:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675238', 'tblTempUsageDetail_20' ) end [2025-03-14 00:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 00:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 00:42:21] Production.INFO: ==13123== Releasing lock... [2025-03-14 00:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 00:42:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-14 00:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 21:43:04 [end_date_ymd] => 2025-03-14 00:43:04 [RateCDR] => 1 ) [2025-03-14 00:43: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-03-13 21:43:04' and `end` < '2025-03-14 00:43: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-03-14 00:43:16] Production.INFO: count ==386 [2025-03-14 00:43:17] Production.ERROR: pbx CDR StartTime 2025-03-13 21:43:04 - End Time 2025-03-14 00:43:04 [2025-03-14 00:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675243', 'tblTempUsageDetail_20' ) start [2025-03-14 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675243', 'tblTempUsageDetail_20' ) end [2025-03-14 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675243', 'tblTempVendorCDR_20' ) start [2025-03-14 00:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675243', 'tblTempVendorCDR_20' ) end [2025-03-14 00:43:17] Production.INFO: ProcessCDR(1,14675243,1,1,2) [2025-03-14 00:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675243', 'tblTempUsageDetail_20' ) start [2025-03-14 00:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675243', 'tblTempUsageDetail_20' ) end [2025-03-14 00:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 00:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 00:43:22] Production.INFO: ==13205== Releasing lock... [2025-03-14 00:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 00:43:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-14 00:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 21:44:05 [end_date_ymd] => 2025-03-14 00:44:05 [RateCDR] => 1 ) [2025-03-14 00:44: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-03-13 21:44:05' and `end` < '2025-03-14 00:44: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-03-14 00:44:17] Production.INFO: count ==374 [2025-03-14 00:44:17] Production.ERROR: pbx CDR StartTime 2025-03-13 21:44:05 - End Time 2025-03-14 00:44:05 [2025-03-14 00:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675244', 'tblTempUsageDetail_20' ) start [2025-03-14 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675244', 'tblTempUsageDetail_20' ) end [2025-03-14 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675244', 'tblTempVendorCDR_20' ) start [2025-03-14 00:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675244', 'tblTempVendorCDR_20' ) end [2025-03-14 00:44:17] Production.INFO: ProcessCDR(1,14675244,1,1,2) [2025-03-14 00:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675244', 'tblTempUsageDetail_20' ) start [2025-03-14 00:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675244', 'tblTempUsageDetail_20' ) end [2025-03-14 00:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 00:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 00:44:22] Production.INFO: ==13284== Releasing lock... [2025-03-14 00:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 00:44:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-14 00:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 21:45:04 [end_date_ymd] => 2025-03-14 00:45:04 [RateCDR] => 1 ) [2025-03-14 00:45: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-03-13 21:45:04' and `end` < '2025-03-14 00:45: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-03-14 00:45:17] Production.INFO: count ==370 [2025-03-14 00:45:17] Production.ERROR: pbx CDR StartTime 2025-03-13 21:45:04 - End Time 2025-03-14 00:45:04 [2025-03-14 00:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675253', 'tblTempUsageDetail_20' ) start [2025-03-14 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675253', 'tblTempUsageDetail_20' ) end [2025-03-14 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675253', 'tblTempVendorCDR_20' ) start [2025-03-14 00:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675253', 'tblTempVendorCDR_20' ) end [2025-03-14 00:45:17] Production.INFO: ProcessCDR(1,14675253,1,1,2) [2025-03-14 00:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675253', 'tblTempUsageDetail_20' ) start [2025-03-14 00:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675253', 'tblTempUsageDetail_20' ) end [2025-03-14 00:45:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 00:45:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 00:45:20] Production.INFO: ==13366== Releasing lock... [2025-03-14 00:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 00:45:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-14 00:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 21:46:05 [end_date_ymd] => 2025-03-14 00:46:05 [RateCDR] => 1 ) [2025-03-14 00:46: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-03-13 21:46:05' and `end` < '2025-03-14 00:46: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-03-14 00:46:17] Production.INFO: count ==362 [2025-03-14 00:46:17] Production.ERROR: pbx CDR StartTime 2025-03-13 21:46:05 - End Time 2025-03-14 00:46:05 [2025-03-14 00:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675258', 'tblTempUsageDetail_20' ) start [2025-03-14 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675258', 'tblTempUsageDetail_20' ) end [2025-03-14 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675258', 'tblTempVendorCDR_20' ) start [2025-03-14 00:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675258', 'tblTempVendorCDR_20' ) end [2025-03-14 00:46:17] Production.INFO: ProcessCDR(1,14675258,1,1,2) [2025-03-14 00:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675258', 'tblTempUsageDetail_20' ) start [2025-03-14 00:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675258', 'tblTempUsageDetail_20' ) end [2025-03-14 00:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 00:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 00:46:21] Production.INFO: ==13449== Releasing lock... [2025-03-14 00:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 00:46:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-14 00:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 21:47:06 [end_date_ymd] => 2025-03-14 00:47:06 [RateCDR] => 1 ) [2025-03-14 00:47: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-03-13 21:47:06' and `end` < '2025-03-14 00:47: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-03-14 00:47:18] Production.INFO: count ==354 [2025-03-14 00:47:18] Production.ERROR: pbx CDR StartTime 2025-03-13 21:47:06 - End Time 2025-03-14 00:47:06 [2025-03-14 00:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675263', 'tblTempUsageDetail_20' ) start [2025-03-14 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675263', 'tblTempUsageDetail_20' ) end [2025-03-14 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675263', 'tblTempVendorCDR_20' ) start [2025-03-14 00:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675263', 'tblTempVendorCDR_20' ) end [2025-03-14 00:47:18] Production.INFO: ProcessCDR(1,14675263,1,1,2) [2025-03-14 00:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675263', 'tblTempUsageDetail_20' ) start [2025-03-14 00:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675263', 'tblTempUsageDetail_20' ) end [2025-03-14 00:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 00:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 00:47:21] Production.INFO: ==13536== Releasing lock... [2025-03-14 00:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 00:47:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-14 00:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 21:48:05 [end_date_ymd] => 2025-03-14 00:48:05 [RateCDR] => 1 ) [2025-03-14 00:48: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-03-13 21:48:05' and `end` < '2025-03-14 00:48: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-03-14 00:48:17] Production.INFO: count ==349 [2025-03-14 00:48:17] Production.ERROR: pbx CDR StartTime 2025-03-13 21:48:05 - End Time 2025-03-14 00:48:05 [2025-03-14 00:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675268', 'tblTempUsageDetail_20' ) start [2025-03-14 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675268', 'tblTempUsageDetail_20' ) end [2025-03-14 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675268', 'tblTempVendorCDR_20' ) start [2025-03-14 00:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675268', 'tblTempVendorCDR_20' ) end [2025-03-14 00:48:17] Production.INFO: ProcessCDR(1,14675268,1,1,2) [2025-03-14 00:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:48:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:48:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675268', 'tblTempUsageDetail_20' ) start [2025-03-14 00:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675268', 'tblTempUsageDetail_20' ) end [2025-03-14 00:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 00:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 00:48:21] Production.INFO: ==13628== Releasing lock... [2025-03-14 00:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 00:48:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-14 00:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 21:49:05 [end_date_ymd] => 2025-03-14 00:49:05 [RateCDR] => 1 ) [2025-03-14 00:49: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-03-13 21:49:05' and `end` < '2025-03-14 00:49: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-03-14 00:49:17] Production.INFO: count ==344 [2025-03-14 00:49:17] Production.ERROR: pbx CDR StartTime 2025-03-13 21:49:05 - End Time 2025-03-14 00:49:05 [2025-03-14 00:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675273', 'tblTempUsageDetail_20' ) start [2025-03-14 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675273', 'tblTempUsageDetail_20' ) end [2025-03-14 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675273', 'tblTempVendorCDR_20' ) start [2025-03-14 00:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675273', 'tblTempVendorCDR_20' ) end [2025-03-14 00:49:17] Production.INFO: ProcessCDR(1,14675273,1,1,2) [2025-03-14 00:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675273', 'tblTempUsageDetail_20' ) start [2025-03-14 00:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675273', 'tblTempUsageDetail_20' ) end [2025-03-14 00:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 00:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 00:49:22] Production.INFO: ==13762== Releasing lock... [2025-03-14 00:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 00:49:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-14 00:50:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 21:50:05 [end_date_ymd] => 2025-03-14 00:50:05 [RateCDR] => 1 ) [2025-03-14 00:50: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-03-13 21:50:05' and `end` < '2025-03-14 00:50: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-03-14 00:50:17] Production.INFO: count ==346 [2025-03-14 00:50:18] Production.ERROR: pbx CDR StartTime 2025-03-13 21:50:05 - End Time 2025-03-14 00:50:05 [2025-03-14 00:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675278', 'tblTempUsageDetail_20' ) start [2025-03-14 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675278', 'tblTempUsageDetail_20' ) end [2025-03-14 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675278', 'tblTempVendorCDR_20' ) start [2025-03-14 00:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675278', 'tblTempVendorCDR_20' ) end [2025-03-14 00:50:18] Production.INFO: ProcessCDR(1,14675278,1,1,2) [2025-03-14 00:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675278', 'tblTempUsageDetail_20' ) start [2025-03-14 00:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675278', 'tblTempUsageDetail_20' ) end [2025-03-14 00:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 00:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 00:50:21] Production.INFO: ==13883== Releasing lock... [2025-03-14 00:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 00:50:21] Production.INFO: 31 MB #Memory Used# [2025-03-14 00:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 21:51:06 [end_date_ymd] => 2025-03-14 00:51:06 [RateCDR] => 1 ) [2025-03-14 00:51: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-03-13 21:51:06' and `end` < '2025-03-14 00:51: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-03-14 00:51:18] Production.INFO: count ==359 [2025-03-14 00:51:18] Production.ERROR: pbx CDR StartTime 2025-03-13 21:51:06 - End Time 2025-03-14 00:51:06 [2025-03-14 00:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675284', 'tblTempUsageDetail_20' ) start [2025-03-14 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675284', 'tblTempUsageDetail_20' ) end [2025-03-14 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675284', 'tblTempVendorCDR_20' ) start [2025-03-14 00:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675284', 'tblTempVendorCDR_20' ) end [2025-03-14 00:51:18] Production.INFO: ProcessCDR(1,14675284,1,1,2) [2025-03-14 00:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675284', 'tblTempUsageDetail_20' ) start [2025-03-14 00:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675284', 'tblTempUsageDetail_20' ) end [2025-03-14 00:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 00:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 00:51:21] Production.INFO: ==14010== Releasing lock... [2025-03-14 00:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 00:51:21] Production.INFO: 31 MB #Memory Used# [2025-03-14 00:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 21:52:05 [end_date_ymd] => 2025-03-14 00:52:05 [RateCDR] => 1 ) [2025-03-14 00:52: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-03-13 21:52:05' and `end` < '2025-03-14 00:52: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-03-14 00:52:17] Production.INFO: count ==357 [2025-03-14 00:52:17] Production.ERROR: pbx CDR StartTime 2025-03-13 21:52:05 - End Time 2025-03-14 00:52:05 [2025-03-14 00:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675289', 'tblTempUsageDetail_20' ) start [2025-03-14 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675289', 'tblTempUsageDetail_20' ) end [2025-03-14 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675289', 'tblTempVendorCDR_20' ) start [2025-03-14 00:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675289', 'tblTempVendorCDR_20' ) end [2025-03-14 00:52:17] Production.INFO: ProcessCDR(1,14675289,1,1,2) [2025-03-14 00:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675289', 'tblTempUsageDetail_20' ) start [2025-03-14 00:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675289', 'tblTempUsageDetail_20' ) end [2025-03-14 00:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 00:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 00:52:21] Production.INFO: ==14133== Releasing lock... [2025-03-14 00:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 00:52:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-14 00:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 21:53:06 [end_date_ymd] => 2025-03-14 00:53:06 [RateCDR] => 1 ) [2025-03-14 00:53: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-03-13 21:53:06' and `end` < '2025-03-14 00:53: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-03-14 00:53:18] Production.INFO: count ==357 [2025-03-14 00:53:18] Production.ERROR: pbx CDR StartTime 2025-03-13 21:53:06 - End Time 2025-03-14 00:53:06 [2025-03-14 00:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675294', 'tblTempUsageDetail_20' ) start [2025-03-14 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675294', 'tblTempUsageDetail_20' ) end [2025-03-14 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675294', 'tblTempVendorCDR_20' ) start [2025-03-14 00:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675294', 'tblTempVendorCDR_20' ) end [2025-03-14 00:53:18] Production.INFO: ProcessCDR(1,14675294,1,1,2) [2025-03-14 00:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675294', 'tblTempUsageDetail_20' ) start [2025-03-14 00:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675294', 'tblTempUsageDetail_20' ) end [2025-03-14 00:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 00:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 00:53:21] Production.INFO: ==14295== Releasing lock... [2025-03-14 00:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 00:53:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-14 00:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 21:54:05 [end_date_ymd] => 2025-03-14 00:54:05 [RateCDR] => 1 ) [2025-03-14 00:54: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-03-13 21:54:05' and `end` < '2025-03-14 00:54: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-03-14 00:54:17] Production.INFO: count ==356 [2025-03-14 00:54:17] Production.ERROR: pbx CDR StartTime 2025-03-13 21:54:05 - End Time 2025-03-14 00:54:05 [2025-03-14 00:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675299', 'tblTempUsageDetail_20' ) start [2025-03-14 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675299', 'tblTempUsageDetail_20' ) end [2025-03-14 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675299', 'tblTempVendorCDR_20' ) start [2025-03-14 00:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675299', 'tblTempVendorCDR_20' ) end [2025-03-14 00:54:17] Production.INFO: ProcessCDR(1,14675299,1,1,2) [2025-03-14 00:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675299', 'tblTempUsageDetail_20' ) start [2025-03-14 00:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675299', 'tblTempUsageDetail_20' ) end [2025-03-14 00:54:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 00:54:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 00:54:20] Production.INFO: ==14422== Releasing lock... [2025-03-14 00:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 00:54:20] Production.INFO: 31 MB #Memory Used# [2025-03-14 00:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 21:55:05 [end_date_ymd] => 2025-03-14 00:55:05 [RateCDR] => 1 ) [2025-03-14 00:55: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-03-13 21:55:05' and `end` < '2025-03-14 00:55: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-03-14 00:55:17] Production.INFO: count ==356 [2025-03-14 00:55:17] Production.ERROR: pbx CDR StartTime 2025-03-13 21:55:05 - End Time 2025-03-14 00:55:05 [2025-03-14 00:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675304', 'tblTempUsageDetail_20' ) start [2025-03-14 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675304', 'tblTempUsageDetail_20' ) end [2025-03-14 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675304', 'tblTempVendorCDR_20' ) start [2025-03-14 00:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675304', 'tblTempVendorCDR_20' ) end [2025-03-14 00:55:17] Production.INFO: ProcessCDR(1,14675304,1,1,2) [2025-03-14 00:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675304', 'tblTempUsageDetail_20' ) start [2025-03-14 00:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675304', 'tblTempUsageDetail_20' ) end [2025-03-14 00:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 00:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 00:55:21] Production.INFO: ==14549== Releasing lock... [2025-03-14 00:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 00:55:21] Production.INFO: 31 MB #Memory Used# [2025-03-14 00:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 21:56:05 [end_date_ymd] => 2025-03-14 00:56:05 [RateCDR] => 1 ) [2025-03-14 00:56: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-03-13 21:56:05' and `end` < '2025-03-14 00:56: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-03-14 00:56:17] Production.INFO: count ==352 [2025-03-14 00:56:17] Production.ERROR: pbx CDR StartTime 2025-03-13 21:56:05 - End Time 2025-03-14 00:56:05 [2025-03-14 00:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675309', 'tblTempUsageDetail_20' ) start [2025-03-14 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675309', 'tblTempUsageDetail_20' ) end [2025-03-14 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675309', 'tblTempVendorCDR_20' ) start [2025-03-14 00:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675309', 'tblTempVendorCDR_20' ) end [2025-03-14 00:56:17] Production.INFO: ProcessCDR(1,14675309,1,1,2) [2025-03-14 00:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675309', 'tblTempUsageDetail_20' ) start [2025-03-14 00:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675309', 'tblTempUsageDetail_20' ) end [2025-03-14 00:56:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 00:56:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 00:56:20] Production.INFO: ==14677== Releasing lock... [2025-03-14 00:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 00:56:20] Production.INFO: 31 MB #Memory Used# [2025-03-14 00:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 21:57:05 [end_date_ymd] => 2025-03-14 00:57:05 [RateCDR] => 1 ) [2025-03-14 00:57: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-03-13 21:57:05' and `end` < '2025-03-14 00:57: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-03-14 00:57:18] Production.INFO: count ==356 [2025-03-14 00:57:18] Production.ERROR: pbx CDR StartTime 2025-03-13 21:57:05 - End Time 2025-03-14 00:57:05 [2025-03-14 00:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675314', 'tblTempUsageDetail_20' ) start [2025-03-14 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675314', 'tblTempUsageDetail_20' ) end [2025-03-14 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675314', 'tblTempVendorCDR_20' ) start [2025-03-14 00:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675314', 'tblTempVendorCDR_20' ) end [2025-03-14 00:57:18] Production.INFO: ProcessCDR(1,14675314,1,1,2) [2025-03-14 00:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675314', 'tblTempUsageDetail_20' ) start [2025-03-14 00:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675314', 'tblTempUsageDetail_20' ) end [2025-03-14 00:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 00:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 00:57:21] Production.INFO: ==14801== Releasing lock... [2025-03-14 00:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 00:57:21] Production.INFO: 31 MB #Memory Used# [2025-03-14 00:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 21:58:05 [end_date_ymd] => 2025-03-14 00:58:05 [RateCDR] => 1 ) [2025-03-14 00:58: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-03-13 21:58:05' and `end` < '2025-03-14 00:58: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-03-14 00:58:17] Production.INFO: count ==351 [2025-03-14 00:58:17] Production.ERROR: pbx CDR StartTime 2025-03-13 21:58:05 - End Time 2025-03-14 00:58:05 [2025-03-14 00:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675319', 'tblTempUsageDetail_20' ) start [2025-03-14 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675319', 'tblTempUsageDetail_20' ) end [2025-03-14 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675319', 'tblTempVendorCDR_20' ) start [2025-03-14 00:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675319', 'tblTempVendorCDR_20' ) end [2025-03-14 00:58:17] Production.INFO: ProcessCDR(1,14675319,1,1,2) [2025-03-14 00:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675319', 'tblTempUsageDetail_20' ) start [2025-03-14 00:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675319', 'tblTempUsageDetail_20' ) end [2025-03-14 00:58:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 00:58:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 00:58:20] Production.INFO: ==14923== Releasing lock... [2025-03-14 00:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 00:58:20] Production.INFO: 31 MB #Memory Used# [2025-03-14 00:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 21:59:05 [end_date_ymd] => 2025-03-14 00:59:05 [RateCDR] => 1 ) [2025-03-14 00:59: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-03-13 21:59:05' and `end` < '2025-03-14 00:59: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-03-14 00:59:17] Production.INFO: count ==350 [2025-03-14 00:59:17] Production.ERROR: pbx CDR StartTime 2025-03-13 21:59:05 - End Time 2025-03-14 00:59:05 [2025-03-14 00:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675324', 'tblTempUsageDetail_20' ) start [2025-03-14 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675324', 'tblTempUsageDetail_20' ) end [2025-03-14 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675324', 'tblTempVendorCDR_20' ) start [2025-03-14 00:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675324', 'tblTempVendorCDR_20' ) end [2025-03-14 00:59:17] Production.INFO: ProcessCDR(1,14675324,1,1,2) [2025-03-14 00:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 00:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675324', 'tblTempUsageDetail_20' ) start [2025-03-14 00:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675324', 'tblTempUsageDetail_20' ) end [2025-03-14 00:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 00:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 00:59:21] Production.INFO: ==15044== Releasing lock... [2025-03-14 00:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 00:59:21] Production.INFO: 31 MB #Memory Used# [2025-03-14 01:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 22:00:06 [end_date_ymd] => 2025-03-14 01:00:06 [RateCDR] => 1 ) [2025-03-14 01:00: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-03-13 22:00:06' and `end` < '2025-03-14 01:00: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-03-14 01:00:18] Production.INFO: count ==361 [2025-03-14 01:00:18] Production.ERROR: pbx CDR StartTime 2025-03-13 22:00:06 - End Time 2025-03-14 01:00:06 [2025-03-14 01:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675330', 'tblTempUsageDetail_20' ) start [2025-03-14 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675330', 'tblTempUsageDetail_20' ) end [2025-03-14 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675330', 'tblTempVendorCDR_20' ) start [2025-03-14 01:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675330', 'tblTempVendorCDR_20' ) end [2025-03-14 01:00:18] Production.INFO: ProcessCDR(1,14675330,1,1,2) [2025-03-14 01:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675330', 'tblTempUsageDetail_20' ) start [2025-03-14 01:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675330', 'tblTempUsageDetail_20' ) end [2025-03-14 01:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 01:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 01:00:22] Production.INFO: ==15169== Releasing lock... [2025-03-14 01:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 01:00:22] Production.INFO: 31 MB #Memory Used# [2025-03-14 01:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 22:01:05 [end_date_ymd] => 2025-03-14 01:01:05 [RateCDR] => 1 ) [2025-03-14 01:01: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-03-13 22:01:05' and `end` < '2025-03-14 01:01: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-03-14 01:01:17] Production.INFO: count ==358 [2025-03-14 01:01:17] Production.ERROR: pbx CDR StartTime 2025-03-13 22:01:05 - End Time 2025-03-14 01:01:05 [2025-03-14 01:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675335', 'tblTempUsageDetail_20' ) start [2025-03-14 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675335', 'tblTempUsageDetail_20' ) end [2025-03-14 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675335', 'tblTempVendorCDR_20' ) start [2025-03-14 01:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675335', 'tblTempVendorCDR_20' ) end [2025-03-14 01:01:17] Production.INFO: ProcessCDR(1,14675335,1,1,2) [2025-03-14 01:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:01:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:01:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675335', 'tblTempUsageDetail_20' ) start [2025-03-14 01:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675335', 'tblTempUsageDetail_20' ) end [2025-03-14 01:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 01:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 01:01:21] Production.INFO: ==15310== Releasing lock... [2025-03-14 01:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 01:01:21] Production.INFO: 31 MB #Memory Used# [2025-03-14 01:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 22:02:05 [end_date_ymd] => 2025-03-14 01:02:05 [RateCDR] => 1 ) [2025-03-14 01:02: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-03-13 22:02:05' and `end` < '2025-03-14 01:02: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-03-14 01:02:17] Production.INFO: count ==353 [2025-03-14 01:02:17] Production.ERROR: pbx CDR StartTime 2025-03-13 22:02:05 - End Time 2025-03-14 01:02:05 [2025-03-14 01:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675340', 'tblTempUsageDetail_20' ) start [2025-03-14 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675340', 'tblTempUsageDetail_20' ) end [2025-03-14 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675340', 'tblTempVendorCDR_20' ) start [2025-03-14 01:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675340', 'tblTempVendorCDR_20' ) end [2025-03-14 01:02:17] Production.INFO: ProcessCDR(1,14675340,1,1,2) [2025-03-14 01:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:02:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:02:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675340', 'tblTempUsageDetail_20' ) start [2025-03-14 01:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675340', 'tblTempUsageDetail_20' ) end [2025-03-14 01:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 01:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 01:02:21] Production.INFO: ==15432== Releasing lock... [2025-03-14 01:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 01:02:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-14 01:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 22:03:05 [end_date_ymd] => 2025-03-14 01:03:05 [RateCDR] => 1 ) [2025-03-14 01:03: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-03-13 22:03:05' and `end` < '2025-03-14 01:03: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-03-14 01:03:17] Production.INFO: count ==345 [2025-03-14 01:03:17] Production.ERROR: pbx CDR StartTime 2025-03-13 22:03:05 - End Time 2025-03-14 01:03:05 [2025-03-14 01:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675345', 'tblTempUsageDetail_20' ) start [2025-03-14 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675345', 'tblTempUsageDetail_20' ) end [2025-03-14 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675345', 'tblTempVendorCDR_20' ) start [2025-03-14 01:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675345', 'tblTempVendorCDR_20' ) end [2025-03-14 01:03:17] Production.INFO: ProcessCDR(1,14675345,1,1,2) [2025-03-14 01:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675345', 'tblTempUsageDetail_20' ) start [2025-03-14 01:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675345', 'tblTempUsageDetail_20' ) end [2025-03-14 01:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 01:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 01:03:21] Production.INFO: ==15555== Releasing lock... [2025-03-14 01:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 01:03:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-14 01:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 22:04:05 [end_date_ymd] => 2025-03-14 01:04:05 [RateCDR] => 1 ) [2025-03-14 01:04: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-03-13 22:04:05' and `end` < '2025-03-14 01:04: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-03-14 01:04:18] Production.INFO: count ==342 [2025-03-14 01:04:18] Production.ERROR: pbx CDR StartTime 2025-03-13 22:04:05 - End Time 2025-03-14 01:04:05 [2025-03-14 01:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675350', 'tblTempUsageDetail_20' ) start [2025-03-14 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675350', 'tblTempUsageDetail_20' ) end [2025-03-14 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675350', 'tblTempVendorCDR_20' ) start [2025-03-14 01:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675350', 'tblTempVendorCDR_20' ) end [2025-03-14 01:04:18] Production.INFO: ProcessCDR(1,14675350,1,1,2) [2025-03-14 01:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675350', 'tblTempUsageDetail_20' ) start [2025-03-14 01:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675350', 'tblTempUsageDetail_20' ) end [2025-03-14 01:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 01:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 01:04:21] Production.INFO: ==15675== Releasing lock... [2025-03-14 01:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 01:04:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-14 01:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 22:05:05 [end_date_ymd] => 2025-03-14 01:05:05 [RateCDR] => 1 ) [2025-03-14 01:05: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-03-13 22:05:05' and `end` < '2025-03-14 01:05: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-03-14 01:05:17] Production.INFO: count ==344 [2025-03-14 01:05:17] Production.ERROR: pbx CDR StartTime 2025-03-13 22:05:05 - End Time 2025-03-14 01:05:05 [2025-03-14 01:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675355', 'tblTempUsageDetail_20' ) start [2025-03-14 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675355', 'tblTempUsageDetail_20' ) end [2025-03-14 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675355', 'tblTempVendorCDR_20' ) start [2025-03-14 01:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675355', 'tblTempVendorCDR_20' ) end [2025-03-14 01:05:17] Production.INFO: ProcessCDR(1,14675355,1,1,2) [2025-03-14 01:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675355', 'tblTempUsageDetail_20' ) start [2025-03-14 01:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675355', 'tblTempUsageDetail_20' ) end [2025-03-14 01:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 01:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 01:05:22] Production.INFO: ==15794== Releasing lock... [2025-03-14 01:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 01:05:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-14 01:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 22:06:06 [end_date_ymd] => 2025-03-14 01:06:06 [RateCDR] => 1 ) [2025-03-14 01:06: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-03-13 22:06:06' and `end` < '2025-03-14 01:06: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-03-14 01:06:18] Production.INFO: count ==344 [2025-03-14 01:06:18] Production.ERROR: pbx CDR StartTime 2025-03-13 22:06:06 - End Time 2025-03-14 01:06:06 [2025-03-14 01:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675360', 'tblTempUsageDetail_20' ) start [2025-03-14 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675360', 'tblTempUsageDetail_20' ) end [2025-03-14 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675360', 'tblTempVendorCDR_20' ) start [2025-03-14 01:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675360', 'tblTempVendorCDR_20' ) end [2025-03-14 01:06:18] Production.INFO: ProcessCDR(1,14675360,1,1,2) [2025-03-14 01:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675360', 'tblTempUsageDetail_20' ) start [2025-03-14 01:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675360', 'tblTempUsageDetail_20' ) end [2025-03-14 01:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 01:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 01:06:21] Production.INFO: ==15918== Releasing lock... [2025-03-14 01:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 01:06:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-14 01:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 22:07:05 [end_date_ymd] => 2025-03-14 01:07:05 [RateCDR] => 1 ) [2025-03-14 01:07: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-03-13 22:07:05' and `end` < '2025-03-14 01:07: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-03-14 01:07:17] Production.INFO: count ==346 [2025-03-14 01:07:17] Production.ERROR: pbx CDR StartTime 2025-03-13 22:07:05 - End Time 2025-03-14 01:07:05 [2025-03-14 01:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675365', 'tblTempUsageDetail_20' ) start [2025-03-14 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675365', 'tblTempUsageDetail_20' ) end [2025-03-14 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675365', 'tblTempVendorCDR_20' ) start [2025-03-14 01:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675365', 'tblTempVendorCDR_20' ) end [2025-03-14 01:07:17] Production.INFO: ProcessCDR(1,14675365,1,1,2) [2025-03-14 01:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:07:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675365', 'tblTempUsageDetail_20' ) start [2025-03-14 01:07:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675365', 'tblTempUsageDetail_20' ) end [2025-03-14 01:07:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 01:07:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 01:07:20] Production.INFO: ==16009== Releasing lock... [2025-03-14 01:07:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 01:07:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-14 01:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 22:08:05 [end_date_ymd] => 2025-03-14 01:08:05 [RateCDR] => 1 ) [2025-03-14 01:08: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-03-13 22:08:05' and `end` < '2025-03-14 01:08: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-03-14 01:08:17] Production.INFO: count ==345 [2025-03-14 01:08:17] Production.ERROR: pbx CDR StartTime 2025-03-13 22:08:05 - End Time 2025-03-14 01:08:05 [2025-03-14 01:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675370', 'tblTempUsageDetail_20' ) start [2025-03-14 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675370', 'tblTempUsageDetail_20' ) end [2025-03-14 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675370', 'tblTempVendorCDR_20' ) start [2025-03-14 01:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675370', 'tblTempVendorCDR_20' ) end [2025-03-14 01:08:17] Production.INFO: ProcessCDR(1,14675370,1,1,2) [2025-03-14 01:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675370', 'tblTempUsageDetail_20' ) start [2025-03-14 01:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675370', 'tblTempUsageDetail_20' ) end [2025-03-14 01:08:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 01:08:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 01:08:20] Production.INFO: ==16125== Releasing lock... [2025-03-14 01:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 01:08:20] Production.INFO: 30.75 MB #Memory Used# [2025-03-14 01:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 22:09:05 [end_date_ymd] => 2025-03-14 01:09:05 [RateCDR] => 1 ) [2025-03-14 01:09: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-03-13 22:09:05' and `end` < '2025-03-14 01:09: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-03-14 01:09:17] Production.INFO: count ==344 [2025-03-14 01:09:17] Production.ERROR: pbx CDR StartTime 2025-03-13 22:09:05 - End Time 2025-03-14 01:09:05 [2025-03-14 01:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675375', 'tblTempUsageDetail_20' ) start [2025-03-14 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675375', 'tblTempUsageDetail_20' ) end [2025-03-14 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675375', 'tblTempVendorCDR_20' ) start [2025-03-14 01:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675375', 'tblTempVendorCDR_20' ) end [2025-03-14 01:09:17] Production.INFO: ProcessCDR(1,14675375,1,1,2) [2025-03-14 01:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675375', 'tblTempUsageDetail_20' ) start [2025-03-14 01:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675375', 'tblTempUsageDetail_20' ) end [2025-03-14 01:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 01:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 01:09:21] Production.INFO: ==16204== Releasing lock... [2025-03-14 01:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 01:09:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-14 01:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 22:10:06 [end_date_ymd] => 2025-03-14 01:10:06 [RateCDR] => 1 ) [2025-03-14 01:10: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-03-13 22:10:06' and `end` < '2025-03-14 01:10: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-03-14 01:10:19] Production.INFO: count ==352 [2025-03-14 01:10:19] Production.ERROR: pbx CDR StartTime 2025-03-13 22:10:06 - End Time 2025-03-14 01:10:06 [2025-03-14 01:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675381', 'tblTempUsageDetail_20' ) start [2025-03-14 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675381', 'tblTempUsageDetail_20' ) end [2025-03-14 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675381', 'tblTempVendorCDR_20' ) start [2025-03-14 01:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675381', 'tblTempVendorCDR_20' ) end [2025-03-14 01:10:19] Production.INFO: ProcessCDR(1,14675381,1,1,2) [2025-03-14 01:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675381', 'tblTempUsageDetail_20' ) start [2025-03-14 01:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675381', 'tblTempUsageDetail_20' ) end [2025-03-14 01:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 01:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 01:10:22] Production.INFO: ==16285== Releasing lock... [2025-03-14 01:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 01:10:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-14 01:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 22:11:05 [end_date_ymd] => 2025-03-14 01:11:05 [RateCDR] => 1 ) [2025-03-14 01:11: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-03-13 22:11:05' and `end` < '2025-03-14 01:11: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-03-14 01:11:18] Production.INFO: count ==352 [2025-03-14 01:11:18] Production.ERROR: pbx CDR StartTime 2025-03-13 22:11:05 - End Time 2025-03-14 01:11:05 [2025-03-14 01:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675386', 'tblTempUsageDetail_20' ) start [2025-03-14 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675386', 'tblTempUsageDetail_20' ) end [2025-03-14 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675386', 'tblTempVendorCDR_20' ) start [2025-03-14 01:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675386', 'tblTempVendorCDR_20' ) end [2025-03-14 01:11:18] Production.INFO: ProcessCDR(1,14675386,1,1,2) [2025-03-14 01:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675386', 'tblTempUsageDetail_20' ) start [2025-03-14 01:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675386', 'tblTempUsageDetail_20' ) end [2025-03-14 01:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 01:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 01:11:21] Production.INFO: ==16363== Releasing lock... [2025-03-14 01:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 01:11:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-14 01:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 22:12:06 [end_date_ymd] => 2025-03-14 01:12:06 [RateCDR] => 1 ) [2025-03-14 01:12: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-03-13 22:12:06' and `end` < '2025-03-14 01:12: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-03-14 01:12:18] Production.INFO: count ==344 [2025-03-14 01:12:18] Production.ERROR: pbx CDR StartTime 2025-03-13 22:12:06 - End Time 2025-03-14 01:12:06 [2025-03-14 01:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675391', 'tblTempUsageDetail_20' ) start [2025-03-14 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675391', 'tblTempUsageDetail_20' ) end [2025-03-14 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675391', 'tblTempVendorCDR_20' ) start [2025-03-14 01:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675391', 'tblTempVendorCDR_20' ) end [2025-03-14 01:12:18] Production.INFO: ProcessCDR(1,14675391,1,1,2) [2025-03-14 01:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675391', 'tblTempUsageDetail_20' ) start [2025-03-14 01:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675391', 'tblTempUsageDetail_20' ) end [2025-03-14 01:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 01:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 01:12:22] Production.INFO: ==16447== Releasing lock... [2025-03-14 01:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 01:12:22] Production.INFO: 31 MB #Memory Used# [2025-03-14 01:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 22:13:05 [end_date_ymd] => 2025-03-14 01:13:05 [RateCDR] => 1 ) [2025-03-14 01:13: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-03-13 22:13:05' and `end` < '2025-03-14 01:13: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-03-14 01:13:17] Production.INFO: count ==338 [2025-03-14 01:13:17] Production.ERROR: pbx CDR StartTime 2025-03-13 22:13:05 - End Time 2025-03-14 01:13:05 [2025-03-14 01:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675396', 'tblTempUsageDetail_20' ) start [2025-03-14 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675396', 'tblTempUsageDetail_20' ) end [2025-03-14 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675396', 'tblTempVendorCDR_20' ) start [2025-03-14 01:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675396', 'tblTempVendorCDR_20' ) end [2025-03-14 01:13:17] Production.INFO: ProcessCDR(1,14675396,1,1,2) [2025-03-14 01:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675396', 'tblTempUsageDetail_20' ) start [2025-03-14 01:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675396', 'tblTempUsageDetail_20' ) end [2025-03-14 01:13:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 01:13:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 01:13:20] Production.INFO: ==16523== Releasing lock... [2025-03-14 01:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 01:13:20] Production.INFO: 30.75 MB #Memory Used# [2025-03-14 01:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 22:14:05 [end_date_ymd] => 2025-03-14 01:14:05 [RateCDR] => 1 ) [2025-03-14 01:14: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-03-13 22:14:05' and `end` < '2025-03-14 01:14: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-03-14 01:14:17] Production.INFO: count ==338 [2025-03-14 01:14:17] Production.ERROR: pbx CDR StartTime 2025-03-13 22:14:05 - End Time 2025-03-14 01:14:05 [2025-03-14 01:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 01:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675401', 'tblTempUsageDetail_20' ) start [2025-03-14 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675401', 'tblTempUsageDetail_20' ) end [2025-03-14 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675401', 'tblTempVendorCDR_20' ) start [2025-03-14 01:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675401', 'tblTempVendorCDR_20' ) end [2025-03-14 01:14:18] Production.INFO: ProcessCDR(1,14675401,1,1,2) [2025-03-14 01:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675401', 'tblTempUsageDetail_20' ) start [2025-03-14 01:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675401', 'tblTempUsageDetail_20' ) end [2025-03-14 01:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 01:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 01:14:21] Production.INFO: ==16602== Releasing lock... [2025-03-14 01:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 01:14:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-14 01:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 22:15:05 [end_date_ymd] => 2025-03-14 01:15:05 [RateCDR] => 1 ) [2025-03-14 01:15: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-03-13 22:15:05' and `end` < '2025-03-14 01:15: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-03-14 01:15:17] Production.INFO: count ==343 [2025-03-14 01:15:17] Production.ERROR: pbx CDR StartTime 2025-03-13 22:15:05 - End Time 2025-03-14 01:15:05 [2025-03-14 01:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675406', 'tblTempUsageDetail_20' ) start [2025-03-14 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675406', 'tblTempUsageDetail_20' ) end [2025-03-14 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675406', 'tblTempVendorCDR_20' ) start [2025-03-14 01:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675406', 'tblTempVendorCDR_20' ) end [2025-03-14 01:15:17] Production.INFO: ProcessCDR(1,14675406,1,1,2) [2025-03-14 01:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675406', 'tblTempUsageDetail_20' ) start [2025-03-14 01:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675406', 'tblTempUsageDetail_20' ) end [2025-03-14 01:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 01:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 01:15:22] Production.INFO: ==16677== Releasing lock... [2025-03-14 01:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 01:15:22] Production.INFO: 31 MB #Memory Used# [2025-03-14 01:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 22:16:05 [end_date_ymd] => 2025-03-14 01:16:05 [RateCDR] => 1 ) [2025-03-14 01:16: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-03-13 22:16:05' and `end` < '2025-03-14 01:16: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-03-14 01:16:17] Production.INFO: count ==342 [2025-03-14 01:16:17] Production.ERROR: pbx CDR StartTime 2025-03-13 22:16:05 - End Time 2025-03-14 01:16:05 [2025-03-14 01:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675411', 'tblTempUsageDetail_20' ) start [2025-03-14 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675411', 'tblTempUsageDetail_20' ) end [2025-03-14 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675411', 'tblTempVendorCDR_20' ) start [2025-03-14 01:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675411', 'tblTempVendorCDR_20' ) end [2025-03-14 01:16:17] Production.INFO: ProcessCDR(1,14675411,1,1,2) [2025-03-14 01:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675411', 'tblTempUsageDetail_20' ) start [2025-03-14 01:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675411', 'tblTempUsageDetail_20' ) end [2025-03-14 01:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 01:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 01:16:21] Production.INFO: ==16755== Releasing lock... [2025-03-14 01:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 01:16:21] Production.INFO: 31 MB #Memory Used# [2025-03-14 01:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 22:17:05 [end_date_ymd] => 2025-03-14 01:17:05 [RateCDR] => 1 ) [2025-03-14 01:17: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-03-13 22:17:05' and `end` < '2025-03-14 01:17: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-03-14 01:17:17] Production.INFO: count ==345 [2025-03-14 01:17:17] Production.ERROR: pbx CDR StartTime 2025-03-13 22:17:05 - End Time 2025-03-14 01:17:05 [2025-03-14 01:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675416', 'tblTempUsageDetail_20' ) start [2025-03-14 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675416', 'tblTempUsageDetail_20' ) end [2025-03-14 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675416', 'tblTempVendorCDR_20' ) start [2025-03-14 01:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675416', 'tblTempVendorCDR_20' ) end [2025-03-14 01:17:17] Production.INFO: ProcessCDR(1,14675416,1,1,2) [2025-03-14 01:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675416', 'tblTempUsageDetail_20' ) start [2025-03-14 01:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675416', 'tblTempUsageDetail_20' ) end [2025-03-14 01:17:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 01:17:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 01:17:20] Production.INFO: ==16831== Releasing lock... [2025-03-14 01:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 01:17:20] Production.INFO: 31 MB #Memory Used# [2025-03-14 01:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 22:18:06 [end_date_ymd] => 2025-03-14 01:18:06 [RateCDR] => 1 ) [2025-03-14 01:18: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-03-13 22:18:06' and `end` < '2025-03-14 01:18: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-03-14 01:18:18] Production.INFO: count ==343 [2025-03-14 01:18:18] Production.ERROR: pbx CDR StartTime 2025-03-13 22:18:06 - End Time 2025-03-14 01:18:06 [2025-03-14 01:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675421', 'tblTempUsageDetail_20' ) start [2025-03-14 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675421', 'tblTempUsageDetail_20' ) end [2025-03-14 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675421', 'tblTempVendorCDR_20' ) start [2025-03-14 01:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675421', 'tblTempVendorCDR_20' ) end [2025-03-14 01:18:18] Production.INFO: ProcessCDR(1,14675421,1,1,2) [2025-03-14 01:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675421', 'tblTempUsageDetail_20' ) start [2025-03-14 01:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675421', 'tblTempUsageDetail_20' ) end [2025-03-14 01:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 01:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 01:18:21] Production.INFO: ==16921== Releasing lock... [2025-03-14 01:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 01:18:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-14 01:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 22:19:05 [end_date_ymd] => 2025-03-14 01:19:05 [RateCDR] => 1 ) [2025-03-14 01:19: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-03-13 22:19:05' and `end` < '2025-03-14 01:19: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-03-14 01:19:17] Production.INFO: count ==343 [2025-03-14 01:19:17] Production.ERROR: pbx CDR StartTime 2025-03-13 22:19:05 - End Time 2025-03-14 01:19:05 [2025-03-14 01:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675426', 'tblTempUsageDetail_20' ) start [2025-03-14 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675426', 'tblTempUsageDetail_20' ) end [2025-03-14 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675426', 'tblTempVendorCDR_20' ) start [2025-03-14 01:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675426', 'tblTempVendorCDR_20' ) end [2025-03-14 01:19:17] Production.INFO: ProcessCDR(1,14675426,1,1,2) [2025-03-14 01:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675426', 'tblTempUsageDetail_20' ) start [2025-03-14 01:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675426', 'tblTempUsageDetail_20' ) end [2025-03-14 01:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 01:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 01:19:22] Production.INFO: ==17006== Releasing lock... [2025-03-14 01:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 01:19:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-14 01:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 22:20:05 [end_date_ymd] => 2025-03-14 01:20:05 [RateCDR] => 1 ) [2025-03-14 01:20: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-03-13 22:20:05' and `end` < '2025-03-14 01:20: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-03-14 01:20:18] Production.INFO: count ==347 [2025-03-14 01:20:18] Production.ERROR: pbx CDR StartTime 2025-03-13 22:20:05 - End Time 2025-03-14 01:20:05 [2025-03-14 01:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675431', 'tblTempUsageDetail_20' ) start [2025-03-14 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675431', 'tblTempUsageDetail_20' ) end [2025-03-14 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675431', 'tblTempVendorCDR_20' ) start [2025-03-14 01:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675431', 'tblTempVendorCDR_20' ) end [2025-03-14 01:20:18] Production.INFO: ProcessCDR(1,14675431,1,1,2) [2025-03-14 01:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675431,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675431,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675431', 'tblTempUsageDetail_20' ) start [2025-03-14 01:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675431', 'tblTempUsageDetail_20' ) end [2025-03-14 01:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 01:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 01:20:21] Production.INFO: ==17090== Releasing lock... [2025-03-14 01:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 01:20:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-14 01:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 22:21:05 [end_date_ymd] => 2025-03-14 01:21:05 [RateCDR] => 1 ) [2025-03-14 01:21: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-03-13 22:21:05' and `end` < '2025-03-14 01:21: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-03-14 01:21:17] Production.INFO: count ==353 [2025-03-14 01:21:17] Production.ERROR: pbx CDR StartTime 2025-03-13 22:21:05 - End Time 2025-03-14 01:21:05 [2025-03-14 01:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675437', 'tblTempUsageDetail_20' ) start [2025-03-14 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675437', 'tblTempUsageDetail_20' ) end [2025-03-14 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675437', 'tblTempVendorCDR_20' ) start [2025-03-14 01:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675437', 'tblTempVendorCDR_20' ) end [2025-03-14 01:21:17] Production.INFO: ProcessCDR(1,14675437,1,1,2) [2025-03-14 01:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675437', 'tblTempUsageDetail_20' ) start [2025-03-14 01:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675437', 'tblTempUsageDetail_20' ) end [2025-03-14 01:21:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 01:21:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 01:21:20] Production.INFO: ==17167== Releasing lock... [2025-03-14 01:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 01:21:20] Production.INFO: 31.5 MB #Memory Used# [2025-03-14 01:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 22:22:05 [end_date_ymd] => 2025-03-14 01:22:05 [RateCDR] => 1 ) [2025-03-14 01:22: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-03-13 22:22:05' and `end` < '2025-03-14 01:22: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-03-14 01:22:18] Production.INFO: count ==354 [2025-03-14 01:22:18] Production.ERROR: pbx CDR StartTime 2025-03-13 22:22:05 - End Time 2025-03-14 01:22:05 [2025-03-14 01:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675442', 'tblTempUsageDetail_20' ) start [2025-03-14 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675442', 'tblTempUsageDetail_20' ) end [2025-03-14 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675442', 'tblTempVendorCDR_20' ) start [2025-03-14 01:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675442', 'tblTempVendorCDR_20' ) end [2025-03-14 01:22:18] Production.INFO: ProcessCDR(1,14675442,1,1,2) [2025-03-14 01:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675442', 'tblTempUsageDetail_20' ) start [2025-03-14 01:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675442', 'tblTempUsageDetail_20' ) end [2025-03-14 01:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 01:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 01:22:22] Production.INFO: ==17244== Releasing lock... [2025-03-14 01:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 01:22:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-14 01:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 22:23:06 [end_date_ymd] => 2025-03-14 01:23:06 [RateCDR] => 1 ) [2025-03-14 01:23: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-03-13 22:23:06' and `end` < '2025-03-14 01:23: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-03-14 01:23:18] Production.INFO: count ==349 [2025-03-14 01:23:18] Production.ERROR: pbx CDR StartTime 2025-03-13 22:23:06 - End Time 2025-03-14 01:23:06 [2025-03-14 01:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675447', 'tblTempUsageDetail_20' ) start [2025-03-14 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675447', 'tblTempUsageDetail_20' ) end [2025-03-14 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675447', 'tblTempVendorCDR_20' ) start [2025-03-14 01:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675447', 'tblTempVendorCDR_20' ) end [2025-03-14 01:23:18] Production.INFO: ProcessCDR(1,14675447,1,1,2) [2025-03-14 01:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675447', 'tblTempUsageDetail_20' ) start [2025-03-14 01:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675447', 'tblTempUsageDetail_20' ) end [2025-03-14 01:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 01:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 01:23:21] Production.INFO: ==17321== Releasing lock... [2025-03-14 01:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 01:23:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-14 01:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 22:24:05 [end_date_ymd] => 2025-03-14 01:24:05 [RateCDR] => 1 ) [2025-03-14 01:24: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-03-13 22:24:05' and `end` < '2025-03-14 01:24: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-03-14 01:24:17] Production.INFO: count ==352 [2025-03-14 01:24:17] Production.ERROR: pbx CDR StartTime 2025-03-13 22:24:05 - End Time 2025-03-14 01:24:05 [2025-03-14 01:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675452', 'tblTempUsageDetail_20' ) start [2025-03-14 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675452', 'tblTempUsageDetail_20' ) end [2025-03-14 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675452', 'tblTempVendorCDR_20' ) start [2025-03-14 01:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675452', 'tblTempVendorCDR_20' ) end [2025-03-14 01:24:17] Production.INFO: ProcessCDR(1,14675452,1,1,2) [2025-03-14 01:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675452', 'tblTempUsageDetail_20' ) start [2025-03-14 01:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675452', 'tblTempUsageDetail_20' ) end [2025-03-14 01:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 01:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 01:24:21] Production.INFO: ==17439== Releasing lock... [2025-03-14 01:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 01:24:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-14 01:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 22:25:06 [end_date_ymd] => 2025-03-14 01:25:06 [RateCDR] => 1 ) [2025-03-14 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-03-13 22:25:06' and `end` < '2025-03-14 01:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-14 01:25:18] Production.INFO: count ==345 [2025-03-14 01:25:18] Production.ERROR: pbx CDR StartTime 2025-03-13 22:25:06 - End Time 2025-03-14 01:25:06 [2025-03-14 01:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675457', 'tblTempUsageDetail_20' ) start [2025-03-14 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675457', 'tblTempUsageDetail_20' ) end [2025-03-14 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675457', 'tblTempVendorCDR_20' ) start [2025-03-14 01:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675457', 'tblTempVendorCDR_20' ) end [2025-03-14 01:25:18] Production.INFO: ProcessCDR(1,14675457,1,1,2) [2025-03-14 01:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:25:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675457', 'tblTempUsageDetail_20' ) start [2025-03-14 01:25:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675457', 'tblTempUsageDetail_20' ) end [2025-03-14 01:25:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 01:25:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 01:25:23] Production.INFO: ==17517== Releasing lock... [2025-03-14 01:25:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 01:25:23] Production.INFO: 30.75 MB #Memory Used# [2025-03-14 01:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 22:26:05 [end_date_ymd] => 2025-03-14 01:26:05 [RateCDR] => 1 ) [2025-03-14 01:26: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-03-13 22:26:05' and `end` < '2025-03-14 01:26: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-03-14 01:26:17] Production.INFO: count ==341 [2025-03-14 01:26:17] Production.ERROR: pbx CDR StartTime 2025-03-13 22:26:05 - End Time 2025-03-14 01:26:05 [2025-03-14 01:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675462', 'tblTempUsageDetail_20' ) start [2025-03-14 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675462', 'tblTempUsageDetail_20' ) end [2025-03-14 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675462', 'tblTempVendorCDR_20' ) start [2025-03-14 01:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675462', 'tblTempVendorCDR_20' ) end [2025-03-14 01:26:17] Production.INFO: ProcessCDR(1,14675462,1,1,2) [2025-03-14 01:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675462', 'tblTempUsageDetail_20' ) start [2025-03-14 01:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675462', 'tblTempUsageDetail_20' ) end [2025-03-14 01:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 01:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 01:26:21] Production.INFO: ==17604== Releasing lock... [2025-03-14 01:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 01:26:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-14 01:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 22:27:05 [end_date_ymd] => 2025-03-14 01:27:05 [RateCDR] => 1 ) [2025-03-14 01:27: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-03-13 22:27:05' and `end` < '2025-03-14 01:27: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-03-14 01:27:18] Production.INFO: count ==349 [2025-03-14 01:27:18] Production.ERROR: pbx CDR StartTime 2025-03-13 22:27:05 - End Time 2025-03-14 01:27:05 [2025-03-14 01:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675467', 'tblTempUsageDetail_20' ) start [2025-03-14 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675467', 'tblTempUsageDetail_20' ) end [2025-03-14 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675467', 'tblTempVendorCDR_20' ) start [2025-03-14 01:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675467', 'tblTempVendorCDR_20' ) end [2025-03-14 01:27:18] Production.INFO: ProcessCDR(1,14675467,1,1,2) [2025-03-14 01:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675467', 'tblTempUsageDetail_20' ) start [2025-03-14 01:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675467', 'tblTempUsageDetail_20' ) end [2025-03-14 01:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 01:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 01:27:21] Production.INFO: ==17685== Releasing lock... [2025-03-14 01:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 01:27:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-14 01:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 22:28:05 [end_date_ymd] => 2025-03-14 01:28:05 [RateCDR] => 1 ) [2025-03-14 01:28: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-03-13 22:28:05' and `end` < '2025-03-14 01:28: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-03-14 01:28:17] Production.INFO: count ==348 [2025-03-14 01:28:18] Production.ERROR: pbx CDR StartTime 2025-03-13 22:28:05 - End Time 2025-03-14 01:28:05 [2025-03-14 01:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675472', 'tblTempUsageDetail_20' ) start [2025-03-14 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675472', 'tblTempUsageDetail_20' ) end [2025-03-14 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675472', 'tblTempVendorCDR_20' ) start [2025-03-14 01:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675472', 'tblTempVendorCDR_20' ) end [2025-03-14 01:28:18] Production.INFO: ProcessCDR(1,14675472,1,1,2) [2025-03-14 01:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675472', 'tblTempUsageDetail_20' ) start [2025-03-14 01:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675472', 'tblTempUsageDetail_20' ) end [2025-03-14 01:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 01:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 01:28:21] Production.INFO: ==17764== Releasing lock... [2025-03-14 01:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 01:28:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-14 01:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 22:29:05 [end_date_ymd] => 2025-03-14 01:29:05 [RateCDR] => 1 ) [2025-03-14 01:29: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-03-13 22:29:05' and `end` < '2025-03-14 01:29: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-03-14 01:29:17] Production.INFO: count ==348 [2025-03-14 01:29:17] Production.ERROR: pbx CDR StartTime 2025-03-13 22:29:05 - End Time 2025-03-14 01:29:05 [2025-03-14 01:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675477', 'tblTempUsageDetail_20' ) start [2025-03-14 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675477', 'tblTempUsageDetail_20' ) end [2025-03-14 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675477', 'tblTempVendorCDR_20' ) start [2025-03-14 01:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675477', 'tblTempVendorCDR_20' ) end [2025-03-14 01:29:17] Production.INFO: ProcessCDR(1,14675477,1,1,2) [2025-03-14 01:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675477', 'tblTempUsageDetail_20' ) start [2025-03-14 01:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675477', 'tblTempUsageDetail_20' ) end [2025-03-14 01:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 01:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 01:29:21] Production.INFO: ==17840== Releasing lock... [2025-03-14 01:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 01:29:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-14 01:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 22:30:05 [end_date_ymd] => 2025-03-14 01:30:05 [RateCDR] => 1 ) [2025-03-14 01:30: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-03-13 22:30:05' and `end` < '2025-03-14 01:30: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-03-14 01:30:18] Production.INFO: count ==357 [2025-03-14 01:30:18] Production.ERROR: pbx CDR StartTime 2025-03-13 22:30:05 - End Time 2025-03-14 01:30:05 [2025-03-14 01:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675482', 'tblTempUsageDetail_20' ) start [2025-03-14 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675482', 'tblTempUsageDetail_20' ) end [2025-03-14 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675482', 'tblTempVendorCDR_20' ) start [2025-03-14 01:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675482', 'tblTempVendorCDR_20' ) end [2025-03-14 01:30:18] Production.INFO: ProcessCDR(1,14675482,1,1,2) [2025-03-14 01:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675482,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675482,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675482', 'tblTempUsageDetail_20' ) start [2025-03-14 01:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675482', 'tblTempUsageDetail_20' ) end [2025-03-14 01:30:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 01:30:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 01:30:21] Production.INFO: ==17922== Releasing lock... [2025-03-14 01:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 01:30:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-14 01:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 22:31:05 [end_date_ymd] => 2025-03-14 01:31:05 [RateCDR] => 1 ) [2025-03-14 01:31: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-03-13 22:31:05' and `end` < '2025-03-14 01:31: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-03-14 01:31:17] Production.INFO: count ==366 [2025-03-14 01:31:17] Production.ERROR: pbx CDR StartTime 2025-03-13 22:31:05 - End Time 2025-03-14 01:31:05 [2025-03-14 01:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 01:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675488', 'tblTempUsageDetail_20' ) start [2025-03-14 01:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675488', 'tblTempUsageDetail_20' ) end [2025-03-14 01:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675488', 'tblTempVendorCDR_20' ) start [2025-03-14 01:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675488', 'tblTempVendorCDR_20' ) end [2025-03-14 01:31:17] Production.INFO: ProcessCDR(1,14675488,1,1,2) [2025-03-14 01:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675488', 'tblTempUsageDetail_20' ) start [2025-03-14 01:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675488', 'tblTempUsageDetail_20' ) end [2025-03-14 01:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 01:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 01:31:21] Production.INFO: ==18000== Releasing lock... [2025-03-14 01:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 01:31:21] Production.INFO: 31 MB #Memory Used# [2025-03-14 01:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 22:32:05 [end_date_ymd] => 2025-03-14 01:32:05 [RateCDR] => 1 ) [2025-03-14 01:32: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-03-13 22:32:05' and `end` < '2025-03-14 01:32: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-03-14 01:32:17] Production.INFO: count ==370 [2025-03-14 01:32:17] Production.ERROR: pbx CDR StartTime 2025-03-13 22:32:05 - End Time 2025-03-14 01:32:05 [2025-03-14 01:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675490', 'tblTempUsageDetail_20' ) start [2025-03-14 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675490', 'tblTempUsageDetail_20' ) end [2025-03-14 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675490', 'tblTempVendorCDR_20' ) start [2025-03-14 01:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675490', 'tblTempVendorCDR_20' ) end [2025-03-14 01:32:17] Production.INFO: ProcessCDR(1,14675490,1,1,2) [2025-03-14 01:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675490,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675490,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675490', 'tblTempUsageDetail_20' ) start [2025-03-14 01:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675490', 'tblTempUsageDetail_20' ) end [2025-03-14 01:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 01:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 01:32:21] Production.INFO: ==18074== Releasing lock... [2025-03-14 01:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 01:32:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-14 01:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 22:33:05 [end_date_ymd] => 2025-03-14 01:33:05 [RateCDR] => 1 ) [2025-03-14 01:33: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-03-13 22:33:05' and `end` < '2025-03-14 01:33: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-03-14 01:33:18] Production.INFO: count ==370 [2025-03-14 01:33:18] Production.ERROR: pbx CDR StartTime 2025-03-13 22:33:05 - End Time 2025-03-14 01:33:05 [2025-03-14 01:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675498', 'tblTempUsageDetail_20' ) start [2025-03-14 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675498', 'tblTempUsageDetail_20' ) end [2025-03-14 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675498', 'tblTempVendorCDR_20' ) start [2025-03-14 01:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675498', 'tblTempVendorCDR_20' ) end [2025-03-14 01:33:18] Production.INFO: ProcessCDR(1,14675498,1,1,2) [2025-03-14 01:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675498', 'tblTempUsageDetail_20' ) start [2025-03-14 01:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675498', 'tblTempUsageDetail_20' ) end [2025-03-14 01:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 01:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 01:33:21] Production.INFO: ==18151== Releasing lock... [2025-03-14 01:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 01:33:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-14 01:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 22:34:05 [end_date_ymd] => 2025-03-14 01:34:05 [RateCDR] => 1 ) [2025-03-14 01:34: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-03-13 22:34:05' and `end` < '2025-03-14 01:34: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-03-14 01:34:17] Production.INFO: count ==370 [2025-03-14 01:34:17] Production.ERROR: pbx CDR StartTime 2025-03-13 22:34:05 - End Time 2025-03-14 01:34:05 [2025-03-14 01:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 01:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675503', 'tblTempUsageDetail_20' ) start [2025-03-14 01:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675503', 'tblTempUsageDetail_20' ) end [2025-03-14 01:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675503', 'tblTempVendorCDR_20' ) start [2025-03-14 01:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675503', 'tblTempVendorCDR_20' ) end [2025-03-14 01:34:17] Production.INFO: ProcessCDR(1,14675503,1,1,2) [2025-03-14 01:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675503', 'tblTempUsageDetail_20' ) start [2025-03-14 01:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675503', 'tblTempUsageDetail_20' ) end [2025-03-14 01:34:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 01:34:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 01:34:20] Production.INFO: ==18230== Releasing lock... [2025-03-14 01:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 01:34:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-14 01:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 22:35:05 [end_date_ymd] => 2025-03-14 01:35:05 [RateCDR] => 1 ) [2025-03-14 01:35: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-03-13 22:35:05' and `end` < '2025-03-14 01:35: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-03-14 01:35:17] Production.INFO: count ==370 [2025-03-14 01:35:17] Production.ERROR: pbx CDR StartTime 2025-03-13 22:35:05 - End Time 2025-03-14 01:35:05 [2025-03-14 01:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675508', 'tblTempUsageDetail_20' ) start [2025-03-14 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675508', 'tblTempUsageDetail_20' ) end [2025-03-14 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675508', 'tblTempVendorCDR_20' ) start [2025-03-14 01:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675508', 'tblTempVendorCDR_20' ) end [2025-03-14 01:35:17] Production.INFO: ProcessCDR(1,14675508,1,1,2) [2025-03-14 01:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675508', 'tblTempUsageDetail_20' ) start [2025-03-14 01:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675508', 'tblTempUsageDetail_20' ) end [2025-03-14 01:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 01:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 01:35:21] Production.INFO: ==18303== Releasing lock... [2025-03-14 01:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 01:35:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-14 01:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 22:36:05 [end_date_ymd] => 2025-03-14 01:36:05 [RateCDR] => 1 ) [2025-03-14 01:36: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-03-13 22:36:05' and `end` < '2025-03-14 01:36: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-03-14 01:36:18] Production.INFO: count ==370 [2025-03-14 01:36:18] Production.ERROR: pbx CDR StartTime 2025-03-13 22:36:05 - End Time 2025-03-14 01:36:05 [2025-03-14 01:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675513', 'tblTempUsageDetail_20' ) start [2025-03-14 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675513', 'tblTempUsageDetail_20' ) end [2025-03-14 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675513', 'tblTempVendorCDR_20' ) start [2025-03-14 01:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675513', 'tblTempVendorCDR_20' ) end [2025-03-14 01:36:18] Production.INFO: ProcessCDR(1,14675513,1,1,2) [2025-03-14 01:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675513', 'tblTempUsageDetail_20' ) start [2025-03-14 01:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675513', 'tblTempUsageDetail_20' ) end [2025-03-14 01:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 01:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 01:36:21] Production.INFO: ==18389== Releasing lock... [2025-03-14 01:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 01:36:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-14 01:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 22:37:05 [end_date_ymd] => 2025-03-14 01:37:05 [RateCDR] => 1 ) [2025-03-14 01:37: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-03-13 22:37:05' and `end` < '2025-03-14 01:37: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-03-14 01:37:18] Production.INFO: count ==371 [2025-03-14 01:37:18] Production.ERROR: pbx CDR StartTime 2025-03-13 22:37:05 - End Time 2025-03-14 01:37:05 [2025-03-14 01:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675518', 'tblTempUsageDetail_20' ) start [2025-03-14 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675518', 'tblTempUsageDetail_20' ) end [2025-03-14 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675518', 'tblTempVendorCDR_20' ) start [2025-03-14 01:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675518', 'tblTempVendorCDR_20' ) end [2025-03-14 01:37:18] Production.INFO: ProcessCDR(1,14675518,1,1,2) [2025-03-14 01:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675518', 'tblTempUsageDetail_20' ) start [2025-03-14 01:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675518', 'tblTempUsageDetail_20' ) end [2025-03-14 01:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 01:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 01:37:22] Production.INFO: ==18466== Releasing lock... [2025-03-14 01:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 01:37:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-14 01:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 22:38:05 [end_date_ymd] => 2025-03-14 01:38:05 [RateCDR] => 1 ) [2025-03-14 01:38: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-03-13 22:38:05' and `end` < '2025-03-14 01:38: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-03-14 01:38:17] Production.INFO: count ==367 [2025-03-14 01:38:17] Production.ERROR: pbx CDR StartTime 2025-03-13 22:38:05 - End Time 2025-03-14 01:38:05 [2025-03-14 01:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675523', 'tblTempUsageDetail_20' ) start [2025-03-14 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675523', 'tblTempUsageDetail_20' ) end [2025-03-14 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675523', 'tblTempVendorCDR_20' ) start [2025-03-14 01:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675523', 'tblTempVendorCDR_20' ) end [2025-03-14 01:38:17] Production.INFO: ProcessCDR(1,14675523,1,1,2) [2025-03-14 01:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675523', 'tblTempUsageDetail_20' ) start [2025-03-14 01:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675523', 'tblTempUsageDetail_20' ) end [2025-03-14 01:38:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 01:38:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 01:38:20] Production.INFO: ==18544== Releasing lock... [2025-03-14 01:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 01:38:20] Production.INFO: 31.5 MB #Memory Used# [2025-03-14 01:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 22:39:05 [end_date_ymd] => 2025-03-14 01:39:05 [RateCDR] => 1 ) [2025-03-14 01:39: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-03-13 22:39:05' and `end` < '2025-03-14 01:39: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-03-14 01:39:17] Production.INFO: count ==371 [2025-03-14 01:39:17] Production.ERROR: pbx CDR StartTime 2025-03-13 22:39:05 - End Time 2025-03-14 01:39:05 [2025-03-14 01:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675528', 'tblTempUsageDetail_20' ) start [2025-03-14 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675528', 'tblTempUsageDetail_20' ) end [2025-03-14 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675528', 'tblTempVendorCDR_20' ) start [2025-03-14 01:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675528', 'tblTempVendorCDR_20' ) end [2025-03-14 01:39:17] Production.INFO: ProcessCDR(1,14675528,1,1,2) [2025-03-14 01:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675528', 'tblTempUsageDetail_20' ) start [2025-03-14 01:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675528', 'tblTempUsageDetail_20' ) end [2025-03-14 01:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 01:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 01:39:21] Production.INFO: ==18660== Releasing lock... [2025-03-14 01:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 01:39:21] Production.INFO: 31 MB #Memory Used# [2025-03-14 01:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 22:40:07 [end_date_ymd] => 2025-03-14 01:40:07 [RateCDR] => 1 ) [2025-03-14 01:40:07] 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-03-13 22:40:07' and `end` < '2025-03-14 01:40:07' 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-03-14 01:40:19] Production.INFO: count ==381 [2025-03-14 01:40:19] Production.ERROR: pbx CDR StartTime 2025-03-13 22:40:07 - End Time 2025-03-14 01:40:07 [2025-03-14 01:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675534', 'tblTempUsageDetail_20' ) start [2025-03-14 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675534', 'tblTempUsageDetail_20' ) end [2025-03-14 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675534', 'tblTempVendorCDR_20' ) start [2025-03-14 01:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675534', 'tblTempVendorCDR_20' ) end [2025-03-14 01:40:19] Production.INFO: ProcessCDR(1,14675534,1,1,2) [2025-03-14 01:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675534', 'tblTempUsageDetail_20' ) start [2025-03-14 01:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675534', 'tblTempUsageDetail_20' ) end [2025-03-14 01:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 01:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 01:40:22] Production.INFO: ==18745== Releasing lock... [2025-03-14 01:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 01:40:22] Production.INFO: 31.5 MB #Memory Used# [2025-03-14 01:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 22:41:05 [end_date_ymd] => 2025-03-14 01:41:05 [RateCDR] => 1 ) [2025-03-14 01:41: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-03-13 22:41:05' and `end` < '2025-03-14 01:41: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-03-14 01:41:17] Production.INFO: count ==389 [2025-03-14 01:41:17] Production.ERROR: pbx CDR StartTime 2025-03-13 22:41:05 - End Time 2025-03-14 01:41:05 [2025-03-14 01:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675539', 'tblTempUsageDetail_20' ) start [2025-03-14 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675539', 'tblTempUsageDetail_20' ) end [2025-03-14 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675539', 'tblTempVendorCDR_20' ) start [2025-03-14 01:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675539', 'tblTempVendorCDR_20' ) end [2025-03-14 01:41:17] Production.INFO: ProcessCDR(1,14675539,1,1,2) [2025-03-14 01:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675539', 'tblTempUsageDetail_20' ) start [2025-03-14 01:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675539', 'tblTempUsageDetail_20' ) end [2025-03-14 01:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 01:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 01:41:22] Production.INFO: ==18827== Releasing lock... [2025-03-14 01:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 01:41:22] Production.INFO: 31 MB #Memory Used# [2025-03-14 01:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 22:42:06 [end_date_ymd] => 2025-03-14 01:42:06 [RateCDR] => 1 ) [2025-03-14 01:42: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-03-13 22:42:06' and `end` < '2025-03-14 01:42: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-03-14 01:42:18] Production.INFO: count ==388 [2025-03-14 01:42:18] Production.ERROR: pbx CDR StartTime 2025-03-13 22:42:06 - End Time 2025-03-14 01:42:06 [2025-03-14 01:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675544', 'tblTempUsageDetail_20' ) start [2025-03-14 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675544', 'tblTempUsageDetail_20' ) end [2025-03-14 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675544', 'tblTempVendorCDR_20' ) start [2025-03-14 01:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675544', 'tblTempVendorCDR_20' ) end [2025-03-14 01:42:18] Production.INFO: ProcessCDR(1,14675544,1,1,2) [2025-03-14 01:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675544', 'tblTempUsageDetail_20' ) start [2025-03-14 01:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675544', 'tblTempUsageDetail_20' ) end [2025-03-14 01:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 01:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 01:42:22] Production.INFO: ==18906== Releasing lock... [2025-03-14 01:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 01:42:22] Production.INFO: 31 MB #Memory Used# [2025-03-14 01:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 22:43:05 [end_date_ymd] => 2025-03-14 01:43:05 [RateCDR] => 1 ) [2025-03-14 01:43: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-03-13 22:43:05' and `end` < '2025-03-14 01:43: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-03-14 01:43:17] Production.INFO: count ==388 [2025-03-14 01:43:17] Production.ERROR: pbx CDR StartTime 2025-03-13 22:43:05 - End Time 2025-03-14 01:43:05 [2025-03-14 01:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675549', 'tblTempUsageDetail_20' ) start [2025-03-14 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675549', 'tblTempUsageDetail_20' ) end [2025-03-14 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675549', 'tblTempVendorCDR_20' ) start [2025-03-14 01:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675549', 'tblTempVendorCDR_20' ) end [2025-03-14 01:43:17] Production.INFO: ProcessCDR(1,14675549,1,1,2) [2025-03-14 01:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675549', 'tblTempUsageDetail_20' ) start [2025-03-14 01:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675549', 'tblTempUsageDetail_20' ) end [2025-03-14 01:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 01:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 01:43:21] Production.INFO: ==18984== Releasing lock... [2025-03-14 01:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 01:43:21] Production.INFO: 31 MB #Memory Used# [2025-03-14 01:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 22:44:05 [end_date_ymd] => 2025-03-14 01:44:05 [RateCDR] => 1 ) [2025-03-14 01:44: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-03-13 22:44:05' and `end` < '2025-03-14 01:44: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-03-14 01:44:17] Production.INFO: count ==388 [2025-03-14 01:44:18] Production.ERROR: pbx CDR StartTime 2025-03-13 22:44:05 - End Time 2025-03-14 01:44:05 [2025-03-14 01:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675554', 'tblTempUsageDetail_20' ) start [2025-03-14 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675554', 'tblTempUsageDetail_20' ) end [2025-03-14 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675554', 'tblTempVendorCDR_20' ) start [2025-03-14 01:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675554', 'tblTempVendorCDR_20' ) end [2025-03-14 01:44:18] Production.INFO: ProcessCDR(1,14675554,1,1,2) [2025-03-14 01:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675554', 'tblTempUsageDetail_20' ) start [2025-03-14 01:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675554', 'tblTempUsageDetail_20' ) end [2025-03-14 01:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 01:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 01:44:21] Production.INFO: ==19065== Releasing lock... [2025-03-14 01:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 01:44:21] Production.INFO: 31 MB #Memory Used# [2025-03-14 01:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 22:45:05 [end_date_ymd] => 2025-03-14 01:45:05 [RateCDR] => 1 ) [2025-03-14 01:45: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-03-13 22:45:05' and `end` < '2025-03-14 01:45: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-03-14 01:45:17] Production.INFO: count ==391 [2025-03-14 01:45:17] Production.ERROR: pbx CDR StartTime 2025-03-13 22:45:05 - End Time 2025-03-14 01:45:05 [2025-03-14 01:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675559', 'tblTempUsageDetail_20' ) start [2025-03-14 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675559', 'tblTempUsageDetail_20' ) end [2025-03-14 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675559', 'tblTempVendorCDR_20' ) start [2025-03-14 01:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675559', 'tblTempVendorCDR_20' ) end [2025-03-14 01:45:17] Production.INFO: ProcessCDR(1,14675559,1,1,2) [2025-03-14 01:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675559', 'tblTempUsageDetail_20' ) start [2025-03-14 01:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675559', 'tblTempUsageDetail_20' ) end [2025-03-14 01:45:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 01:45:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 01:45:20] Production.INFO: ==19153== Releasing lock... [2025-03-14 01:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 01:45:20] Production.INFO: 31.5 MB #Memory Used# [2025-03-14 01:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 22:46:05 [end_date_ymd] => 2025-03-14 01:46:05 [RateCDR] => 1 ) [2025-03-14 01:46: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-03-13 22:46:05' and `end` < '2025-03-14 01:46: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-03-14 01:46:18] Production.INFO: count ==391 [2025-03-14 01:46:18] Production.ERROR: pbx CDR StartTime 2025-03-13 22:46:05 - End Time 2025-03-14 01:46:05 [2025-03-14 01:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675564', 'tblTempUsageDetail_20' ) start [2025-03-14 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675564', 'tblTempUsageDetail_20' ) end [2025-03-14 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675564', 'tblTempVendorCDR_20' ) start [2025-03-14 01:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675564', 'tblTempVendorCDR_20' ) end [2025-03-14 01:46:18] Production.INFO: ProcessCDR(1,14675564,1,1,2) [2025-03-14 01:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675564', 'tblTempUsageDetail_20' ) start [2025-03-14 01:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675564', 'tblTempUsageDetail_20' ) end [2025-03-14 01:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 01:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 01:46:21] Production.INFO: ==19235== Releasing lock... [2025-03-14 01:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 01:46:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-14 01:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 22:47:05 [end_date_ymd] => 2025-03-14 01:47:05 [RateCDR] => 1 ) [2025-03-14 01:47: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-03-13 22:47:05' and `end` < '2025-03-14 01:47: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-03-14 01:47:17] Production.INFO: count ==391 [2025-03-14 01:47:18] Production.ERROR: pbx CDR StartTime 2025-03-13 22:47:05 - End Time 2025-03-14 01:47:05 [2025-03-14 01:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675569', 'tblTempUsageDetail_20' ) start [2025-03-14 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675569', 'tblTempUsageDetail_20' ) end [2025-03-14 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675569', 'tblTempVendorCDR_20' ) start [2025-03-14 01:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675569', 'tblTempVendorCDR_20' ) end [2025-03-14 01:47:18] Production.INFO: ProcessCDR(1,14675569,1,1,2) [2025-03-14 01:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675569', 'tblTempUsageDetail_20' ) start [2025-03-14 01:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675569', 'tblTempUsageDetail_20' ) end [2025-03-14 01:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 01:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 01:47:21] Production.INFO: ==19314== Releasing lock... [2025-03-14 01:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 01:47:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-14 01:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 22:48:05 [end_date_ymd] => 2025-03-14 01:48:05 [RateCDR] => 1 ) [2025-03-14 01:48: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-03-13 22:48:05' and `end` < '2025-03-14 01:48: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-03-14 01:48:17] Production.INFO: count ==393 [2025-03-14 01:48:18] Production.ERROR: pbx CDR StartTime 2025-03-13 22:48:05 - End Time 2025-03-14 01:48:05 [2025-03-14 01:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675574', 'tblTempUsageDetail_20' ) start [2025-03-14 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675574', 'tblTempUsageDetail_20' ) end [2025-03-14 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675574', 'tblTempVendorCDR_20' ) start [2025-03-14 01:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675574', 'tblTempVendorCDR_20' ) end [2025-03-14 01:48:18] Production.INFO: ProcessCDR(1,14675574,1,1,2) [2025-03-14 01:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675574', 'tblTempUsageDetail_20' ) start [2025-03-14 01:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675574', 'tblTempUsageDetail_20' ) end [2025-03-14 01:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 01:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 01:48:21] Production.INFO: ==19399== Releasing lock... [2025-03-14 01:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 01:48:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-14 01:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 22:49:05 [end_date_ymd] => 2025-03-14 01:49:05 [RateCDR] => 1 ) [2025-03-14 01:49: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-03-13 22:49:05' and `end` < '2025-03-14 01:49: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-03-14 01:49:17] Production.INFO: count ==394 [2025-03-14 01:49:17] Production.ERROR: pbx CDR StartTime 2025-03-13 22:49:05 - End Time 2025-03-14 01:49:05 [2025-03-14 01:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675579', 'tblTempUsageDetail_20' ) start [2025-03-14 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675579', 'tblTempUsageDetail_20' ) end [2025-03-14 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675579', 'tblTempVendorCDR_20' ) start [2025-03-14 01:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675579', 'tblTempVendorCDR_20' ) end [2025-03-14 01:49:17] Production.INFO: ProcessCDR(1,14675579,1,1,2) [2025-03-14 01:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675579', 'tblTempUsageDetail_20' ) start [2025-03-14 01:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675579', 'tblTempUsageDetail_20' ) end [2025-03-14 01:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 01:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 01:49:21] Production.INFO: ==19481== Releasing lock... [2025-03-14 01:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 01:49:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-14 01:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 22:50:06 [end_date_ymd] => 2025-03-14 01:50:06 [RateCDR] => 1 ) [2025-03-14 01:50: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-03-13 22:50:06' and `end` < '2025-03-14 01:50: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-03-14 01:50:19] Production.INFO: count ==401 [2025-03-14 01:50:19] Production.ERROR: pbx CDR StartTime 2025-03-13 22:50:06 - End Time 2025-03-14 01:50:06 [2025-03-14 01:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675584', 'tblTempUsageDetail_20' ) start [2025-03-14 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675584', 'tblTempUsageDetail_20' ) end [2025-03-14 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675584', 'tblTempVendorCDR_20' ) start [2025-03-14 01:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675584', 'tblTempVendorCDR_20' ) end [2025-03-14 01:50:19] Production.INFO: ProcessCDR(1,14675584,1,1,2) [2025-03-14 01:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675584,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675584,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675584', 'tblTempUsageDetail_20' ) start [2025-03-14 01:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675584', 'tblTempUsageDetail_20' ) end [2025-03-14 01:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 01:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 01:50:22] Production.INFO: ==19567== Releasing lock... [2025-03-14 01:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 01:50:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-14 01:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 22:51:05 [end_date_ymd] => 2025-03-14 01:51:05 [RateCDR] => 1 ) [2025-03-14 01:51: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-03-13 22:51:05' and `end` < '2025-03-14 01:51: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-03-14 01:51:17] Production.INFO: count ==401 [2025-03-14 01:51:17] Production.ERROR: pbx CDR StartTime 2025-03-13 22:51:05 - End Time 2025-03-14 01:51:05 [2025-03-14 01:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675590', 'tblTempUsageDetail_20' ) start [2025-03-14 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675590', 'tblTempUsageDetail_20' ) end [2025-03-14 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675590', 'tblTempVendorCDR_20' ) start [2025-03-14 01:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675590', 'tblTempVendorCDR_20' ) end [2025-03-14 01:51:17] Production.INFO: ProcessCDR(1,14675590,1,1,2) [2025-03-14 01:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675590', 'tblTempUsageDetail_20' ) start [2025-03-14 01:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675590', 'tblTempUsageDetail_20' ) end [2025-03-14 01:51:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 01:51:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 01:51:20] Production.INFO: ==19653== Releasing lock... [2025-03-14 01:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 01:51:20] Production.INFO: 31.75 MB #Memory Used# [2025-03-14 01:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 22:52:06 [end_date_ymd] => 2025-03-14 01:52:06 [RateCDR] => 1 ) [2025-03-14 01:52: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-03-13 22:52:06' and `end` < '2025-03-14 01:52: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-03-14 01:52:18] Production.INFO: count ==405 [2025-03-14 01:52:18] Production.ERROR: pbx CDR StartTime 2025-03-13 22:52:06 - End Time 2025-03-14 01:52:06 [2025-03-14 01:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675595', 'tblTempUsageDetail_20' ) start [2025-03-14 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675595', 'tblTempUsageDetail_20' ) end [2025-03-14 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675595', 'tblTempVendorCDR_20' ) start [2025-03-14 01:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675595', 'tblTempVendorCDR_20' ) end [2025-03-14 01:52:18] Production.INFO: ProcessCDR(1,14675595,1,1,2) [2025-03-14 01:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675595', 'tblTempUsageDetail_20' ) start [2025-03-14 01:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675595', 'tblTempUsageDetail_20' ) end [2025-03-14 01:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 01:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 01:52:21] Production.INFO: ==19741== Releasing lock... [2025-03-14 01:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 01:52:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-14 01:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 22:53:05 [end_date_ymd] => 2025-03-14 01:53:05 [RateCDR] => 1 ) [2025-03-14 01:53: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-03-13 22:53:05' and `end` < '2025-03-14 01:53: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-03-14 01:53:17] Production.INFO: count ==399 [2025-03-14 01:53:17] Production.ERROR: pbx CDR StartTime 2025-03-13 22:53:05 - End Time 2025-03-14 01:53:05 [2025-03-14 01:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675600', 'tblTempUsageDetail_20' ) start [2025-03-14 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675600', 'tblTempUsageDetail_20' ) end [2025-03-14 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675600', 'tblTempVendorCDR_20' ) start [2025-03-14 01:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675600', 'tblTempVendorCDR_20' ) end [2025-03-14 01:53:17] Production.INFO: ProcessCDR(1,14675600,1,1,2) [2025-03-14 01:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675600', 'tblTempUsageDetail_20' ) start [2025-03-14 01:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675600', 'tblTempUsageDetail_20' ) end [2025-03-14 01:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 01:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 01:53:21] Production.INFO: ==19825== Releasing lock... [2025-03-14 01:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 01:53:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-14 01:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 22:54:06 [end_date_ymd] => 2025-03-14 01:54:06 [RateCDR] => 1 ) [2025-03-14 01:54: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-03-13 22:54:06' and `end` < '2025-03-14 01:54: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-03-14 01:54:18] Production.INFO: count ==399 [2025-03-14 01:54:18] Production.ERROR: pbx CDR StartTime 2025-03-13 22:54:06 - End Time 2025-03-14 01:54:06 [2025-03-14 01:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675605', 'tblTempUsageDetail_20' ) start [2025-03-14 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675605', 'tblTempUsageDetail_20' ) end [2025-03-14 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675605', 'tblTempVendorCDR_20' ) start [2025-03-14 01:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675605', 'tblTempVendorCDR_20' ) end [2025-03-14 01:54:18] Production.INFO: ProcessCDR(1,14675605,1,1,2) [2025-03-14 01:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675605', 'tblTempUsageDetail_20' ) start [2025-03-14 01:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675605', 'tblTempUsageDetail_20' ) end [2025-03-14 01:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 01:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 01:54:21] Production.INFO: ==19957== Releasing lock... [2025-03-14 01:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 01:54:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-14 01:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 22:55:05 [end_date_ymd] => 2025-03-14 01:55:05 [RateCDR] => 1 ) [2025-03-14 01:55: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-03-13 22:55:05' and `end` < '2025-03-14 01:55: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-03-14 01:55:17] Production.INFO: count ==399 [2025-03-14 01:55:17] Production.ERROR: pbx CDR StartTime 2025-03-13 22:55:05 - End Time 2025-03-14 01:55:05 [2025-03-14 01:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675610', 'tblTempUsageDetail_20' ) start [2025-03-14 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675610', 'tblTempUsageDetail_20' ) end [2025-03-14 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675610', 'tblTempVendorCDR_20' ) start [2025-03-14 01:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675610', 'tblTempVendorCDR_20' ) end [2025-03-14 01:55:17] Production.INFO: ProcessCDR(1,14675610,1,1,2) [2025-03-14 01:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675610', 'tblTempUsageDetail_20' ) start [2025-03-14 01:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675610', 'tblTempUsageDetail_20' ) end [2025-03-14 01:55:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 01:55:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 01:55:20] Production.INFO: ==20042== Releasing lock... [2025-03-14 01:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 01:55:20] Production.INFO: 31.5 MB #Memory Used# [2025-03-14 01:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 22:56:06 [end_date_ymd] => 2025-03-14 01:56:06 [RateCDR] => 1 ) [2025-03-14 01:56: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-03-13 22:56:06' and `end` < '2025-03-14 01:56: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-03-14 01:56:18] Production.INFO: count ==396 [2025-03-14 01:56:18] Production.ERROR: pbx CDR StartTime 2025-03-13 22:56:06 - End Time 2025-03-14 01:56:06 [2025-03-14 01:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675615', 'tblTempUsageDetail_20' ) start [2025-03-14 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675615', 'tblTempUsageDetail_20' ) end [2025-03-14 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675615', 'tblTempVendorCDR_20' ) start [2025-03-14 01:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675615', 'tblTempVendorCDR_20' ) end [2025-03-14 01:56:18] Production.INFO: ProcessCDR(1,14675615,1,1,2) [2025-03-14 01:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675615', 'tblTempUsageDetail_20' ) start [2025-03-14 01:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675615', 'tblTempUsageDetail_20' ) end [2025-03-14 01:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 01:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 01:56:21] Production.INFO: ==20130== Releasing lock... [2025-03-14 01:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 01:56:21] Production.INFO: 31 MB #Memory Used# [2025-03-14 01:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 22:57:05 [end_date_ymd] => 2025-03-14 01:57:05 [RateCDR] => 1 ) [2025-03-14 01:57: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-03-13 22:57:05' and `end` < '2025-03-14 01:57: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-03-14 01:57:17] Production.INFO: count ==396 [2025-03-14 01:57:17] Production.ERROR: pbx CDR StartTime 2025-03-13 22:57:05 - End Time 2025-03-14 01:57:05 [2025-03-14 01:57:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675620', 'tblTempUsageDetail_20' ) start [2025-03-14 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675620', 'tblTempUsageDetail_20' ) end [2025-03-14 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675620', 'tblTempVendorCDR_20' ) start [2025-03-14 01:57:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675620', 'tblTempVendorCDR_20' ) end [2025-03-14 01:57:17] Production.INFO: ProcessCDR(1,14675620,1,1,2) [2025-03-14 01:57:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:57:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:57:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675620', 'tblTempUsageDetail_20' ) start [2025-03-14 01:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675620', 'tblTempUsageDetail_20' ) end [2025-03-14 01:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 01:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 01:57:21] Production.INFO: ==20214== Releasing lock... [2025-03-14 01:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 01:57:21] Production.INFO: 31 MB #Memory Used# [2025-03-14 01:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 22:58:05 [end_date_ymd] => 2025-03-14 01:58:05 [RateCDR] => 1 ) [2025-03-14 01:58: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-03-13 22:58:05' and `end` < '2025-03-14 01:58: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-03-14 01:58:18] Production.INFO: count ==395 [2025-03-14 01:58:18] Production.ERROR: pbx CDR StartTime 2025-03-13 22:58:05 - End Time 2025-03-14 01:58:05 [2025-03-14 01:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675625', 'tblTempUsageDetail_20' ) start [2025-03-14 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675625', 'tblTempUsageDetail_20' ) end [2025-03-14 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675625', 'tblTempVendorCDR_20' ) start [2025-03-14 01:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675625', 'tblTempVendorCDR_20' ) end [2025-03-14 01:58:18] Production.INFO: ProcessCDR(1,14675625,1,1,2) [2025-03-14 01:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675625', 'tblTempUsageDetail_20' ) start [2025-03-14 01:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675625', 'tblTempUsageDetail_20' ) end [2025-03-14 01:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 01:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 01:58:21] Production.INFO: ==20300== Releasing lock... [2025-03-14 01:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 01:58:21] Production.INFO: 31 MB #Memory Used# [2025-03-14 01:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 22:59:05 [end_date_ymd] => 2025-03-14 01:59:05 [RateCDR] => 1 ) [2025-03-14 01:59: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-03-13 22:59:05' and `end` < '2025-03-14 01:59: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-03-14 01:59:17] Production.INFO: count ==393 [2025-03-14 01:59:17] Production.ERROR: pbx CDR StartTime 2025-03-13 22:59:05 - End Time 2025-03-14 01:59:05 [2025-03-14 01:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675630', 'tblTempUsageDetail_20' ) start [2025-03-14 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675630', 'tblTempUsageDetail_20' ) end [2025-03-14 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675630', 'tblTempVendorCDR_20' ) start [2025-03-14 01:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675630', 'tblTempVendorCDR_20' ) end [2025-03-14 01:59:17] Production.INFO: ProcessCDR(1,14675630,1,1,2) [2025-03-14 01:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 01:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675630', 'tblTempUsageDetail_20' ) start [2025-03-14 01:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675630', 'tblTempUsageDetail_20' ) end [2025-03-14 01:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 01:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 01:59:21] Production.INFO: ==20383== Releasing lock... [2025-03-14 01:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 01:59:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-14 02:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 23:00:06 [end_date_ymd] => 2025-03-14 02:00:06 [RateCDR] => 1 ) [2025-03-14 02:00: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-03-13 23:00:06' and `end` < '2025-03-14 02:00: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-03-14 02:00:18] Production.INFO: count ==403 [2025-03-14 02:00:18] Production.ERROR: pbx CDR StartTime 2025-03-13 23:00:06 - End Time 2025-03-14 02:00:06 [2025-03-14 02:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675636', 'tblTempUsageDetail_20' ) start [2025-03-14 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675636', 'tblTempUsageDetail_20' ) end [2025-03-14 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675636', 'tblTempVendorCDR_20' ) start [2025-03-14 02:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675636', 'tblTempVendorCDR_20' ) end [2025-03-14 02:00:18] Production.INFO: ProcessCDR(1,14675636,1,1,2) [2025-03-14 02:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675636', 'tblTempUsageDetail_20' ) start [2025-03-14 02:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675636', 'tblTempUsageDetail_20' ) end [2025-03-14 02:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 02:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 02:00:22] Production.INFO: ==20472== Releasing lock... [2025-03-14 02:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 02:00:22] Production.INFO: 31 MB #Memory Used# [2025-03-14 02:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 23:01:06 [end_date_ymd] => 2025-03-14 02:01:06 [RateCDR] => 1 ) [2025-03-14 02:01: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-03-13 23:01:06' and `end` < '2025-03-14 02:01: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-03-14 02:01:18] Production.INFO: count ==410 [2025-03-14 02:01:18] Production.ERROR: pbx CDR StartTime 2025-03-13 23:01:06 - End Time 2025-03-14 02:01:06 [2025-03-14 02:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675641', 'tblTempUsageDetail_20' ) start [2025-03-14 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675641', 'tblTempUsageDetail_20' ) end [2025-03-14 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675641', 'tblTempVendorCDR_20' ) start [2025-03-14 02:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675641', 'tblTempVendorCDR_20' ) end [2025-03-14 02:01:18] Production.INFO: ProcessCDR(1,14675641,1,1,2) [2025-03-14 02:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675641', 'tblTempUsageDetail_20' ) start [2025-03-14 02:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675641', 'tblTempUsageDetail_20' ) end [2025-03-14 02:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 02:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 02:01:23] Production.INFO: ==20578== Releasing lock... [2025-03-14 02:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 02:01:23] Production.INFO: 31.25 MB #Memory Used# [2025-03-14 02:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 23:02:06 [end_date_ymd] => 2025-03-14 02:02:06 [RateCDR] => 1 ) [2025-03-14 02:02: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-03-13 23:02:06' and `end` < '2025-03-14 02:02: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-03-14 02:02:18] Production.INFO: count ==410 [2025-03-14 02:02:18] Production.ERROR: pbx CDR StartTime 2025-03-13 23:02:06 - End Time 2025-03-14 02:02:06 [2025-03-14 02:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675646', 'tblTempUsageDetail_20' ) start [2025-03-14 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675646', 'tblTempUsageDetail_20' ) end [2025-03-14 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675646', 'tblTempVendorCDR_20' ) start [2025-03-14 02:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675646', 'tblTempVendorCDR_20' ) end [2025-03-14 02:02:18] Production.INFO: ProcessCDR(1,14675646,1,1,2) [2025-03-14 02:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675646', 'tblTempUsageDetail_20' ) start [2025-03-14 02:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675646', 'tblTempUsageDetail_20' ) end [2025-03-14 02:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 02:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 02:02:22] Production.INFO: ==20757== Releasing lock... [2025-03-14 02:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 02:02:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-14 02:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 23:03:05 [end_date_ymd] => 2025-03-14 02:03:05 [RateCDR] => 1 ) [2025-03-14 02:03: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-03-13 23:03:05' and `end` < '2025-03-14 02:03: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-03-14 02:03:17] Production.INFO: count ==406 [2025-03-14 02:03:17] Production.ERROR: pbx CDR StartTime 2025-03-13 23:03:05 - End Time 2025-03-14 02:03:05 [2025-03-14 02:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675651', 'tblTempUsageDetail_20' ) start [2025-03-14 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675651', 'tblTempUsageDetail_20' ) end [2025-03-14 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675651', 'tblTempVendorCDR_20' ) start [2025-03-14 02:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675651', 'tblTempVendorCDR_20' ) end [2025-03-14 02:03:17] Production.INFO: ProcessCDR(1,14675651,1,1,2) [2025-03-14 02:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675651', 'tblTempUsageDetail_20' ) start [2025-03-14 02:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675651', 'tblTempUsageDetail_20' ) end [2025-03-14 02:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 02:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 02:03:21] Production.INFO: ==20839== Releasing lock... [2025-03-14 02:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 02:03:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-14 02:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 23:04:06 [end_date_ymd] => 2025-03-14 02:04:06 [RateCDR] => 1 ) [2025-03-14 02:04: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-03-13 23:04:06' and `end` < '2025-03-14 02:04: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-03-14 02:04:18] Production.INFO: count ==406 [2025-03-14 02:04:18] Production.ERROR: pbx CDR StartTime 2025-03-13 23:04:06 - End Time 2025-03-14 02:04:06 [2025-03-14 02:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675656', 'tblTempUsageDetail_20' ) start [2025-03-14 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675656', 'tblTempUsageDetail_20' ) end [2025-03-14 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675656', 'tblTempVendorCDR_20' ) start [2025-03-14 02:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675656', 'tblTempVendorCDR_20' ) end [2025-03-14 02:04:18] Production.INFO: ProcessCDR(1,14675656,1,1,2) [2025-03-14 02:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675656', 'tblTempUsageDetail_20' ) start [2025-03-14 02:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675656', 'tblTempUsageDetail_20' ) end [2025-03-14 02:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 02:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 02:04:22] Production.INFO: ==20929== Releasing lock... [2025-03-14 02:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 02:04:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-14 02:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 23:05:05 [end_date_ymd] => 2025-03-14 02:05:05 [RateCDR] => 1 ) [2025-03-14 02:05: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-03-13 23:05:05' and `end` < '2025-03-14 02:05: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-03-14 02:05:17] Production.INFO: count ==400 [2025-03-14 02:05:17] Production.ERROR: pbx CDR StartTime 2025-03-13 23:05:05 - End Time 2025-03-14 02:05:05 [2025-03-14 02:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675661', 'tblTempUsageDetail_20' ) start [2025-03-14 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675661', 'tblTempUsageDetail_20' ) end [2025-03-14 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675661', 'tblTempVendorCDR_20' ) start [2025-03-14 02:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675661', 'tblTempVendorCDR_20' ) end [2025-03-14 02:05:17] Production.INFO: ProcessCDR(1,14675661,1,1,2) [2025-03-14 02:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675661', 'tblTempUsageDetail_20' ) start [2025-03-14 02:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675661', 'tblTempUsageDetail_20' ) end [2025-03-14 02:05:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 02:05:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 02:05:20] Production.INFO: ==21017== Releasing lock... [2025-03-14 02:05:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 02:05:20] Production.INFO: 31.75 MB #Memory Used# [2025-03-14 02:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 23:06:06 [end_date_ymd] => 2025-03-14 02:06:06 [RateCDR] => 1 ) [2025-03-14 02:06: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-03-13 23:06:06' and `end` < '2025-03-14 02:06: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-03-14 02:06:18] Production.INFO: count ==397 [2025-03-14 02:06:18] Production.ERROR: pbx CDR StartTime 2025-03-13 23:06:06 - End Time 2025-03-14 02:06:06 [2025-03-14 02:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675666', 'tblTempUsageDetail_20' ) start [2025-03-14 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675666', 'tblTempUsageDetail_20' ) end [2025-03-14 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675666', 'tblTempVendorCDR_20' ) start [2025-03-14 02:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675666', 'tblTempVendorCDR_20' ) end [2025-03-14 02:06:18] Production.INFO: ProcessCDR(1,14675666,1,1,2) [2025-03-14 02:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675666', 'tblTempUsageDetail_20' ) start [2025-03-14 02:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675666', 'tblTempUsageDetail_20' ) end [2025-03-14 02:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 02:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 02:06:21] Production.INFO: ==21102== Releasing lock... [2025-03-14 02:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 02:06:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-14 02:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 23:07:05 [end_date_ymd] => 2025-03-14 02:07:05 [RateCDR] => 1 ) [2025-03-14 02:07: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-03-13 23:07:05' and `end` < '2025-03-14 02:07: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-03-14 02:07:17] Production.INFO: count ==397 [2025-03-14 02:07:17] Production.ERROR: pbx CDR StartTime 2025-03-13 23:07:05 - End Time 2025-03-14 02:07:05 [2025-03-14 02:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675671', 'tblTempUsageDetail_20' ) start [2025-03-14 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675671', 'tblTempUsageDetail_20' ) end [2025-03-14 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675671', 'tblTempVendorCDR_20' ) start [2025-03-14 02:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675671', 'tblTempVendorCDR_20' ) end [2025-03-14 02:07:17] Production.INFO: ProcessCDR(1,14675671,1,1,2) [2025-03-14 02:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675671,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675671,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675671', 'tblTempUsageDetail_20' ) start [2025-03-14 02:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675671', 'tblTempUsageDetail_20' ) end [2025-03-14 02:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 02:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 02:07:21] Production.INFO: ==21196== Releasing lock... [2025-03-14 02:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 02:07:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-14 02:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 23:08:05 [end_date_ymd] => 2025-03-14 02:08:05 [RateCDR] => 1 ) [2025-03-14 02:08: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-03-13 23:08:05' and `end` < '2025-03-14 02:08: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-03-14 02:08:18] Production.INFO: count ==397 [2025-03-14 02:08:18] Production.ERROR: pbx CDR StartTime 2025-03-13 23:08:05 - End Time 2025-03-14 02:08:05 [2025-03-14 02:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675676', 'tblTempUsageDetail_20' ) start [2025-03-14 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675676', 'tblTempUsageDetail_20' ) end [2025-03-14 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675676', 'tblTempVendorCDR_20' ) start [2025-03-14 02:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675676', 'tblTempVendorCDR_20' ) end [2025-03-14 02:08:18] Production.INFO: ProcessCDR(1,14675676,1,1,2) [2025-03-14 02:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675676,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675676,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675676', 'tblTempUsageDetail_20' ) start [2025-03-14 02:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675676', 'tblTempUsageDetail_20' ) end [2025-03-14 02:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 02:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 02:08:21] Production.INFO: ==21282== Releasing lock... [2025-03-14 02:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 02:08:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-14 02:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 23:09:05 [end_date_ymd] => 2025-03-14 02:09:05 [RateCDR] => 1 ) [2025-03-14 02:09: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-03-13 23:09:05' and `end` < '2025-03-14 02:09: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-03-14 02:09:17] Production.INFO: count ==397 [2025-03-14 02:09:17] Production.ERROR: pbx CDR StartTime 2025-03-13 23:09:05 - End Time 2025-03-14 02:09:05 [2025-03-14 02:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675681', 'tblTempUsageDetail_20' ) start [2025-03-14 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675681', 'tblTempUsageDetail_20' ) end [2025-03-14 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675681', 'tblTempVendorCDR_20' ) start [2025-03-14 02:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675681', 'tblTempVendorCDR_20' ) end [2025-03-14 02:09:17] Production.INFO: ProcessCDR(1,14675681,1,1,2) [2025-03-14 02:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675681,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675681,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675681', 'tblTempUsageDetail_20' ) start [2025-03-14 02:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675681', 'tblTempUsageDetail_20' ) end [2025-03-14 02:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 02:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 02:09:21] Production.INFO: ==21363== Releasing lock... [2025-03-14 02:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 02:09:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-14 02:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 23:10:06 [end_date_ymd] => 2025-03-14 02:10:06 [RateCDR] => 1 ) [2025-03-14 02:10: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-03-13 23:10:06' and `end` < '2025-03-14 02:10: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-03-14 02:10:18] Production.INFO: count ==405 [2025-03-14 02:10:18] Production.ERROR: pbx CDR StartTime 2025-03-13 23:10:06 - End Time 2025-03-14 02:10:06 [2025-03-14 02:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675686', 'tblTempUsageDetail_20' ) start [2025-03-14 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675686', 'tblTempUsageDetail_20' ) end [2025-03-14 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675686', 'tblTempVendorCDR_20' ) start [2025-03-14 02:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675686', 'tblTempVendorCDR_20' ) end [2025-03-14 02:10:18] Production.INFO: ProcessCDR(1,14675686,1,1,2) [2025-03-14 02:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675686', 'tblTempUsageDetail_20' ) start [2025-03-14 02:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675686', 'tblTempUsageDetail_20' ) end [2025-03-14 02:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 02:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 02:10:22] Production.INFO: ==21491== Releasing lock... [2025-03-14 02:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 02:10:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-14 02:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 23:11:05 [end_date_ymd] => 2025-03-14 02:11:05 [RateCDR] => 1 ) [2025-03-14 02:11: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-03-13 23:11:05' and `end` < '2025-03-14 02:11: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-03-14 02:11:17] Production.INFO: count ==403 [2025-03-14 02:11:17] Production.ERROR: pbx CDR StartTime 2025-03-13 23:11:05 - End Time 2025-03-14 02:11:05 [2025-03-14 02:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675692', 'tblTempUsageDetail_20' ) start [2025-03-14 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675692', 'tblTempUsageDetail_20' ) end [2025-03-14 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675692', 'tblTempVendorCDR_20' ) start [2025-03-14 02:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675692', 'tblTempVendorCDR_20' ) end [2025-03-14 02:11:17] Production.INFO: ProcessCDR(1,14675692,1,1,2) [2025-03-14 02:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675692', 'tblTempUsageDetail_20' ) start [2025-03-14 02:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675692', 'tblTempUsageDetail_20' ) end [2025-03-14 02:11:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 02:11:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 02:11:20] Production.INFO: ==21573== Releasing lock... [2025-03-14 02:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 02:11:20] Production.INFO: 31.75 MB #Memory Used# [2025-03-14 02:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 23:12:06 [end_date_ymd] => 2025-03-14 02:12:06 [RateCDR] => 1 ) [2025-03-14 02:12: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-03-13 23:12:06' and `end` < '2025-03-14 02:12: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-03-14 02:12:18] Production.INFO: count ==404 [2025-03-14 02:12:18] Production.ERROR: pbx CDR StartTime 2025-03-13 23:12:06 - End Time 2025-03-14 02:12:06 [2025-03-14 02:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675697', 'tblTempUsageDetail_20' ) start [2025-03-14 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675697', 'tblTempUsageDetail_20' ) end [2025-03-14 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675697', 'tblTempVendorCDR_20' ) start [2025-03-14 02:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675697', 'tblTempVendorCDR_20' ) end [2025-03-14 02:12:18] Production.INFO: ProcessCDR(1,14675697,1,1,2) [2025-03-14 02:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675697', 'tblTempUsageDetail_20' ) start [2025-03-14 02:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675697', 'tblTempUsageDetail_20' ) end [2025-03-14 02:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 02:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 02:12:21] Production.INFO: ==21656== Releasing lock... [2025-03-14 02:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 02:12:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-14 02:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 23:13:05 [end_date_ymd] => 2025-03-14 02:13:05 [RateCDR] => 1 ) [2025-03-14 02:13: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-03-13 23:13:05' and `end` < '2025-03-14 02:13: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-03-14 02:13:17] Production.INFO: count ==401 [2025-03-14 02:13:17] Production.ERROR: pbx CDR StartTime 2025-03-13 23:13:05 - End Time 2025-03-14 02:13:05 [2025-03-14 02:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675702', 'tblTempUsageDetail_20' ) start [2025-03-14 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675702', 'tblTempUsageDetail_20' ) end [2025-03-14 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675702', 'tblTempVendorCDR_20' ) start [2025-03-14 02:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675702', 'tblTempVendorCDR_20' ) end [2025-03-14 02:13:17] Production.INFO: ProcessCDR(1,14675702,1,1,2) [2025-03-14 02:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675702', 'tblTempUsageDetail_20' ) start [2025-03-14 02:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675702', 'tblTempUsageDetail_20' ) end [2025-03-14 02:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 02:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 02:13:21] Production.INFO: ==21738== Releasing lock... [2025-03-14 02:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 02:13:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-14 02:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 23:14:05 [end_date_ymd] => 2025-03-14 02:14:05 [RateCDR] => 1 ) [2025-03-14 02:14: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-03-13 23:14:05' and `end` < '2025-03-14 02:14: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-03-14 02:14:17] Production.INFO: count ==403 [2025-03-14 02:14:17] Production.ERROR: pbx CDR StartTime 2025-03-13 23:14:05 - End Time 2025-03-14 02:14:05 [2025-03-14 02:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675707', 'tblTempUsageDetail_20' ) start [2025-03-14 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675707', 'tblTempUsageDetail_20' ) end [2025-03-14 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675707', 'tblTempVendorCDR_20' ) start [2025-03-14 02:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675707', 'tblTempVendorCDR_20' ) end [2025-03-14 02:14:17] Production.INFO: ProcessCDR(1,14675707,1,1,2) [2025-03-14 02:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675707', 'tblTempUsageDetail_20' ) start [2025-03-14 02:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675707', 'tblTempUsageDetail_20' ) end [2025-03-14 02:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 02:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 02:14:21] Production.INFO: ==21818== Releasing lock... [2025-03-14 02:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 02:14:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-14 02:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 23:15:05 [end_date_ymd] => 2025-03-14 02:15:05 [RateCDR] => 1 ) [2025-03-14 02:15: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-03-13 23:15:05' and `end` < '2025-03-14 02:15: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-03-14 02:15:17] Production.INFO: count ==404 [2025-03-14 02:15:17] Production.ERROR: pbx CDR StartTime 2025-03-13 23:15:05 - End Time 2025-03-14 02:15:05 [2025-03-14 02:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675712', 'tblTempUsageDetail_20' ) start [2025-03-14 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675712', 'tblTempUsageDetail_20' ) end [2025-03-14 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675712', 'tblTempVendorCDR_20' ) start [2025-03-14 02:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675712', 'tblTempVendorCDR_20' ) end [2025-03-14 02:15:17] Production.INFO: ProcessCDR(1,14675712,1,1,2) [2025-03-14 02:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675712', 'tblTempUsageDetail_20' ) start [2025-03-14 02:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675712', 'tblTempUsageDetail_20' ) end [2025-03-14 02:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 02:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 02:15:21] Production.INFO: ==21902== Releasing lock... [2025-03-14 02:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 02:15:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-14 02:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 23:16:05 [end_date_ymd] => 2025-03-14 02:16:05 [RateCDR] => 1 ) [2025-03-14 02:16: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-03-13 23:16:05' and `end` < '2025-03-14 02:16: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-03-14 02:16:17] Production.INFO: count ==403 [2025-03-14 02:16:17] Production.ERROR: pbx CDR StartTime 2025-03-13 23:16:05 - End Time 2025-03-14 02:16:05 [2025-03-14 02:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675717', 'tblTempUsageDetail_20' ) start [2025-03-14 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675717', 'tblTempUsageDetail_20' ) end [2025-03-14 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675717', 'tblTempVendorCDR_20' ) start [2025-03-14 02:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675717', 'tblTempVendorCDR_20' ) end [2025-03-14 02:16:17] Production.INFO: ProcessCDR(1,14675717,1,1,2) [2025-03-14 02:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675717,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675717,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675717', 'tblTempUsageDetail_20' ) start [2025-03-14 02:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675717', 'tblTempUsageDetail_20' ) end [2025-03-14 02:16:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 02:16:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 02:16:20] Production.INFO: ==21984== Releasing lock... [2025-03-14 02:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 02:16:20] Production.INFO: 31.5 MB #Memory Used# [2025-03-14 02:17:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 23:17:04 [end_date_ymd] => 2025-03-14 02:17:04 [RateCDR] => 1 ) [2025-03-14 02:17: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-03-13 23:17:04' and `end` < '2025-03-14 02:17: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-03-14 02:17:17] Production.INFO: count ==402 [2025-03-14 02:17:17] Production.ERROR: pbx CDR StartTime 2025-03-13 23:17:04 - End Time 2025-03-14 02:17:04 [2025-03-14 02:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675722', 'tblTempUsageDetail_20' ) start [2025-03-14 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675722', 'tblTempUsageDetail_20' ) end [2025-03-14 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675722', 'tblTempVendorCDR_20' ) start [2025-03-14 02:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675722', 'tblTempVendorCDR_20' ) end [2025-03-14 02:17:17] Production.INFO: ProcessCDR(1,14675722,1,1,2) [2025-03-14 02:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675722,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675722,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675722', 'tblTempUsageDetail_20' ) start [2025-03-14 02:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675722', 'tblTempUsageDetail_20' ) end [2025-03-14 02:17:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 02:17:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 02:17:20] Production.INFO: ==22061== Releasing lock... [2025-03-14 02:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 02:17:20] Production.INFO: 31.5 MB #Memory Used# [2025-03-14 02:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 23:18:06 [end_date_ymd] => 2025-03-14 02:18:06 [RateCDR] => 1 ) [2025-03-14 02:18: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-03-13 23:18:06' and `end` < '2025-03-14 02:18: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-03-14 02:18:18] Production.INFO: count ==401 [2025-03-14 02:18:18] Production.ERROR: pbx CDR StartTime 2025-03-13 23:18:06 - End Time 2025-03-14 02:18:06 [2025-03-14 02:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675727', 'tblTempUsageDetail_20' ) start [2025-03-14 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675727', 'tblTempUsageDetail_20' ) end [2025-03-14 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675727', 'tblTempVendorCDR_20' ) start [2025-03-14 02:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675727', 'tblTempVendorCDR_20' ) end [2025-03-14 02:18:18] Production.INFO: ProcessCDR(1,14675727,1,1,2) [2025-03-14 02:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675727,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675727,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675727', 'tblTempUsageDetail_20' ) start [2025-03-14 02:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675727', 'tblTempUsageDetail_20' ) end [2025-03-14 02:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 02:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 02:18:21] Production.INFO: ==22148== Releasing lock... [2025-03-14 02:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 02:18:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-14 02:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 23:19:05 [end_date_ymd] => 2025-03-14 02:19:05 [RateCDR] => 1 ) [2025-03-14 02:19: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-03-13 23:19:05' and `end` < '2025-03-14 02:19: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-03-14 02:19:17] Production.INFO: count ==401 [2025-03-14 02:19:17] Production.ERROR: pbx CDR StartTime 2025-03-13 23:19:05 - End Time 2025-03-14 02:19:05 [2025-03-14 02:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675732', 'tblTempUsageDetail_20' ) start [2025-03-14 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675732', 'tblTempUsageDetail_20' ) end [2025-03-14 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675732', 'tblTempVendorCDR_20' ) start [2025-03-14 02:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675732', 'tblTempVendorCDR_20' ) end [2025-03-14 02:19:17] Production.INFO: ProcessCDR(1,14675732,1,1,2) [2025-03-14 02:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675732', 'tblTempUsageDetail_20' ) start [2025-03-14 02:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675732', 'tblTempUsageDetail_20' ) end [2025-03-14 02:19:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 02:19:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 02:19:20] Production.INFO: ==22230== Releasing lock... [2025-03-14 02:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 02:19:20] Production.INFO: 31.25 MB #Memory Used# [2025-03-14 02:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 23:20:06 [end_date_ymd] => 2025-03-14 02:20:06 [RateCDR] => 1 ) [2025-03-14 02:20: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-03-13 23:20:06' and `end` < '2025-03-14 02:20: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-03-14 02:20:18] Production.INFO: count ==410 [2025-03-14 02:20:18] Production.ERROR: pbx CDR StartTime 2025-03-13 23:20:06 - End Time 2025-03-14 02:20:06 [2025-03-14 02:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 02:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675738', 'tblTempUsageDetail_20' ) start [2025-03-14 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675738', 'tblTempUsageDetail_20' ) end [2025-03-14 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675738', 'tblTempVendorCDR_20' ) start [2025-03-14 02:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675738', 'tblTempVendorCDR_20' ) end [2025-03-14 02:20:19] Production.INFO: ProcessCDR(1,14675738,1,1,2) [2025-03-14 02:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675738', 'tblTempUsageDetail_20' ) start [2025-03-14 02:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675738', 'tblTempUsageDetail_20' ) end [2025-03-14 02:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 02:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 02:20:22] Production.INFO: ==22313== Releasing lock... [2025-03-14 02:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 02:20:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-14 02:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 23:21:04 [end_date_ymd] => 2025-03-14 02:21:04 [RateCDR] => 1 ) [2025-03-14 02:21: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-03-13 23:21:04' and `end` < '2025-03-14 02:21: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-03-14 02:21:17] Production.INFO: count ==408 [2025-03-14 02:21:17] Production.ERROR: pbx CDR StartTime 2025-03-13 23:21:04 - End Time 2025-03-14 02:21:04 [2025-03-14 02:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675743', 'tblTempUsageDetail_20' ) start [2025-03-14 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675743', 'tblTempUsageDetail_20' ) end [2025-03-14 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675743', 'tblTempVendorCDR_20' ) start [2025-03-14 02:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675743', 'tblTempVendorCDR_20' ) end [2025-03-14 02:21:17] Production.INFO: ProcessCDR(1,14675743,1,1,2) [2025-03-14 02:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675743', 'tblTempUsageDetail_20' ) start [2025-03-14 02:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675743', 'tblTempUsageDetail_20' ) end [2025-03-14 02:21:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 02:21:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 02:21:20] Production.INFO: ==22390== Releasing lock... [2025-03-14 02:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 02:21:20] Production.INFO: 31.5 MB #Memory Used# [2025-03-14 02:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 23:22:05 [end_date_ymd] => 2025-03-14 02:22:05 [RateCDR] => 1 ) [2025-03-14 02:22: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-03-13 23:22:05' and `end` < '2025-03-14 02:22: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-03-14 02:22:17] Production.INFO: count ==407 [2025-03-14 02:22:17] Production.ERROR: pbx CDR StartTime 2025-03-13 23:22:05 - End Time 2025-03-14 02:22:05 [2025-03-14 02:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675748', 'tblTempUsageDetail_20' ) start [2025-03-14 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675748', 'tblTempUsageDetail_20' ) end [2025-03-14 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675748', 'tblTempVendorCDR_20' ) start [2025-03-14 02:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675748', 'tblTempVendorCDR_20' ) end [2025-03-14 02:22:17] Production.INFO: ProcessCDR(1,14675748,1,1,2) [2025-03-14 02:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675748', 'tblTempUsageDetail_20' ) start [2025-03-14 02:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675748', 'tblTempUsageDetail_20' ) end [2025-03-14 02:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 02:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 02:22:21] Production.INFO: ==22471== Releasing lock... [2025-03-14 02:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 02:22:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-14 02:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 23:23:06 [end_date_ymd] => 2025-03-14 02:23:06 [RateCDR] => 1 ) [2025-03-14 02:23: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-03-13 23:23:06' and `end` < '2025-03-14 02:23: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-03-14 02:23:18] Production.INFO: count ==407 [2025-03-14 02:23:18] Production.ERROR: pbx CDR StartTime 2025-03-13 23:23:06 - End Time 2025-03-14 02:23:06 [2025-03-14 02:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675753', 'tblTempUsageDetail_20' ) start [2025-03-14 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675753', 'tblTempUsageDetail_20' ) end [2025-03-14 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675753', 'tblTempVendorCDR_20' ) start [2025-03-14 02:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675753', 'tblTempVendorCDR_20' ) end [2025-03-14 02:23:18] Production.INFO: ProcessCDR(1,14675753,1,1,2) [2025-03-14 02:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675753', 'tblTempUsageDetail_20' ) start [2025-03-14 02:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675753', 'tblTempUsageDetail_20' ) end [2025-03-14 02:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 02:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 02:23:21] Production.INFO: ==22554== Releasing lock... [2025-03-14 02:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 02:23:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-14 02:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 23:24:05 [end_date_ymd] => 2025-03-14 02:24:05 [RateCDR] => 1 ) [2025-03-14 02:24: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-03-13 23:24:05' and `end` < '2025-03-14 02:24: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-03-14 02:24:17] Production.INFO: count ==403 [2025-03-14 02:24:17] Production.ERROR: pbx CDR StartTime 2025-03-13 23:24:05 - End Time 2025-03-14 02:24:05 [2025-03-14 02:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675758', 'tblTempUsageDetail_20' ) start [2025-03-14 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675758', 'tblTempUsageDetail_20' ) end [2025-03-14 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675758', 'tblTempVendorCDR_20' ) start [2025-03-14 02:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675758', 'tblTempVendorCDR_20' ) end [2025-03-14 02:24:17] Production.INFO: ProcessCDR(1,14675758,1,1,2) [2025-03-14 02:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675758', 'tblTempUsageDetail_20' ) start [2025-03-14 02:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675758', 'tblTempUsageDetail_20' ) end [2025-03-14 02:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 02:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 02:24:21] Production.INFO: ==22635== Releasing lock... [2025-03-14 02:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 02:24:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-14 02:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 23:25:05 [end_date_ymd] => 2025-03-14 02:25:05 [RateCDR] => 1 ) [2025-03-14 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-03-13 23:25:05' and `end` < '2025-03-14 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-03-14 02:25:17] Production.INFO: count ==407 [2025-03-14 02:25:17] Production.ERROR: pbx CDR StartTime 2025-03-13 23:25:05 - End Time 2025-03-14 02:25:05 [2025-03-14 02:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675763', 'tblTempUsageDetail_20' ) start [2025-03-14 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675763', 'tblTempUsageDetail_20' ) end [2025-03-14 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675763', 'tblTempVendorCDR_20' ) start [2025-03-14 02:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675763', 'tblTempVendorCDR_20' ) end [2025-03-14 02:25:17] Production.INFO: ProcessCDR(1,14675763,1,1,2) [2025-03-14 02:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675763', 'tblTempUsageDetail_20' ) start [2025-03-14 02:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675763', 'tblTempUsageDetail_20' ) end [2025-03-14 02:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 02:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 02:25:21] Production.INFO: ==22755== Releasing lock... [2025-03-14 02:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 02:25:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-14 02:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 23:26:05 [end_date_ymd] => 2025-03-14 02:26:05 [RateCDR] => 1 ) [2025-03-14 02:26: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-03-13 23:26:05' and `end` < '2025-03-14 02:26: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-03-14 02:26:18] Production.INFO: count ==405 [2025-03-14 02:26:18] Production.ERROR: pbx CDR StartTime 2025-03-13 23:26:05 - End Time 2025-03-14 02:26:05 [2025-03-14 02:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675768', 'tblTempUsageDetail_20' ) start [2025-03-14 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675768', 'tblTempUsageDetail_20' ) end [2025-03-14 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675768', 'tblTempVendorCDR_20' ) start [2025-03-14 02:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675768', 'tblTempVendorCDR_20' ) end [2025-03-14 02:26:18] Production.INFO: ProcessCDR(1,14675768,1,1,2) [2025-03-14 02:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675768', 'tblTempUsageDetail_20' ) start [2025-03-14 02:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675768', 'tblTempUsageDetail_20' ) end [2025-03-14 02:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 02:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 02:26:21] Production.INFO: ==22836== Releasing lock... [2025-03-14 02:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 02:26:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-14 02:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 23:27:06 [end_date_ymd] => 2025-03-14 02:27:06 [RateCDR] => 1 ) [2025-03-14 02:27: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-03-13 23:27:06' and `end` < '2025-03-14 02:27: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-03-14 02:27:18] Production.INFO: count ==405 [2025-03-14 02:27:18] Production.ERROR: pbx CDR StartTime 2025-03-13 23:27:06 - End Time 2025-03-14 02:27:06 [2025-03-14 02:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675773', 'tblTempUsageDetail_20' ) start [2025-03-14 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675773', 'tblTempUsageDetail_20' ) end [2025-03-14 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675773', 'tblTempVendorCDR_20' ) start [2025-03-14 02:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675773', 'tblTempVendorCDR_20' ) end [2025-03-14 02:27:18] Production.INFO: ProcessCDR(1,14675773,1,1,2) [2025-03-14 02:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675773,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675773,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675773', 'tblTempUsageDetail_20' ) start [2025-03-14 02:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675773', 'tblTempUsageDetail_20' ) end [2025-03-14 02:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 02:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 02:27:22] Production.INFO: ==22915== Releasing lock... [2025-03-14 02:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 02:27:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-14 02:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 23:28:05 [end_date_ymd] => 2025-03-14 02:28:05 [RateCDR] => 1 ) [2025-03-14 02:28: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-03-13 23:28:05' and `end` < '2025-03-14 02:28: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-03-14 02:28:17] Production.INFO: count ==404 [2025-03-14 02:28:18] Production.ERROR: pbx CDR StartTime 2025-03-13 23:28:05 - End Time 2025-03-14 02:28:05 [2025-03-14 02:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675778', 'tblTempUsageDetail_20' ) start [2025-03-14 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675778', 'tblTempUsageDetail_20' ) end [2025-03-14 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675778', 'tblTempVendorCDR_20' ) start [2025-03-14 02:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675778', 'tblTempVendorCDR_20' ) end [2025-03-14 02:28:18] Production.INFO: ProcessCDR(1,14675778,1,1,2) [2025-03-14 02:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675778,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675778,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675778', 'tblTempUsageDetail_20' ) start [2025-03-14 02:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675778', 'tblTempUsageDetail_20' ) end [2025-03-14 02:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 02:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 02:28:21] Production.INFO: ==22991== Releasing lock... [2025-03-14 02:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 02:28:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-14 02:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 23:29:06 [end_date_ymd] => 2025-03-14 02:29:06 [RateCDR] => 1 ) [2025-03-14 02:29: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-03-13 23:29:06' and `end` < '2025-03-14 02:29: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-03-14 02:29:18] Production.INFO: count ==404 [2025-03-14 02:29:18] Production.ERROR: pbx CDR StartTime 2025-03-13 23:29:06 - End Time 2025-03-14 02:29:06 [2025-03-14 02:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675783', 'tblTempUsageDetail_20' ) start [2025-03-14 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675783', 'tblTempUsageDetail_20' ) end [2025-03-14 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675783', 'tblTempVendorCDR_20' ) start [2025-03-14 02:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675783', 'tblTempVendorCDR_20' ) end [2025-03-14 02:29:18] Production.INFO: ProcessCDR(1,14675783,1,1,2) [2025-03-14 02:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675783,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675783,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675783', 'tblTempUsageDetail_20' ) start [2025-03-14 02:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675783', 'tblTempUsageDetail_20' ) end [2025-03-14 02:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 02:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 02:29:21] Production.INFO: ==23067== Releasing lock... [2025-03-14 02:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 02:29:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-14 02:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 23:30:05 [end_date_ymd] => 2025-03-14 02:30:05 [RateCDR] => 1 ) [2025-03-14 02:30: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-03-13 23:30:05' and `end` < '2025-03-14 02:30: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-03-14 02:30:17] Production.INFO: count ==406 [2025-03-14 02:30:17] Production.ERROR: pbx CDR StartTime 2025-03-13 23:30:05 - End Time 2025-03-14 02:30:05 [2025-03-14 02:30:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 02:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675789', 'tblTempUsageDetail_20' ) start [2025-03-14 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675789', 'tblTempUsageDetail_20' ) end [2025-03-14 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675789', 'tblTempVendorCDR_20' ) start [2025-03-14 02:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675789', 'tblTempVendorCDR_20' ) end [2025-03-14 02:30:18] Production.INFO: ProcessCDR(1,14675789,1,1,2) [2025-03-14 02:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675789', 'tblTempUsageDetail_20' ) start [2025-03-14 02:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675789', 'tblTempUsageDetail_20' ) end [2025-03-14 02:30:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 02:30:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 02:30:21] Production.INFO: ==23148== Releasing lock... [2025-03-14 02:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 02:30:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-14 02:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 23:31:06 [end_date_ymd] => 2025-03-14 02:31:06 [RateCDR] => 1 ) [2025-03-14 02:31: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-03-13 23:31:06' and `end` < '2025-03-14 02:31: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-03-14 02:31:18] Production.INFO: count ==406 [2025-03-14 02:31:18] Production.ERROR: pbx CDR StartTime 2025-03-13 23:31:06 - End Time 2025-03-14 02:31:06 [2025-03-14 02:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675794', 'tblTempUsageDetail_20' ) start [2025-03-14 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675794', 'tblTempUsageDetail_20' ) end [2025-03-14 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675794', 'tblTempVendorCDR_20' ) start [2025-03-14 02:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675794', 'tblTempVendorCDR_20' ) end [2025-03-14 02:31:18] Production.INFO: ProcessCDR(1,14675794,1,1,2) [2025-03-14 02:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675794', 'tblTempUsageDetail_20' ) start [2025-03-14 02:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675794', 'tblTempUsageDetail_20' ) end [2025-03-14 02:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 02:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 02:31:21] Production.INFO: ==23230== Releasing lock... [2025-03-14 02:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 02:31:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-14 02:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 23:32:05 [end_date_ymd] => 2025-03-14 02:32:05 [RateCDR] => 1 ) [2025-03-14 02:32: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-03-13 23:32:05' and `end` < '2025-03-14 02:32: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-03-14 02:32:17] Production.INFO: count ==402 [2025-03-14 02:32:17] Production.ERROR: pbx CDR StartTime 2025-03-13 23:32:05 - End Time 2025-03-14 02:32:05 [2025-03-14 02:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675799', 'tblTempUsageDetail_20' ) start [2025-03-14 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675799', 'tblTempUsageDetail_20' ) end [2025-03-14 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675799', 'tblTempVendorCDR_20' ) start [2025-03-14 02:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675799', 'tblTempVendorCDR_20' ) end [2025-03-14 02:32:17] Production.INFO: ProcessCDR(1,14675799,1,1,2) [2025-03-14 02:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675799', 'tblTempUsageDetail_20' ) start [2025-03-14 02:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675799', 'tblTempUsageDetail_20' ) end [2025-03-14 02:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 02:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 02:32:21] Production.INFO: ==23308== Releasing lock... [2025-03-14 02:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 02:32:21] Production.INFO: 31 MB #Memory Used# [2025-03-14 02:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 23:33:05 [end_date_ymd] => 2025-03-14 02:33:05 [RateCDR] => 1 ) [2025-03-14 02:33: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-03-13 23:33:05' and `end` < '2025-03-14 02:33: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-03-14 02:33:17] Production.INFO: count ==401 [2025-03-14 02:33:18] Production.ERROR: pbx CDR StartTime 2025-03-13 23:33:05 - End Time 2025-03-14 02:33:05 [2025-03-14 02:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675804', 'tblTempUsageDetail_20' ) start [2025-03-14 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675804', 'tblTempUsageDetail_20' ) end [2025-03-14 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675804', 'tblTempVendorCDR_20' ) start [2025-03-14 02:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675804', 'tblTempVendorCDR_20' ) end [2025-03-14 02:33:18] Production.INFO: ProcessCDR(1,14675804,1,1,2) [2025-03-14 02:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675804', 'tblTempUsageDetail_20' ) start [2025-03-14 02:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675804', 'tblTempUsageDetail_20' ) end [2025-03-14 02:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 02:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 02:33:21] Production.INFO: ==23384== Releasing lock... [2025-03-14 02:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 02:33:21] Production.INFO: 31.5 MB #Memory Used# [2025-03-14 02:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 23:34:06 [end_date_ymd] => 2025-03-14 02:34:06 [RateCDR] => 1 ) [2025-03-14 02:34: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-03-13 23:34:06' and `end` < '2025-03-14 02:34: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-03-14 02:34:18] Production.INFO: count ==397 [2025-03-14 02:34:18] Production.ERROR: pbx CDR StartTime 2025-03-13 23:34:06 - End Time 2025-03-14 02:34:06 [2025-03-14 02:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675809', 'tblTempUsageDetail_20' ) start [2025-03-14 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675809', 'tblTempUsageDetail_20' ) end [2025-03-14 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675809', 'tblTempVendorCDR_20' ) start [2025-03-14 02:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675809', 'tblTempVendorCDR_20' ) end [2025-03-14 02:34:18] Production.INFO: ProcessCDR(1,14675809,1,1,2) [2025-03-14 02:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675809', 'tblTempUsageDetail_20' ) start [2025-03-14 02:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675809', 'tblTempUsageDetail_20' ) end [2025-03-14 02:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 02:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 02:34:22] Production.INFO: ==23460== Releasing lock... [2025-03-14 02:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 02:34:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-14 02:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 23:35:06 [end_date_ymd] => 2025-03-14 02:35:06 [RateCDR] => 1 ) [2025-03-14 02:35: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-03-13 23:35:06' and `end` < '2025-03-14 02:35: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-03-14 02:35:18] Production.INFO: count ==397 [2025-03-14 02:35:18] Production.ERROR: pbx CDR StartTime 2025-03-13 23:35:06 - End Time 2025-03-14 02:35:06 [2025-03-14 02:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675814', 'tblTempUsageDetail_20' ) start [2025-03-14 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675814', 'tblTempUsageDetail_20' ) end [2025-03-14 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675814', 'tblTempVendorCDR_20' ) start [2025-03-14 02:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675814', 'tblTempVendorCDR_20' ) end [2025-03-14 02:35:18] Production.INFO: ProcessCDR(1,14675814,1,1,2) [2025-03-14 02:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675814', 'tblTempUsageDetail_20' ) start [2025-03-14 02:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675814', 'tblTempUsageDetail_20' ) end [2025-03-14 02:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 02:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 02:35:22] Production.INFO: ==23536== Releasing lock... [2025-03-14 02:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 02:35:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-14 02:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 23:36:05 [end_date_ymd] => 2025-03-14 02:36:05 [RateCDR] => 1 ) [2025-03-14 02:36: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-03-13 23:36:05' and `end` < '2025-03-14 02:36: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-03-14 02:36:18] Production.INFO: count ==397 [2025-03-14 02:36:18] Production.ERROR: pbx CDR StartTime 2025-03-13 23:36:05 - End Time 2025-03-14 02:36:05 [2025-03-14 02:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675819', 'tblTempUsageDetail_20' ) start [2025-03-14 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675819', 'tblTempUsageDetail_20' ) end [2025-03-14 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675819', 'tblTempVendorCDR_20' ) start [2025-03-14 02:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675819', 'tblTempVendorCDR_20' ) end [2025-03-14 02:36:18] Production.INFO: ProcessCDR(1,14675819,1,1,2) [2025-03-14 02:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675819,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675819,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675819', 'tblTempUsageDetail_20' ) start [2025-03-14 02:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675819', 'tblTempUsageDetail_20' ) end [2025-03-14 02:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 02:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 02:36:21] Production.INFO: ==23610== Releasing lock... [2025-03-14 02:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 02:36:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-14 02:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 23:37:06 [end_date_ymd] => 2025-03-14 02:37:06 [RateCDR] => 1 ) [2025-03-14 02:37: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-03-13 23:37:06' and `end` < '2025-03-14 02:37: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-03-14 02:37:18] Production.INFO: count ==391 [2025-03-14 02:37:18] Production.ERROR: pbx CDR StartTime 2025-03-13 23:37:06 - End Time 2025-03-14 02:37:06 [2025-03-14 02:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675824', 'tblTempUsageDetail_20' ) start [2025-03-14 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675824', 'tblTempUsageDetail_20' ) end [2025-03-14 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675824', 'tblTempVendorCDR_20' ) start [2025-03-14 02:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675824', 'tblTempVendorCDR_20' ) end [2025-03-14 02:37:18] Production.INFO: ProcessCDR(1,14675824,1,1,2) [2025-03-14 02:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675824,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675824,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675824', 'tblTempUsageDetail_20' ) start [2025-03-14 02:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675824', 'tblTempUsageDetail_20' ) end [2025-03-14 02:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 02:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 02:37:22] Production.INFO: ==23694== Releasing lock... [2025-03-14 02:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 02:37:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-14 02:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 23:38:05 [end_date_ymd] => 2025-03-14 02:38:05 [RateCDR] => 1 ) [2025-03-14 02:38: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-03-13 23:38:05' and `end` < '2025-03-14 02:38: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-03-14 02:38:18] Production.INFO: count ==387 [2025-03-14 02:38:18] Production.ERROR: pbx CDR StartTime 2025-03-13 23:38:05 - End Time 2025-03-14 02:38:05 [2025-03-14 02:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675829', 'tblTempUsageDetail_20' ) start [2025-03-14 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675829', 'tblTempUsageDetail_20' ) end [2025-03-14 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675829', 'tblTempVendorCDR_20' ) start [2025-03-14 02:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675829', 'tblTempVendorCDR_20' ) end [2025-03-14 02:38:18] Production.INFO: ProcessCDR(1,14675829,1,1,2) [2025-03-14 02:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675829,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675829,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675829', 'tblTempUsageDetail_20' ) start [2025-03-14 02:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675829', 'tblTempUsageDetail_20' ) end [2025-03-14 02:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 02:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 02:38:21] Production.INFO: ==23772== Releasing lock... [2025-03-14 02:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 02:38:21] Production.INFO: 31 MB #Memory Used# [2025-03-14 02:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 23:39:06 [end_date_ymd] => 2025-03-14 02:39:06 [RateCDR] => 1 ) [2025-03-14 02:39: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-03-13 23:39:06' and `end` < '2025-03-14 02:39: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-03-14 02:39:18] Production.INFO: count ==386 [2025-03-14 02:39:18] Production.ERROR: pbx CDR StartTime 2025-03-13 23:39:06 - End Time 2025-03-14 02:39:06 [2025-03-14 02:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675834', 'tblTempUsageDetail_20' ) start [2025-03-14 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675834', 'tblTempUsageDetail_20' ) end [2025-03-14 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675834', 'tblTempVendorCDR_20' ) start [2025-03-14 02:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675834', 'tblTempVendorCDR_20' ) end [2025-03-14 02:39:18] Production.INFO: ProcessCDR(1,14675834,1,1,2) [2025-03-14 02:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675834', 'tblTempUsageDetail_20' ) start [2025-03-14 02:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675834', 'tblTempUsageDetail_20' ) end [2025-03-14 02:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 02:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 02:39:22] Production.INFO: ==23871== Releasing lock... [2025-03-14 02:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 02:39:22] Production.INFO: 31 MB #Memory Used# [2025-03-14 02:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 23:40:06 [end_date_ymd] => 2025-03-14 02:40:06 [RateCDR] => 1 ) [2025-03-14 02:40: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-03-13 23:40:06' and `end` < '2025-03-14 02:40: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-03-14 02:40:19] Production.INFO: count ==396 [2025-03-14 02:40:19] Production.ERROR: pbx CDR StartTime 2025-03-13 23:40:06 - End Time 2025-03-14 02:40:06 [2025-03-14 02:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675840', 'tblTempUsageDetail_20' ) start [2025-03-14 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675840', 'tblTempUsageDetail_20' ) end [2025-03-14 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675840', 'tblTempVendorCDR_20' ) start [2025-03-14 02:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675840', 'tblTempVendorCDR_20' ) end [2025-03-14 02:40:19] Production.INFO: ProcessCDR(1,14675840,1,1,2) [2025-03-14 02:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675840', 'tblTempUsageDetail_20' ) start [2025-03-14 02:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675840', 'tblTempUsageDetail_20' ) end [2025-03-14 02:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 02:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 02:40:23] Production.INFO: ==23949== Releasing lock... [2025-03-14 02:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 02:40:23] Production.INFO: 31.25 MB #Memory Used# [2025-03-14 02:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 23:41:06 [end_date_ymd] => 2025-03-14 02:41:06 [RateCDR] => 1 ) [2025-03-14 02:41: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-03-13 23:41:06' and `end` < '2025-03-14 02:41: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-03-14 02:41:18] Production.INFO: count ==395 [2025-03-14 02:41:18] Production.ERROR: pbx CDR StartTime 2025-03-13 23:41:06 - End Time 2025-03-14 02:41:06 [2025-03-14 02:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675845', 'tblTempUsageDetail_20' ) start [2025-03-14 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675845', 'tblTempUsageDetail_20' ) end [2025-03-14 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675845', 'tblTempVendorCDR_20' ) start [2025-03-14 02:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675845', 'tblTempVendorCDR_20' ) end [2025-03-14 02:41:18] Production.INFO: ProcessCDR(1,14675845,1,1,2) [2025-03-14 02:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675845', 'tblTempUsageDetail_20' ) start [2025-03-14 02:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675845', 'tblTempUsageDetail_20' ) end [2025-03-14 02:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 02:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 02:41:22] Production.INFO: ==24068== Releasing lock... [2025-03-14 02:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 02:41:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-14 02:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 23:42:06 [end_date_ymd] => 2025-03-14 02:42:06 [RateCDR] => 1 ) [2025-03-14 02:42: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-03-13 23:42:06' and `end` < '2025-03-14 02:42: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-03-14 02:42:18] Production.INFO: count ==395 [2025-03-14 02:42:18] Production.ERROR: pbx CDR StartTime 2025-03-13 23:42:06 - End Time 2025-03-14 02:42:06 [2025-03-14 02:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675850', 'tblTempUsageDetail_20' ) start [2025-03-14 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675850', 'tblTempUsageDetail_20' ) end [2025-03-14 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675850', 'tblTempVendorCDR_20' ) start [2025-03-14 02:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675850', 'tblTempVendorCDR_20' ) end [2025-03-14 02:42:18] Production.INFO: ProcessCDR(1,14675850,1,1,2) [2025-03-14 02:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675850', 'tblTempUsageDetail_20' ) start [2025-03-14 02:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675850', 'tblTempUsageDetail_20' ) end [2025-03-14 02:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 02:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 02:42:22] Production.INFO: ==24143== Releasing lock... [2025-03-14 02:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 02:42:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-14 02:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 23:43:06 [end_date_ymd] => 2025-03-14 02:43:06 [RateCDR] => 1 ) [2025-03-14 02:43: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-03-13 23:43:06' and `end` < '2025-03-14 02:43: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-03-14 02:43:18] Production.INFO: count ==395 [2025-03-14 02:43:18] Production.ERROR: pbx CDR StartTime 2025-03-13 23:43:06 - End Time 2025-03-14 02:43:06 [2025-03-14 02:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675855', 'tblTempUsageDetail_20' ) start [2025-03-14 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675855', 'tblTempUsageDetail_20' ) end [2025-03-14 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675855', 'tblTempVendorCDR_20' ) start [2025-03-14 02:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675855', 'tblTempVendorCDR_20' ) end [2025-03-14 02:43:18] Production.INFO: ProcessCDR(1,14675855,1,1,2) [2025-03-14 02:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675855', 'tblTempUsageDetail_20' ) start [2025-03-14 02:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675855', 'tblTempUsageDetail_20' ) end [2025-03-14 02:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 02:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 02:43:22] Production.INFO: ==24226== Releasing lock... [2025-03-14 02:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 02:43:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-14 02:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 23:44:05 [end_date_ymd] => 2025-03-14 02:44:05 [RateCDR] => 1 ) [2025-03-14 02:44: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-03-13 23:44:05' and `end` < '2025-03-14 02:44: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-03-14 02:44:17] Production.INFO: count ==395 [2025-03-14 02:44:17] Production.ERROR: pbx CDR StartTime 2025-03-13 23:44:05 - End Time 2025-03-14 02:44:05 [2025-03-14 02:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 02:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675860', 'tblTempUsageDetail_20' ) start [2025-03-14 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675860', 'tblTempUsageDetail_20' ) end [2025-03-14 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675860', 'tblTempVendorCDR_20' ) start [2025-03-14 02:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675860', 'tblTempVendorCDR_20' ) end [2025-03-14 02:44:18] Production.INFO: ProcessCDR(1,14675860,1,1,2) [2025-03-14 02:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675860', 'tblTempUsageDetail_20' ) start [2025-03-14 02:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675860', 'tblTempUsageDetail_20' ) end [2025-03-14 02:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 02:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 02:44:21] Production.INFO: ==24304== Releasing lock... [2025-03-14 02:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 02:44:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-14 02:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 23:45:06 [end_date_ymd] => 2025-03-14 02:45:06 [RateCDR] => 1 ) [2025-03-14 02:45: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-03-13 23:45:06' and `end` < '2025-03-14 02:45: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-03-14 02:45:18] Production.INFO: count ==395 [2025-03-14 02:45:18] Production.ERROR: pbx CDR StartTime 2025-03-13 23:45:06 - End Time 2025-03-14 02:45:06 [2025-03-14 02:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675865', 'tblTempUsageDetail_20' ) start [2025-03-14 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675865', 'tblTempUsageDetail_20' ) end [2025-03-14 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675865', 'tblTempVendorCDR_20' ) start [2025-03-14 02:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675865', 'tblTempVendorCDR_20' ) end [2025-03-14 02:45:18] Production.INFO: ProcessCDR(1,14675865,1,1,2) [2025-03-14 02:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675865,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675865,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675865', 'tblTempUsageDetail_20' ) start [2025-03-14 02:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675865', 'tblTempUsageDetail_20' ) end [2025-03-14 02:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 02:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 02:45:22] Production.INFO: ==24384== Releasing lock... [2025-03-14 02:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 02:45:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-14 02:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 23:46:05 [end_date_ymd] => 2025-03-14 02:46:05 [RateCDR] => 1 ) [2025-03-14 02:46: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-03-13 23:46:05' and `end` < '2025-03-14 02:46: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-03-14 02:46:18] Production.INFO: count ==394 [2025-03-14 02:46:18] Production.ERROR: pbx CDR StartTime 2025-03-13 23:46:05 - End Time 2025-03-14 02:46:05 [2025-03-14 02:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675870', 'tblTempUsageDetail_20' ) start [2025-03-14 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675870', 'tblTempUsageDetail_20' ) end [2025-03-14 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675870', 'tblTempVendorCDR_20' ) start [2025-03-14 02:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675870', 'tblTempVendorCDR_20' ) end [2025-03-14 02:46:18] Production.INFO: ProcessCDR(1,14675870,1,1,2) [2025-03-14 02:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675870,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675870,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675870', 'tblTempUsageDetail_20' ) start [2025-03-14 02:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675870', 'tblTempUsageDetail_20' ) end [2025-03-14 02:46:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 02:46:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 02:46:23] Production.INFO: ==24498== Releasing lock... [2025-03-14 02:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 02:46:23] Production.INFO: 31 MB #Memory Used# [2025-03-14 02:47:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 23:47:07 [end_date_ymd] => 2025-03-14 02:47:07 [RateCDR] => 1 ) [2025-03-14 02:47:07] 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-03-13 23:47:07' and `end` < '2025-03-14 02:47:07' 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-03-14 02:47:19] Production.INFO: count ==391 [2025-03-14 02:47:19] Production.ERROR: pbx CDR StartTime 2025-03-13 23:47:07 - End Time 2025-03-14 02:47:07 [2025-03-14 02:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675875', 'tblTempUsageDetail_20' ) start [2025-03-14 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675875', 'tblTempUsageDetail_20' ) end [2025-03-14 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675875', 'tblTempVendorCDR_20' ) start [2025-03-14 02:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675875', 'tblTempVendorCDR_20' ) end [2025-03-14 02:47:19] Production.INFO: ProcessCDR(1,14675875,1,1,2) [2025-03-14 02:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675875,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675875,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675875', 'tblTempUsageDetail_20' ) start [2025-03-14 02:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675875', 'tblTempUsageDetail_20' ) end [2025-03-14 02:47:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 02:47:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 02:47:25] Production.INFO: ==24617== Releasing lock... [2025-03-14 02:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 02:47:25] Production.INFO: 30.5 MB #Memory Used# [2025-03-14 02:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 23:48:05 [end_date_ymd] => 2025-03-14 02:48:05 [RateCDR] => 1 ) [2025-03-14 02:48: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-03-13 23:48:05' and `end` < '2025-03-14 02:48: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-03-14 02:48:18] Production.INFO: count ==385 [2025-03-14 02:48:18] Production.ERROR: pbx CDR StartTime 2025-03-13 23:48:05 - End Time 2025-03-14 02:48:05 [2025-03-14 02:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675880', 'tblTempUsageDetail_20' ) start [2025-03-14 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675880', 'tblTempUsageDetail_20' ) end [2025-03-14 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675880', 'tblTempVendorCDR_20' ) start [2025-03-14 02:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675880', 'tblTempVendorCDR_20' ) end [2025-03-14 02:48:18] Production.INFO: ProcessCDR(1,14675880,1,1,2) [2025-03-14 02:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675880,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675880,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675880', 'tblTempUsageDetail_20' ) start [2025-03-14 02:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675880', 'tblTempUsageDetail_20' ) end [2025-03-14 02:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 02:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 02:48:22] Production.INFO: ==24693== Releasing lock... [2025-03-14 02:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 02:48:22] Production.INFO: 31 MB #Memory Used# [2025-03-14 02:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 23:49:05 [end_date_ymd] => 2025-03-14 02:49:05 [RateCDR] => 1 ) [2025-03-14 02:49: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-03-13 23:49:05' and `end` < '2025-03-14 02:49: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-03-14 02:49:17] Production.INFO: count ==385 [2025-03-14 02:49:17] Production.ERROR: pbx CDR StartTime 2025-03-13 23:49:05 - End Time 2025-03-14 02:49:05 [2025-03-14 02:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675885', 'tblTempUsageDetail_20' ) start [2025-03-14 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675885', 'tblTempUsageDetail_20' ) end [2025-03-14 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675885', 'tblTempVendorCDR_20' ) start [2025-03-14 02:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675885', 'tblTempVendorCDR_20' ) end [2025-03-14 02:49:17] Production.INFO: ProcessCDR(1,14675885,1,1,2) [2025-03-14 02:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675885,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675885,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675885', 'tblTempUsageDetail_20' ) start [2025-03-14 02:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675885', 'tblTempUsageDetail_20' ) end [2025-03-14 02:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 02:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 02:49:21] Production.INFO: ==24770== Releasing lock... [2025-03-14 02:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 02:49:21] Production.INFO: 31 MB #Memory Used# [2025-03-14 02:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 23:50:07 [end_date_ymd] => 2025-03-14 02:50:07 [RateCDR] => 1 ) [2025-03-14 02:50:07] 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-03-13 23:50:07' and `end` < '2025-03-14 02:50:07' 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-03-14 02:50:19] Production.INFO: count ==390 [2025-03-14 02:50:19] Production.ERROR: pbx CDR StartTime 2025-03-13 23:50:07 - End Time 2025-03-14 02:50:07 [2025-03-14 02:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675891', 'tblTempUsageDetail_20' ) start [2025-03-14 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675891', 'tblTempUsageDetail_20' ) end [2025-03-14 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675891', 'tblTempVendorCDR_20' ) start [2025-03-14 02:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675891', 'tblTempVendorCDR_20' ) end [2025-03-14 02:50:19] Production.INFO: ProcessCDR(1,14675891,1,1,2) [2025-03-14 02:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675891', 'tblTempUsageDetail_20' ) start [2025-03-14 02:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675891', 'tblTempUsageDetail_20' ) end [2025-03-14 02:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 02:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 02:50:23] Production.INFO: ==24848== Releasing lock... [2025-03-14 02:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 02:50:23] Production.INFO: 31 MB #Memory Used# [2025-03-14 02:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 23:51:06 [end_date_ymd] => 2025-03-14 02:51:06 [RateCDR] => 1 ) [2025-03-14 02:51: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-03-13 23:51:06' and `end` < '2025-03-14 02:51: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-03-14 02:51:18] Production.INFO: count ==386 [2025-03-14 02:51:18] Production.ERROR: pbx CDR StartTime 2025-03-13 23:51:06 - End Time 2025-03-14 02:51:06 [2025-03-14 02:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675896', 'tblTempUsageDetail_20' ) start [2025-03-14 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675896', 'tblTempUsageDetail_20' ) end [2025-03-14 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675896', 'tblTempVendorCDR_20' ) start [2025-03-14 02:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675896', 'tblTempVendorCDR_20' ) end [2025-03-14 02:51:18] Production.INFO: ProcessCDR(1,14675896,1,1,2) [2025-03-14 02:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675896', 'tblTempUsageDetail_20' ) start [2025-03-14 02:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675896', 'tblTempUsageDetail_20' ) end [2025-03-14 02:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 02:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 02:51:22] Production.INFO: ==24935== Releasing lock... [2025-03-14 02:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 02:51:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-14 02:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 23:52:06 [end_date_ymd] => 2025-03-14 02:52:06 [RateCDR] => 1 ) [2025-03-14 02:52: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-03-13 23:52:06' and `end` < '2025-03-14 02:52: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-03-14 02:52:18] Production.INFO: count ==383 [2025-03-14 02:52:19] Production.ERROR: pbx CDR StartTime 2025-03-13 23:52:06 - End Time 2025-03-14 02:52:06 [2025-03-14 02:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675901', 'tblTempUsageDetail_20' ) start [2025-03-14 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675901', 'tblTempUsageDetail_20' ) end [2025-03-14 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675901', 'tblTempVendorCDR_20' ) start [2025-03-14 02:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675901', 'tblTempVendorCDR_20' ) end [2025-03-14 02:52:19] Production.INFO: ProcessCDR(1,14675901,1,1,2) [2025-03-14 02:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675901', 'tblTempUsageDetail_20' ) start [2025-03-14 02:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675901', 'tblTempUsageDetail_20' ) end [2025-03-14 02:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 02:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 02:52:22] Production.INFO: ==25021== Releasing lock... [2025-03-14 02:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 02:52:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-14 02:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 23:53:06 [end_date_ymd] => 2025-03-14 02:53:06 [RateCDR] => 1 ) [2025-03-14 02:53: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-03-13 23:53:06' and `end` < '2025-03-14 02:53: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-03-14 02:53:18] Production.INFO: count ==383 [2025-03-14 02:53:18] Production.ERROR: pbx CDR StartTime 2025-03-13 23:53:06 - End Time 2025-03-14 02:53:06 [2025-03-14 02:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675906', 'tblTempUsageDetail_20' ) start [2025-03-14 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675906', 'tblTempUsageDetail_20' ) end [2025-03-14 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675906', 'tblTempVendorCDR_20' ) start [2025-03-14 02:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675906', 'tblTempVendorCDR_20' ) end [2025-03-14 02:53:18] Production.INFO: ProcessCDR(1,14675906,1,1,2) [2025-03-14 02:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675906', 'tblTempUsageDetail_20' ) start [2025-03-14 02:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675906', 'tblTempUsageDetail_20' ) end [2025-03-14 02:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 02:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 02:53:21] Production.INFO: ==25102== Releasing lock... [2025-03-14 02:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 02:53:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-14 02:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 23:54:06 [end_date_ymd] => 2025-03-14 02:54:06 [RateCDR] => 1 ) [2025-03-14 02:54: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-03-13 23:54:06' and `end` < '2025-03-14 02:54: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-03-14 02:54:18] Production.INFO: count ==379 [2025-03-14 02:54:18] Production.ERROR: pbx CDR StartTime 2025-03-13 23:54:06 - End Time 2025-03-14 02:54:06 [2025-03-14 02:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675911', 'tblTempUsageDetail_20' ) start [2025-03-14 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675911', 'tblTempUsageDetail_20' ) end [2025-03-14 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675911', 'tblTempVendorCDR_20' ) start [2025-03-14 02:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675911', 'tblTempVendorCDR_20' ) end [2025-03-14 02:54:18] Production.INFO: ProcessCDR(1,14675911,1,1,2) [2025-03-14 02:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675911', 'tblTempUsageDetail_20' ) start [2025-03-14 02:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675911', 'tblTempUsageDetail_20' ) end [2025-03-14 02:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 02:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 02:54:22] Production.INFO: ==25189== Releasing lock... [2025-03-14 02:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 02:54:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-14 02:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 23:55:05 [end_date_ymd] => 2025-03-14 02:55:05 [RateCDR] => 1 ) [2025-03-14 02:55: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-03-13 23:55:05' and `end` < '2025-03-14 02:55: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-03-14 02:55:18] Production.INFO: count ==379 [2025-03-14 02:55:18] Production.ERROR: pbx CDR StartTime 2025-03-13 23:55:05 - End Time 2025-03-14 02:55:05 [2025-03-14 02:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675916', 'tblTempUsageDetail_20' ) start [2025-03-14 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675916', 'tblTempUsageDetail_20' ) end [2025-03-14 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675916', 'tblTempVendorCDR_20' ) start [2025-03-14 02:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675916', 'tblTempVendorCDR_20' ) end [2025-03-14 02:55:18] Production.INFO: ProcessCDR(1,14675916,1,1,2) [2025-03-14 02:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675916', 'tblTempUsageDetail_20' ) start [2025-03-14 02:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675916', 'tblTempUsageDetail_20' ) end [2025-03-14 02:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 02:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 02:55:21] Production.INFO: ==25292== Releasing lock... [2025-03-14 02:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 02:55:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-14 02:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 23:56:06 [end_date_ymd] => 2025-03-14 02:56:06 [RateCDR] => 1 ) [2025-03-14 02:56: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-03-13 23:56:06' and `end` < '2025-03-14 02:56: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-03-14 02:56:18] Production.INFO: count ==378 [2025-03-14 02:56:18] Production.ERROR: pbx CDR StartTime 2025-03-13 23:56:06 - End Time 2025-03-14 02:56:06 [2025-03-14 02:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 02:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675921', 'tblTempUsageDetail_20' ) start [2025-03-14 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675921', 'tblTempUsageDetail_20' ) end [2025-03-14 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675921', 'tblTempVendorCDR_20' ) start [2025-03-14 02:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675921', 'tblTempVendorCDR_20' ) end [2025-03-14 02:56:19] Production.INFO: ProcessCDR(1,14675921,1,1,2) [2025-03-14 02:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675921,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675921,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675921', 'tblTempUsageDetail_20' ) start [2025-03-14 02:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675921', 'tblTempUsageDetail_20' ) end [2025-03-14 02:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 02:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 02:56:22] Production.INFO: ==25436== Releasing lock... [2025-03-14 02:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 02:56:22] Production.INFO: 31 MB #Memory Used# [2025-03-14 02:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 23:57:06 [end_date_ymd] => 2025-03-14 02:57:06 [RateCDR] => 1 ) [2025-03-14 02:57: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-03-13 23:57:06' and `end` < '2025-03-14 02:57: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-03-14 02:57:18] Production.INFO: count ==378 [2025-03-14 02:57:18] Production.ERROR: pbx CDR StartTime 2025-03-13 23:57:06 - End Time 2025-03-14 02:57:06 [2025-03-14 02:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675926', 'tblTempUsageDetail_20' ) start [2025-03-14 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675926', 'tblTempUsageDetail_20' ) end [2025-03-14 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675926', 'tblTempVendorCDR_20' ) start [2025-03-14 02:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675926', 'tblTempVendorCDR_20' ) end [2025-03-14 02:57:18] Production.INFO: ProcessCDR(1,14675926,1,1,2) [2025-03-14 02:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675926,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675926,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675926', 'tblTempUsageDetail_20' ) start [2025-03-14 02:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675926', 'tblTempUsageDetail_20' ) end [2025-03-14 02:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 02:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 02:57:22] Production.INFO: ==25542== Releasing lock... [2025-03-14 02:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 02:57:22] Production.INFO: 31 MB #Memory Used# [2025-03-14 02:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 23:58:05 [end_date_ymd] => 2025-03-14 02:58:05 [RateCDR] => 1 ) [2025-03-14 02:58: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-03-13 23:58:05' and `end` < '2025-03-14 02:58: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-03-14 02:58:17] Production.INFO: count ==378 [2025-03-14 02:58:17] Production.ERROR: pbx CDR StartTime 2025-03-13 23:58:05 - End Time 2025-03-14 02:58:05 [2025-03-14 02:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 02:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675931', 'tblTempUsageDetail_20' ) start [2025-03-14 02:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675931', 'tblTempUsageDetail_20' ) end [2025-03-14 02:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675931', 'tblTempVendorCDR_20' ) start [2025-03-14 02:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675931', 'tblTempVendorCDR_20' ) end [2025-03-14 02:58:17] Production.INFO: ProcessCDR(1,14675931,1,1,2) [2025-03-14 02:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675931,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675931,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675931', 'tblTempUsageDetail_20' ) start [2025-03-14 02:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675931', 'tblTempUsageDetail_20' ) end [2025-03-14 02:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 02:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 02:58:21] Production.INFO: ==25650== Releasing lock... [2025-03-14 02:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 02:58:21] Production.INFO: 31 MB #Memory Used# [2025-03-14 02:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-13 23:59:06 [end_date_ymd] => 2025-03-14 02:59:06 [RateCDR] => 1 ) [2025-03-14 02:59: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-03-13 23:59:06' and `end` < '2025-03-14 02:59: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-03-14 02:59:18] Production.INFO: count ==378 [2025-03-14 02:59:18] Production.ERROR: pbx CDR StartTime 2025-03-13 23:59:06 - End Time 2025-03-14 02:59:06 [2025-03-14 02:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675936', 'tblTempUsageDetail_20' ) start [2025-03-14 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675936', 'tblTempUsageDetail_20' ) end [2025-03-14 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675936', 'tblTempVendorCDR_20' ) start [2025-03-14 02:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675936', 'tblTempVendorCDR_20' ) end [2025-03-14 02:59:18] Production.INFO: ProcessCDR(1,14675936,1,1,2) [2025-03-14 02:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 02:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 02:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675936', 'tblTempUsageDetail_20' ) start [2025-03-14 02:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675936', 'tblTempUsageDetail_20' ) end [2025-03-14 02:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 02:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 02:59:22] Production.INFO: ==25757== Releasing lock... [2025-03-14 02:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 02:59:22] Production.INFO: 31 MB #Memory Used# [2025-03-14 03:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 00:00:05 [end_date_ymd] => 2025-03-14 03:00:05 [RateCDR] => 1 ) [2025-03-14 03:00: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-03-14 00:00:05' and `end` < '2025-03-14 03:00: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-03-14 03:00:17] Production.INFO: count ==374 [2025-03-14 03:00:18] Production.ERROR: pbx CDR StartTime 2025-03-14 00:00:05 - End Time 2025-03-14 03:00:05 [2025-03-14 03:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675941', 'tblTempUsageDetail_20' ) start [2025-03-14 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675941', 'tblTempUsageDetail_20' ) end [2025-03-14 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675941', 'tblTempVendorCDR_20' ) start [2025-03-14 03:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675941', 'tblTempVendorCDR_20' ) end [2025-03-14 03:00:18] Production.INFO: ProcessCDR(1,14675941,1,1,2) [2025-03-14 03:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675941', 'tblTempUsageDetail_20' ) start [2025-03-14 03:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675941', 'tblTempUsageDetail_20' ) end [2025-03-14 03:00:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 03:00:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 03:00:21] Production.INFO: ==25865== Releasing lock... [2025-03-14 03:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 03:00:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-14 03:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 00:01:06 [end_date_ymd] => 2025-03-14 03:01:06 [RateCDR] => 1 ) [2025-03-14 03:01: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-03-14 00:01:06' and `end` < '2025-03-14 03:01: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-03-14 03:01:18] Production.INFO: count ==374 [2025-03-14 03:01:18] Production.ERROR: pbx CDR StartTime 2025-03-14 00:01:06 - End Time 2025-03-14 03:01:06 [2025-03-14 03:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675947', 'tblTempUsageDetail_20' ) start [2025-03-14 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675947', 'tblTempUsageDetail_20' ) end [2025-03-14 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675947', 'tblTempVendorCDR_20' ) start [2025-03-14 03:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675947', 'tblTempVendorCDR_20' ) end [2025-03-14 03:01:18] Production.INFO: ProcessCDR(1,14675947,1,1,2) [2025-03-14 03:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675947', 'tblTempUsageDetail_20' ) start [2025-03-14 03:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675947', 'tblTempUsageDetail_20' ) end [2025-03-14 03:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 03:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 03:01:22] Production.INFO: ==25987== Releasing lock... [2025-03-14 03:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 03:01:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-14 03:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 00:02:06 [end_date_ymd] => 2025-03-14 03:02:06 [RateCDR] => 1 ) [2025-03-14 03:02: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-03-14 00:02:06' and `end` < '2025-03-14 03:02: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-03-14 03:02:18] Production.INFO: count ==374 [2025-03-14 03:02:19] Production.ERROR: pbx CDR StartTime 2025-03-14 00:02:06 - End Time 2025-03-14 03:02:06 [2025-03-14 03:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675952', 'tblTempUsageDetail_20' ) start [2025-03-14 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675952', 'tblTempUsageDetail_20' ) end [2025-03-14 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675952', 'tblTempVendorCDR_20' ) start [2025-03-14 03:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675952', 'tblTempVendorCDR_20' ) end [2025-03-14 03:02:19] Production.INFO: ProcessCDR(1,14675952,1,1,2) [2025-03-14 03:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675952', 'tblTempUsageDetail_20' ) start [2025-03-14 03:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675952', 'tblTempUsageDetail_20' ) end [2025-03-14 03:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 03:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 03:02:22] Production.INFO: ==26170== Releasing lock... [2025-03-14 03:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 03:02:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-14 03:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 00:03:05 [end_date_ymd] => 2025-03-14 03:03:05 [RateCDR] => 1 ) [2025-03-14 03:03: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-03-14 00:03:05' and `end` < '2025-03-14 03:03: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-03-14 03:03:18] Production.INFO: count ==374 [2025-03-14 03:03:18] Production.ERROR: pbx CDR StartTime 2025-03-14 00:03:05 - End Time 2025-03-14 03:03:05 [2025-03-14 03:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675957', 'tblTempUsageDetail_20' ) start [2025-03-14 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675957', 'tblTempUsageDetail_20' ) end [2025-03-14 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675957', 'tblTempVendorCDR_20' ) start [2025-03-14 03:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675957', 'tblTempVendorCDR_20' ) end [2025-03-14 03:03:18] Production.INFO: ProcessCDR(1,14675957,1,1,2) [2025-03-14 03:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675957', 'tblTempUsageDetail_20' ) start [2025-03-14 03:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675957', 'tblTempUsageDetail_20' ) end [2025-03-14 03:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 03:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 03:03:21] Production.INFO: ==26279== Releasing lock... [2025-03-14 03:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 03:03:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-14 03:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 00:04:06 [end_date_ymd] => 2025-03-14 03:04:06 [RateCDR] => 1 ) [2025-03-14 03:04: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-03-14 00:04:06' and `end` < '2025-03-14 03:04: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-03-14 03:04:18] Production.INFO: count ==374 [2025-03-14 03:04:18] Production.ERROR: pbx CDR StartTime 2025-03-14 00:04:06 - End Time 2025-03-14 03:04:06 [2025-03-14 03:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675962', 'tblTempUsageDetail_20' ) start [2025-03-14 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675962', 'tblTempUsageDetail_20' ) end [2025-03-14 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675962', 'tblTempVendorCDR_20' ) start [2025-03-14 03:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675962', 'tblTempVendorCDR_20' ) end [2025-03-14 03:04:18] Production.INFO: ProcessCDR(1,14675962,1,1,2) [2025-03-14 03:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675962', 'tblTempUsageDetail_20' ) start [2025-03-14 03:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675962', 'tblTempUsageDetail_20' ) end [2025-03-14 03:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 03:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 03:04:22] Production.INFO: ==26385== Releasing lock... [2025-03-14 03:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 03:04:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-14 03:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 00:05:05 [end_date_ymd] => 2025-03-14 03:05:05 [RateCDR] => 1 ) [2025-03-14 03:05: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-03-14 00:05:05' and `end` < '2025-03-14 03:05: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-03-14 03:05:17] Production.INFO: count ==370 [2025-03-14 03:05:17] Production.ERROR: pbx CDR StartTime 2025-03-14 00:05:05 - End Time 2025-03-14 03:05:05 [2025-03-14 03:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675967', 'tblTempUsageDetail_20' ) start [2025-03-14 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675967', 'tblTempUsageDetail_20' ) end [2025-03-14 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675967', 'tblTempVendorCDR_20' ) start [2025-03-14 03:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675967', 'tblTempVendorCDR_20' ) end [2025-03-14 03:05:17] Production.INFO: ProcessCDR(1,14675967,1,1,2) [2025-03-14 03:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675967', 'tblTempUsageDetail_20' ) start [2025-03-14 03:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675967', 'tblTempUsageDetail_20' ) end [2025-03-14 03:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 03:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 03:05:21] Production.INFO: ==26491== Releasing lock... [2025-03-14 03:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 03:05:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-14 03:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 00:06:06 [end_date_ymd] => 2025-03-14 03:06:06 [RateCDR] => 1 ) [2025-03-14 03:06: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-03-14 00:06:06' and `end` < '2025-03-14 03:06: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-03-14 03:06:18] Production.INFO: count ==374 [2025-03-14 03:06:18] Production.ERROR: pbx CDR StartTime 2025-03-14 00:06:06 - End Time 2025-03-14 03:06:06 [2025-03-14 03:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675972', 'tblTempUsageDetail_20' ) start [2025-03-14 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675972', 'tblTempUsageDetail_20' ) end [2025-03-14 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675972', 'tblTempVendorCDR_20' ) start [2025-03-14 03:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675972', 'tblTempVendorCDR_20' ) end [2025-03-14 03:06:18] Production.INFO: ProcessCDR(1,14675972,1,1,2) [2025-03-14 03:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675972,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675972,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675972', 'tblTempUsageDetail_20' ) start [2025-03-14 03:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675972', 'tblTempUsageDetail_20' ) end [2025-03-14 03:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 03:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 03:06:22] Production.INFO: ==26673== Releasing lock... [2025-03-14 03:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 03:06:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-14 03:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 00:07:05 [end_date_ymd] => 2025-03-14 03:07:05 [RateCDR] => 1 ) [2025-03-14 03:07: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-03-14 00:07:05' and `end` < '2025-03-14 03:07: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-03-14 03:07:17] Production.INFO: count ==373 [2025-03-14 03:07:17] Production.ERROR: pbx CDR StartTime 2025-03-14 00:07:05 - End Time 2025-03-14 03:07:05 [2025-03-14 03:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675977', 'tblTempUsageDetail_20' ) start [2025-03-14 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675977', 'tblTempUsageDetail_20' ) end [2025-03-14 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675977', 'tblTempVendorCDR_20' ) start [2025-03-14 03:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675977', 'tblTempVendorCDR_20' ) end [2025-03-14 03:07:17] Production.INFO: ProcessCDR(1,14675977,1,1,2) [2025-03-14 03:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:07:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675977,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:07:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675977,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675977', 'tblTempUsageDetail_20' ) start [2025-03-14 03:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675977', 'tblTempUsageDetail_20' ) end [2025-03-14 03:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 03:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 03:07:21] Production.INFO: ==26772== Releasing lock... [2025-03-14 03:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 03:07:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-14 03:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 00:08:06 [end_date_ymd] => 2025-03-14 03:08:06 [RateCDR] => 1 ) [2025-03-14 03:08: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-03-14 00:08:06' and `end` < '2025-03-14 03:08: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-03-14 03:08:18] Production.INFO: count ==374 [2025-03-14 03:08:18] Production.ERROR: pbx CDR StartTime 2025-03-14 00:08:06 - End Time 2025-03-14 03:08:06 [2025-03-14 03:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675982', 'tblTempUsageDetail_20' ) start [2025-03-14 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675982', 'tblTempUsageDetail_20' ) end [2025-03-14 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675982', 'tblTempVendorCDR_20' ) start [2025-03-14 03:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675982', 'tblTempVendorCDR_20' ) end [2025-03-14 03:08:18] Production.INFO: ProcessCDR(1,14675982,1,1,2) [2025-03-14 03:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675982,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675982,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675982', 'tblTempUsageDetail_20' ) start [2025-03-14 03:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675982', 'tblTempUsageDetail_20' ) end [2025-03-14 03:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 03:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 03:08:22] Production.INFO: ==26879== Releasing lock... [2025-03-14 03:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 03:08:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-14 03:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 00:09:05 [end_date_ymd] => 2025-03-14 03:09:05 [RateCDR] => 1 ) [2025-03-14 03:09: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-03-14 00:09:05' and `end` < '2025-03-14 03:09: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-03-14 03:09:17] Production.INFO: count ==377 [2025-03-14 03:09:17] Production.ERROR: pbx CDR StartTime 2025-03-14 00:09:05 - End Time 2025-03-14 03:09:05 [2025-03-14 03:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675987', 'tblTempUsageDetail_20' ) start [2025-03-14 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675987', 'tblTempUsageDetail_20' ) end [2025-03-14 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675987', 'tblTempVendorCDR_20' ) start [2025-03-14 03:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675987', 'tblTempVendorCDR_20' ) end [2025-03-14 03:09:17] Production.INFO: ProcessCDR(1,14675987,1,1,2) [2025-03-14 03:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675987', 'tblTempUsageDetail_20' ) start [2025-03-14 03:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675987', 'tblTempUsageDetail_20' ) end [2025-03-14 03:09:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 03:09:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 03:09:20] Production.INFO: ==27059== Releasing lock... [2025-03-14 03:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 03:09:20] Production.INFO: 31 MB #Memory Used# [2025-03-14 03:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 00:10:06 [end_date_ymd] => 2025-03-14 03:10:06 [RateCDR] => 1 ) [2025-03-14 03:10: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-03-14 00:10:06' and `end` < '2025-03-14 03:10: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-03-14 03:10:18] Production.INFO: count ==375 [2025-03-14 03:10:18] Production.ERROR: pbx CDR StartTime 2025-03-14 00:10:06 - End Time 2025-03-14 03:10:06 [2025-03-14 03:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675992', 'tblTempUsageDetail_20' ) start [2025-03-14 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675992', 'tblTempUsageDetail_20' ) end [2025-03-14 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675992', 'tblTempVendorCDR_20' ) start [2025-03-14 03:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675992', 'tblTempVendorCDR_20' ) end [2025-03-14 03:10:18] Production.INFO: ProcessCDR(1,14675992,1,1,2) [2025-03-14 03:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675992', 'tblTempUsageDetail_20' ) start [2025-03-14 03:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675992', 'tblTempUsageDetail_20' ) end [2025-03-14 03:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 03:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 03:10:22] Production.INFO: ==27170== Releasing lock... [2025-03-14 03:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 03:10:22] Production.INFO: 31 MB #Memory Used# [2025-03-14 03:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 00:11:05 [end_date_ymd] => 2025-03-14 03:11:05 [RateCDR] => 1 ) [2025-03-14 03:11: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-03-14 00:11:05' and `end` < '2025-03-14 03:11: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-03-14 03:11:17] Production.INFO: count ==358 [2025-03-14 03:11:17] Production.ERROR: pbx CDR StartTime 2025-03-14 00:11:05 - End Time 2025-03-14 03:11:05 [2025-03-14 03:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675998', 'tblTempUsageDetail_20' ) start [2025-03-14 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14675998', 'tblTempUsageDetail_20' ) end [2025-03-14 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675998', 'tblTempVendorCDR_20' ) start [2025-03-14 03:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14675998', 'tblTempVendorCDR_20' ) end [2025-03-14 03:11:17] Production.INFO: ProcessCDR(1,14675998,1,1,2) [2025-03-14 03:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14675998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14675998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14675998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14675998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675998', 'tblTempUsageDetail_20' ) start [2025-03-14 03:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14675998', 'tblTempUsageDetail_20' ) end [2025-03-14 03:11:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 03:11:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 03:11:20] Production.INFO: ==27277== Releasing lock... [2025-03-14 03:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 03:11:20] Production.INFO: 30.75 MB #Memory Used# [2025-03-14 03:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 00:12:05 [end_date_ymd] => 2025-03-14 03:12:05 [RateCDR] => 1 ) [2025-03-14 03:12: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-03-14 00:12:05' and `end` < '2025-03-14 03:12: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-03-14 03:12:17] Production.INFO: count ==355 [2025-03-14 03:12:17] Production.ERROR: pbx CDR StartTime 2025-03-14 00:12:05 - End Time 2025-03-14 03:12:05 [2025-03-14 03:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676003', 'tblTempUsageDetail_20' ) start [2025-03-14 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676003', 'tblTempUsageDetail_20' ) end [2025-03-14 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676003', 'tblTempVendorCDR_20' ) start [2025-03-14 03:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676003', 'tblTempVendorCDR_20' ) end [2025-03-14 03:12:17] Production.INFO: ProcessCDR(1,14676003,1,1,2) [2025-03-14 03:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:12:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:12:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676003', 'tblTempUsageDetail_20' ) start [2025-03-14 03:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676003', 'tblTempUsageDetail_20' ) end [2025-03-14 03:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 03:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 03:12:21] Production.INFO: ==27419== Releasing lock... [2025-03-14 03:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 03:12:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-14 03:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 00:13:05 [end_date_ymd] => 2025-03-14 03:13:05 [RateCDR] => 1 ) [2025-03-14 03:13: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-03-14 00:13:05' and `end` < '2025-03-14 03:13: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-03-14 03:13:17] Production.INFO: count ==349 [2025-03-14 03:13:17] Production.ERROR: pbx CDR StartTime 2025-03-14 00:13:05 - End Time 2025-03-14 03:13:05 [2025-03-14 03:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676008', 'tblTempUsageDetail_20' ) start [2025-03-14 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676008', 'tblTempUsageDetail_20' ) end [2025-03-14 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676008', 'tblTempVendorCDR_20' ) start [2025-03-14 03:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676008', 'tblTempVendorCDR_20' ) end [2025-03-14 03:13:17] Production.INFO: ProcessCDR(1,14676008,1,1,2) [2025-03-14 03:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676008', 'tblTempUsageDetail_20' ) start [2025-03-14 03:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676008', 'tblTempUsageDetail_20' ) end [2025-03-14 03:13:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 03:13:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 03:13:20] Production.INFO: ==27573== Releasing lock... [2025-03-14 03:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 03:13:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-14 03:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 00:14:05 [end_date_ymd] => 2025-03-14 03:14:05 [RateCDR] => 1 ) [2025-03-14 03:14: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-03-14 00:14:05' and `end` < '2025-03-14 03:14: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-03-14 03:14:17] Production.INFO: count ==343 [2025-03-14 03:14:17] Production.ERROR: pbx CDR StartTime 2025-03-14 00:14:05 - End Time 2025-03-14 03:14:05 [2025-03-14 03:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676013', 'tblTempUsageDetail_20' ) start [2025-03-14 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676013', 'tblTempUsageDetail_20' ) end [2025-03-14 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676013', 'tblTempVendorCDR_20' ) start [2025-03-14 03:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676013', 'tblTempVendorCDR_20' ) end [2025-03-14 03:14:17] Production.INFO: ProcessCDR(1,14676013,1,1,2) [2025-03-14 03:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676013', 'tblTempUsageDetail_20' ) start [2025-03-14 03:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676013', 'tblTempUsageDetail_20' ) end [2025-03-14 03:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 03:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 03:14:21] Production.INFO: ==27652== Releasing lock... [2025-03-14 03:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 03:14:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-14 03:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 00:15:05 [end_date_ymd] => 2025-03-14 03:15:05 [RateCDR] => 1 ) [2025-03-14 03:15: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-03-14 00:15:05' and `end` < '2025-03-14 03:15: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-03-14 03:15:17] Production.INFO: count ==343 [2025-03-14 03:15:17] Production.ERROR: pbx CDR StartTime 2025-03-14 00:15:05 - End Time 2025-03-14 03:15:05 [2025-03-14 03:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676018', 'tblTempUsageDetail_20' ) start [2025-03-14 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676018', 'tblTempUsageDetail_20' ) end [2025-03-14 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676018', 'tblTempVendorCDR_20' ) start [2025-03-14 03:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676018', 'tblTempVendorCDR_20' ) end [2025-03-14 03:15:17] Production.INFO: ProcessCDR(1,14676018,1,1,2) [2025-03-14 03:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676018', 'tblTempUsageDetail_20' ) start [2025-03-14 03:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676018', 'tblTempUsageDetail_20' ) end [2025-03-14 03:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 03:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 03:15:21] Production.INFO: ==27731== Releasing lock... [2025-03-14 03:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 03:15:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-14 03:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 00:16:05 [end_date_ymd] => 2025-03-14 03:16:05 [RateCDR] => 1 ) [2025-03-14 03:16: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-03-14 00:16:05' and `end` < '2025-03-14 03:16: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-03-14 03:16:17] Production.INFO: count ==343 [2025-03-14 03:16:17] Production.ERROR: pbx CDR StartTime 2025-03-14 00:16:05 - End Time 2025-03-14 03:16:05 [2025-03-14 03:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676023', 'tblTempUsageDetail_20' ) start [2025-03-14 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676023', 'tblTempUsageDetail_20' ) end [2025-03-14 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676023', 'tblTempVendorCDR_20' ) start [2025-03-14 03:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676023', 'tblTempVendorCDR_20' ) end [2025-03-14 03:16:17] Production.INFO: ProcessCDR(1,14676023,1,1,2) [2025-03-14 03:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676023,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676023,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676023', 'tblTempUsageDetail_20' ) start [2025-03-14 03:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676023', 'tblTempUsageDetail_20' ) end [2025-03-14 03:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 03:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 03:16:21] Production.INFO: ==27812== Releasing lock... [2025-03-14 03:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 03:16:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-14 03:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 00:17:05 [end_date_ymd] => 2025-03-14 03:17:05 [RateCDR] => 1 ) [2025-03-14 03:17: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-03-14 00:17:05' and `end` < '2025-03-14 03:17: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-03-14 03:17:17] Production.INFO: count ==346 [2025-03-14 03:17:17] Production.ERROR: pbx CDR StartTime 2025-03-14 00:17:05 - End Time 2025-03-14 03:17:05 [2025-03-14 03:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676028', 'tblTempUsageDetail_20' ) start [2025-03-14 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676028', 'tblTempUsageDetail_20' ) end [2025-03-14 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676028', 'tblTempVendorCDR_20' ) start [2025-03-14 03:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676028', 'tblTempVendorCDR_20' ) end [2025-03-14 03:17:17] Production.INFO: ProcessCDR(1,14676028,1,1,2) [2025-03-14 03:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676028,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676028,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676028', 'tblTempUsageDetail_20' ) start [2025-03-14 03:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676028', 'tblTempUsageDetail_20' ) end [2025-03-14 03:17:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 03:17:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 03:17:20] Production.INFO: ==27969== Releasing lock... [2025-03-14 03:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 03:17:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-14 03:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 00:18:05 [end_date_ymd] => 2025-03-14 03:18:05 [RateCDR] => 1 ) [2025-03-14 03:18: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-03-14 00:18:05' and `end` < '2025-03-14 03:18: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-03-14 03:18:17] Production.INFO: count ==346 [2025-03-14 03:18:17] Production.ERROR: pbx CDR StartTime 2025-03-14 00:18:05 - End Time 2025-03-14 03:18:05 [2025-03-14 03:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676033', 'tblTempUsageDetail_20' ) start [2025-03-14 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676033', 'tblTempUsageDetail_20' ) end [2025-03-14 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676033', 'tblTempVendorCDR_20' ) start [2025-03-14 03:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676033', 'tblTempVendorCDR_20' ) end [2025-03-14 03:18:17] Production.INFO: ProcessCDR(1,14676033,1,1,2) [2025-03-14 03:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676033,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676033,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676033', 'tblTempUsageDetail_20' ) start [2025-03-14 03:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676033', 'tblTempUsageDetail_20' ) end [2025-03-14 03:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 03:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 03:18:21] Production.INFO: ==28047== Releasing lock... [2025-03-14 03:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 03:18:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-14 03:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 00:19:06 [end_date_ymd] => 2025-03-14 03:19:06 [RateCDR] => 1 ) [2025-03-14 03:19: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-03-14 00:19:06' and `end` < '2025-03-14 03:19: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-03-14 03:19:18] Production.INFO: count ==336 [2025-03-14 03:19:18] Production.ERROR: pbx CDR StartTime 2025-03-14 00:19:06 - End Time 2025-03-14 03:19:06 [2025-03-14 03:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676038', 'tblTempUsageDetail_20' ) start [2025-03-14 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676038', 'tblTempUsageDetail_20' ) end [2025-03-14 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676038', 'tblTempVendorCDR_20' ) start [2025-03-14 03:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676038', 'tblTempVendorCDR_20' ) end [2025-03-14 03:19:18] Production.INFO: ProcessCDR(1,14676038,1,1,2) [2025-03-14 03:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676038', 'tblTempUsageDetail_20' ) start [2025-03-14 03:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676038', 'tblTempUsageDetail_20' ) end [2025-03-14 03:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 03:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 03:19:21] Production.INFO: ==28128== Releasing lock... [2025-03-14 03:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 03:19:21] Production.INFO: 30 MB #Memory Used# [2025-03-14 03:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 00:20:06 [end_date_ymd] => 2025-03-14 03:20:06 [RateCDR] => 1 ) [2025-03-14 03:20: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-03-14 00:20:06' and `end` < '2025-03-14 03:20: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-03-14 03:20:18] Production.INFO: count ==328 [2025-03-14 03:20:18] Production.ERROR: pbx CDR StartTime 2025-03-14 00:20:06 - End Time 2025-03-14 03:20:06 [2025-03-14 03:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676043', 'tblTempUsageDetail_20' ) start [2025-03-14 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676043', 'tblTempUsageDetail_20' ) end [2025-03-14 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676043', 'tblTempVendorCDR_20' ) start [2025-03-14 03:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676043', 'tblTempVendorCDR_20' ) end [2025-03-14 03:20:18] Production.INFO: ProcessCDR(1,14676043,1,1,2) [2025-03-14 03:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676043', 'tblTempUsageDetail_20' ) start [2025-03-14 03:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676043', 'tblTempUsageDetail_20' ) end [2025-03-14 03:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 03:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 03:20:21] Production.INFO: ==28211== Releasing lock... [2025-03-14 03:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 03:20:21] Production.INFO: 30 MB #Memory Used# [2025-03-14 03:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 00:21:05 [end_date_ymd] => 2025-03-14 03:21:05 [RateCDR] => 1 ) [2025-03-14 03:21: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-03-14 00:21:05' and `end` < '2025-03-14 03:21: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-03-14 03:21:18] Production.INFO: count ==328 [2025-03-14 03:21:18] Production.ERROR: pbx CDR StartTime 2025-03-14 00:21:05 - End Time 2025-03-14 03:21:05 [2025-03-14 03:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676049', 'tblTempUsageDetail_20' ) start [2025-03-14 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676049', 'tblTempUsageDetail_20' ) end [2025-03-14 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676049', 'tblTempVendorCDR_20' ) start [2025-03-14 03:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676049', 'tblTempVendorCDR_20' ) end [2025-03-14 03:21:18] Production.INFO: ProcessCDR(1,14676049,1,1,2) [2025-03-14 03:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676049', 'tblTempUsageDetail_20' ) start [2025-03-14 03:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676049', 'tblTempUsageDetail_20' ) end [2025-03-14 03:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 03:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 03:21:21] Production.INFO: ==28292== Releasing lock... [2025-03-14 03:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 03:21:21] Production.INFO: 30 MB #Memory Used# [2025-03-14 03:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 00:22:05 [end_date_ymd] => 2025-03-14 03:22:05 [RateCDR] => 1 ) [2025-03-14 03:22: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-03-14 00:22:05' and `end` < '2025-03-14 03:22: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-03-14 03:22:17] Production.INFO: count ==328 [2025-03-14 03:22:17] Production.ERROR: pbx CDR StartTime 2025-03-14 00:22:05 - End Time 2025-03-14 03:22:05 [2025-03-14 03:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676054', 'tblTempUsageDetail_20' ) start [2025-03-14 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676054', 'tblTempUsageDetail_20' ) end [2025-03-14 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676054', 'tblTempVendorCDR_20' ) start [2025-03-14 03:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676054', 'tblTempVendorCDR_20' ) end [2025-03-14 03:22:17] Production.INFO: ProcessCDR(1,14676054,1,1,2) [2025-03-14 03:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:22:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:22:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676054', 'tblTempUsageDetail_20' ) start [2025-03-14 03:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676054', 'tblTempUsageDetail_20' ) end [2025-03-14 03:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 03:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 03:22:21] Production.INFO: ==28371== Releasing lock... [2025-03-14 03:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 03:22:21] Production.INFO: 30 MB #Memory Used# [2025-03-14 03:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 00:23:05 [end_date_ymd] => 2025-03-14 03:23:05 [RateCDR] => 1 ) [2025-03-14 03:23: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-03-14 00:23:05' and `end` < '2025-03-14 03:23: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-03-14 03:23:17] Production.INFO: count ==326 [2025-03-14 03:23:17] Production.ERROR: pbx CDR StartTime 2025-03-14 00:23:05 - End Time 2025-03-14 03:23:05 [2025-03-14 03:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676059', 'tblTempUsageDetail_20' ) start [2025-03-14 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676059', 'tblTempUsageDetail_20' ) end [2025-03-14 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676059', 'tblTempVendorCDR_20' ) start [2025-03-14 03:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676059', 'tblTempVendorCDR_20' ) end [2025-03-14 03:23:17] Production.INFO: ProcessCDR(1,14676059,1,1,2) [2025-03-14 03:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676059', 'tblTempUsageDetail_20' ) start [2025-03-14 03:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676059', 'tblTempUsageDetail_20' ) end [2025-03-14 03:23:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 03:23:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 03:23:20] Production.INFO: ==28449== Releasing lock... [2025-03-14 03:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 03:23:20] Production.INFO: 30.25 MB #Memory Used# [2025-03-14 03:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 00:24:05 [end_date_ymd] => 2025-03-14 03:24:05 [RateCDR] => 1 ) [2025-03-14 03:24: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-03-14 00:24:05' and `end` < '2025-03-14 03:24: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-03-14 03:24:17] Production.INFO: count ==324 [2025-03-14 03:24:17] Production.ERROR: pbx CDR StartTime 2025-03-14 00:24:05 - End Time 2025-03-14 03:24:05 [2025-03-14 03:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676064', 'tblTempUsageDetail_20' ) start [2025-03-14 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676064', 'tblTempUsageDetail_20' ) end [2025-03-14 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676064', 'tblTempVendorCDR_20' ) start [2025-03-14 03:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676064', 'tblTempVendorCDR_20' ) end [2025-03-14 03:24:17] Production.INFO: ProcessCDR(1,14676064,1,1,2) [2025-03-14 03:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676064', 'tblTempUsageDetail_20' ) start [2025-03-14 03:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676064', 'tblTempUsageDetail_20' ) end [2025-03-14 03:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 03:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 03:24:21] Production.INFO: ==28526== Releasing lock... [2025-03-14 03:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 03:24:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-14 03:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 00:25:05 [end_date_ymd] => 2025-03-14 03:25:05 [RateCDR] => 1 ) [2025-03-14 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-03-14 00:25:05' and `end` < '2025-03-14 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-03-14 03:25:17] Production.INFO: count ==324 [2025-03-14 03:25:17] Production.ERROR: pbx CDR StartTime 2025-03-14 00:25:05 - End Time 2025-03-14 03:25:05 [2025-03-14 03:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676069', 'tblTempUsageDetail_20' ) start [2025-03-14 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676069', 'tblTempUsageDetail_20' ) end [2025-03-14 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676069', 'tblTempVendorCDR_20' ) start [2025-03-14 03:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676069', 'tblTempVendorCDR_20' ) end [2025-03-14 03:25:17] Production.INFO: ProcessCDR(1,14676069,1,1,2) [2025-03-14 03:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676069', 'tblTempUsageDetail_20' ) start [2025-03-14 03:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676069', 'tblTempUsageDetail_20' ) end [2025-03-14 03:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 03:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 03:25:21] Production.INFO: ==28606== Releasing lock... [2025-03-14 03:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 03:25:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-14 03:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 00:26:05 [end_date_ymd] => 2025-03-14 03:26:05 [RateCDR] => 1 ) [2025-03-14 03:26: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-03-14 00:26:05' and `end` < '2025-03-14 03:26: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-03-14 03:26:17] Production.INFO: count ==324 [2025-03-14 03:26:17] Production.ERROR: pbx CDR StartTime 2025-03-14 00:26:05 - End Time 2025-03-14 03:26:05 [2025-03-14 03:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676074', 'tblTempUsageDetail_20' ) start [2025-03-14 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676074', 'tblTempUsageDetail_20' ) end [2025-03-14 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676074', 'tblTempVendorCDR_20' ) start [2025-03-14 03:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676074', 'tblTempVendorCDR_20' ) end [2025-03-14 03:26:17] Production.INFO: ProcessCDR(1,14676074,1,1,2) [2025-03-14 03:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676074,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676074,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676074', 'tblTempUsageDetail_20' ) start [2025-03-14 03:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676074', 'tblTempUsageDetail_20' ) end [2025-03-14 03:26:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 03:26:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 03:26:20] Production.INFO: ==28681== Releasing lock... [2025-03-14 03:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 03:26:20] Production.INFO: 30.5 MB #Memory Used# [2025-03-14 03:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 00:27:05 [end_date_ymd] => 2025-03-14 03:27:05 [RateCDR] => 1 ) [2025-03-14 03:27: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-03-14 00:27:05' and `end` < '2025-03-14 03:27: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-03-14 03:27:17] Production.INFO: count ==328 [2025-03-14 03:27:17] Production.ERROR: pbx CDR StartTime 2025-03-14 00:27:05 - End Time 2025-03-14 03:27:05 [2025-03-14 03:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676079', 'tblTempUsageDetail_20' ) start [2025-03-14 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676079', 'tblTempUsageDetail_20' ) end [2025-03-14 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676079', 'tblTempVendorCDR_20' ) start [2025-03-14 03:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676079', 'tblTempVendorCDR_20' ) end [2025-03-14 03:27:17] Production.INFO: ProcessCDR(1,14676079,1,1,2) [2025-03-14 03:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676079,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676079,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676079', 'tblTempUsageDetail_20' ) start [2025-03-14 03:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676079', 'tblTempUsageDetail_20' ) end [2025-03-14 03:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 03:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 03:27:21] Production.INFO: ==28757== Releasing lock... [2025-03-14 03:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 03:27:21] Production.INFO: 30 MB #Memory Used# [2025-03-14 03:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 00:28:05 [end_date_ymd] => 2025-03-14 03:28:05 [RateCDR] => 1 ) [2025-03-14 03:28: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-03-14 00:28:05' and `end` < '2025-03-14 03:28: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-03-14 03:28:17] Production.INFO: count ==332 [2025-03-14 03:28:17] Production.ERROR: pbx CDR StartTime 2025-03-14 00:28:05 - End Time 2025-03-14 03:28:05 [2025-03-14 03:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 03:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676084', 'tblTempUsageDetail_20' ) start [2025-03-14 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676084', 'tblTempUsageDetail_20' ) end [2025-03-14 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676084', 'tblTempVendorCDR_20' ) start [2025-03-14 03:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676084', 'tblTempVendorCDR_20' ) end [2025-03-14 03:28:18] Production.INFO: ProcessCDR(1,14676084,1,1,2) [2025-03-14 03:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676084,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676084,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676084', 'tblTempUsageDetail_20' ) start [2025-03-14 03:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676084', 'tblTempUsageDetail_20' ) end [2025-03-14 03:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 03:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 03:28:21] Production.INFO: ==28832== Releasing lock... [2025-03-14 03:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 03:28:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-14 03:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 00:29:05 [end_date_ymd] => 2025-03-14 03:29:05 [RateCDR] => 1 ) [2025-03-14 03:29: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-03-14 00:29:05' and `end` < '2025-03-14 03:29: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-03-14 03:29:17] Production.INFO: count ==332 [2025-03-14 03:29:17] Production.ERROR: pbx CDR StartTime 2025-03-14 00:29:05 - End Time 2025-03-14 03:29:05 [2025-03-14 03:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676089', 'tblTempUsageDetail_20' ) start [2025-03-14 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676089', 'tblTempUsageDetail_20' ) end [2025-03-14 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676089', 'tblTempVendorCDR_20' ) start [2025-03-14 03:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676089', 'tblTempVendorCDR_20' ) end [2025-03-14 03:29:17] Production.INFO: ProcessCDR(1,14676089,1,1,2) [2025-03-14 03:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676089', 'tblTempUsageDetail_20' ) start [2025-03-14 03:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676089', 'tblTempUsageDetail_20' ) end [2025-03-14 03:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 03:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 03:29:21] Production.INFO: ==28968== Releasing lock... [2025-03-14 03:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 03:29:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-14 03:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 00:30:06 [end_date_ymd] => 2025-03-14 03:30:06 [RateCDR] => 1 ) [2025-03-14 03:30: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-03-14 00:30:06' and `end` < '2025-03-14 03:30: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-03-14 03:30:18] Production.INFO: count ==332 [2025-03-14 03:30:18] Production.ERROR: pbx CDR StartTime 2025-03-14 00:30:06 - End Time 2025-03-14 03:30:06 [2025-03-14 03:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676095', 'tblTempUsageDetail_20' ) start [2025-03-14 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676095', 'tblTempUsageDetail_20' ) end [2025-03-14 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676095', 'tblTempVendorCDR_20' ) start [2025-03-14 03:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676095', 'tblTempVendorCDR_20' ) end [2025-03-14 03:30:18] Production.INFO: ProcessCDR(1,14676095,1,1,2) [2025-03-14 03:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676095', 'tblTempUsageDetail_20' ) start [2025-03-14 03:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676095', 'tblTempUsageDetail_20' ) end [2025-03-14 03:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 03:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 03:30:22] Production.INFO: ==29069== Releasing lock... [2025-03-14 03:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 03:30:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-14 03:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 00:31:05 [end_date_ymd] => 2025-03-14 03:31:05 [RateCDR] => 1 ) [2025-03-14 03:31: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-03-14 00:31:05' and `end` < '2025-03-14 03:31: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-03-14 03:31:17] Production.INFO: count ==334 [2025-03-14 03:31:17] Production.ERROR: pbx CDR StartTime 2025-03-14 00:31:05 - End Time 2025-03-14 03:31:05 [2025-03-14 03:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676100', 'tblTempUsageDetail_20' ) start [2025-03-14 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676100', 'tblTempUsageDetail_20' ) end [2025-03-14 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676100', 'tblTempVendorCDR_20' ) start [2025-03-14 03:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676100', 'tblTempVendorCDR_20' ) end [2025-03-14 03:31:17] Production.INFO: ProcessCDR(1,14676100,1,1,2) [2025-03-14 03:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676100', 'tblTempUsageDetail_20' ) start [2025-03-14 03:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676100', 'tblTempUsageDetail_20' ) end [2025-03-14 03:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 03:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 03:31:21] Production.INFO: ==29146== Releasing lock... [2025-03-14 03:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 03:31:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-14 03:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 00:32:06 [end_date_ymd] => 2025-03-14 03:32:06 [RateCDR] => 1 ) [2025-03-14 03:32: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-03-14 00:32:06' and `end` < '2025-03-14 03:32: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-03-14 03:32:18] Production.INFO: count ==334 [2025-03-14 03:32:18] Production.ERROR: pbx CDR StartTime 2025-03-14 00:32:06 - End Time 2025-03-14 03:32:06 [2025-03-14 03:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676105', 'tblTempUsageDetail_20' ) start [2025-03-14 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676105', 'tblTempUsageDetail_20' ) end [2025-03-14 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676105', 'tblTempVendorCDR_20' ) start [2025-03-14 03:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676105', 'tblTempVendorCDR_20' ) end [2025-03-14 03:32:18] Production.INFO: ProcessCDR(1,14676105,1,1,2) [2025-03-14 03:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676105', 'tblTempUsageDetail_20' ) start [2025-03-14 03:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676105', 'tblTempUsageDetail_20' ) end [2025-03-14 03:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 03:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 03:32:22] Production.INFO: ==29221== Releasing lock... [2025-03-14 03:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 03:32:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-14 03:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 00:33:05 [end_date_ymd] => 2025-03-14 03:33:05 [RateCDR] => 1 ) [2025-03-14 03:33: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-03-14 00:33:05' and `end` < '2025-03-14 03:33: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-03-14 03:33:17] Production.INFO: count ==334 [2025-03-14 03:33:17] Production.ERROR: pbx CDR StartTime 2025-03-14 00:33:05 - End Time 2025-03-14 03:33:05 [2025-03-14 03:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 03:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676110', 'tblTempUsageDetail_20' ) start [2025-03-14 03:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676110', 'tblTempUsageDetail_20' ) end [2025-03-14 03:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676110', 'tblTempVendorCDR_20' ) start [2025-03-14 03:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676110', 'tblTempVendorCDR_20' ) end [2025-03-14 03:33:17] Production.INFO: ProcessCDR(1,14676110,1,1,2) [2025-03-14 03:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676110', 'tblTempUsageDetail_20' ) start [2025-03-14 03:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676110', 'tblTempUsageDetail_20' ) end [2025-03-14 03:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 03:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 03:33:21] Production.INFO: ==29301== Releasing lock... [2025-03-14 03:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 03:33:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-14 03:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 00:34:06 [end_date_ymd] => 2025-03-14 03:34:06 [RateCDR] => 1 ) [2025-03-14 03:34: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-03-14 00:34:06' and `end` < '2025-03-14 03:34: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-03-14 03:34:18] Production.INFO: count ==337 [2025-03-14 03:34:18] Production.ERROR: pbx CDR StartTime 2025-03-14 00:34:06 - End Time 2025-03-14 03:34:06 [2025-03-14 03:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676115', 'tblTempUsageDetail_20' ) start [2025-03-14 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676115', 'tblTempUsageDetail_20' ) end [2025-03-14 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676115', 'tblTempVendorCDR_20' ) start [2025-03-14 03:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676115', 'tblTempVendorCDR_20' ) end [2025-03-14 03:34:18] Production.INFO: ProcessCDR(1,14676115,1,1,2) [2025-03-14 03:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676115', 'tblTempUsageDetail_20' ) start [2025-03-14 03:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676115', 'tblTempUsageDetail_20' ) end [2025-03-14 03:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 03:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 03:34:22] Production.INFO: ==29380== Releasing lock... [2025-03-14 03:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 03:34:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-14 03:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 00:35:05 [end_date_ymd] => 2025-03-14 03:35:05 [RateCDR] => 1 ) [2025-03-14 03:35: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-03-14 00:35:05' and `end` < '2025-03-14 03:35: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-03-14 03:35:17] Production.INFO: count ==335 [2025-03-14 03:35:17] Production.ERROR: pbx CDR StartTime 2025-03-14 00:35:05 - End Time 2025-03-14 03:35:05 [2025-03-14 03:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676120', 'tblTempUsageDetail_20' ) start [2025-03-14 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676120', 'tblTempUsageDetail_20' ) end [2025-03-14 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676120', 'tblTempVendorCDR_20' ) start [2025-03-14 03:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676120', 'tblTempVendorCDR_20' ) end [2025-03-14 03:35:17] Production.INFO: ProcessCDR(1,14676120,1,1,2) [2025-03-14 03:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676120', 'tblTempUsageDetail_20' ) start [2025-03-14 03:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676120', 'tblTempUsageDetail_20' ) end [2025-03-14 03:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 03:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 03:35:21] Production.INFO: ==29462== Releasing lock... [2025-03-14 03:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 03:35:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-14 03:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 00:36:06 [end_date_ymd] => 2025-03-14 03:36:06 [RateCDR] => 1 ) [2025-03-14 03:36: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-03-14 00:36:06' and `end` < '2025-03-14 03:36: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-03-14 03:36:18] Production.INFO: count ==335 [2025-03-14 03:36:18] Production.ERROR: pbx CDR StartTime 2025-03-14 00:36:06 - End Time 2025-03-14 03:36:06 [2025-03-14 03:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676125', 'tblTempUsageDetail_20' ) start [2025-03-14 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676125', 'tblTempUsageDetail_20' ) end [2025-03-14 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676125', 'tblTempVendorCDR_20' ) start [2025-03-14 03:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676125', 'tblTempVendorCDR_20' ) end [2025-03-14 03:36:18] Production.INFO: ProcessCDR(1,14676125,1,1,2) [2025-03-14 03:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676125,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676125,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676125', 'tblTempUsageDetail_20' ) start [2025-03-14 03:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676125', 'tblTempUsageDetail_20' ) end [2025-03-14 03:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 03:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 03:36:22] Production.INFO: ==29539== Releasing lock... [2025-03-14 03:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 03:36:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-14 03:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 00:37:05 [end_date_ymd] => 2025-03-14 03:37:05 [RateCDR] => 1 ) [2025-03-14 03:37: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-03-14 00:37:05' and `end` < '2025-03-14 03:37: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-03-14 03:37:17] Production.INFO: count ==335 [2025-03-14 03:37:18] Production.ERROR: pbx CDR StartTime 2025-03-14 00:37:05 - End Time 2025-03-14 03:37:05 [2025-03-14 03:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676130', 'tblTempUsageDetail_20' ) start [2025-03-14 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676130', 'tblTempUsageDetail_20' ) end [2025-03-14 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676130', 'tblTempVendorCDR_20' ) start [2025-03-14 03:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676130', 'tblTempVendorCDR_20' ) end [2025-03-14 03:37:18] Production.INFO: ProcessCDR(1,14676130,1,1,2) [2025-03-14 03:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676130,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676130,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676130', 'tblTempUsageDetail_20' ) start [2025-03-14 03:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676130', 'tblTempUsageDetail_20' ) end [2025-03-14 03:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 03:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 03:37:21] Production.INFO: ==29614== Releasing lock... [2025-03-14 03:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 03:37:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-14 03:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 00:38:05 [end_date_ymd] => 2025-03-14 03:38:05 [RateCDR] => 1 ) [2025-03-14 03:38: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-03-14 00:38:05' and `end` < '2025-03-14 03:38: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-03-14 03:38:17] Production.INFO: count ==333 [2025-03-14 03:38:17] Production.ERROR: pbx CDR StartTime 2025-03-14 00:38:05 - End Time 2025-03-14 03:38:05 [2025-03-14 03:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676135', 'tblTempUsageDetail_20' ) start [2025-03-14 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676135', 'tblTempUsageDetail_20' ) end [2025-03-14 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676135', 'tblTempVendorCDR_20' ) start [2025-03-14 03:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676135', 'tblTempVendorCDR_20' ) end [2025-03-14 03:38:17] Production.INFO: ProcessCDR(1,14676135,1,1,2) [2025-03-14 03:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676135,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676135,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676135', 'tblTempUsageDetail_20' ) start [2025-03-14 03:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676135', 'tblTempUsageDetail_20' ) end [2025-03-14 03:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 03:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 03:38:21] Production.INFO: ==29693== Releasing lock... [2025-03-14 03:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 03:38:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-14 03:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 00:39:05 [end_date_ymd] => 2025-03-14 03:39:05 [RateCDR] => 1 ) [2025-03-14 03:39: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-03-14 00:39:05' and `end` < '2025-03-14 03:39: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-03-14 03:39:17] Production.INFO: count ==334 [2025-03-14 03:39:18] Production.ERROR: pbx CDR StartTime 2025-03-14 00:39:05 - End Time 2025-03-14 03:39:05 [2025-03-14 03:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676140', 'tblTempUsageDetail_20' ) start [2025-03-14 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676140', 'tblTempUsageDetail_20' ) end [2025-03-14 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676140', 'tblTempVendorCDR_20' ) start [2025-03-14 03:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676140', 'tblTempVendorCDR_20' ) end [2025-03-14 03:39:18] Production.INFO: ProcessCDR(1,14676140,1,1,2) [2025-03-14 03:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676140', 'tblTempUsageDetail_20' ) start [2025-03-14 03:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676140', 'tblTempUsageDetail_20' ) end [2025-03-14 03:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 03:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 03:39:21] Production.INFO: ==29770== Releasing lock... [2025-03-14 03:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 03:39:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-14 03:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 00:40:06 [end_date_ymd] => 2025-03-14 03:40:06 [RateCDR] => 1 ) [2025-03-14 03:40: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-03-14 00:40:06' and `end` < '2025-03-14 03:40: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-03-14 03:40:18] Production.INFO: count ==325 [2025-03-14 03:40:18] Production.ERROR: pbx CDR StartTime 2025-03-14 00:40:06 - End Time 2025-03-14 03:40:06 [2025-03-14 03:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676146', 'tblTempUsageDetail_20' ) start [2025-03-14 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676146', 'tblTempUsageDetail_20' ) end [2025-03-14 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676146', 'tblTempVendorCDR_20' ) start [2025-03-14 03:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676146', 'tblTempVendorCDR_20' ) end [2025-03-14 03:40:18] Production.INFO: ProcessCDR(1,14676146,1,1,2) [2025-03-14 03:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676146', 'tblTempUsageDetail_20' ) start [2025-03-14 03:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676146', 'tblTempUsageDetail_20' ) end [2025-03-14 03:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 03:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 03:40:22] Production.INFO: ==29846== Releasing lock... [2025-03-14 03:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 03:40:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-14 03:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 00:41:05 [end_date_ymd] => 2025-03-14 03:41:05 [RateCDR] => 1 ) [2025-03-14 03:41: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-03-14 00:41:05' and `end` < '2025-03-14 03:41: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-03-14 03:41:17] Production.INFO: count ==310 [2025-03-14 03:41:18] Production.ERROR: pbx CDR StartTime 2025-03-14 00:41:05 - End Time 2025-03-14 03:41:05 [2025-03-14 03:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676151', 'tblTempUsageDetail_20' ) start [2025-03-14 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676151', 'tblTempUsageDetail_20' ) end [2025-03-14 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676151', 'tblTempVendorCDR_20' ) start [2025-03-14 03:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676151', 'tblTempVendorCDR_20' ) end [2025-03-14 03:41:18] Production.INFO: ProcessCDR(1,14676151,1,1,2) [2025-03-14 03:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676151', 'tblTempUsageDetail_20' ) start [2025-03-14 03:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676151', 'tblTempUsageDetail_20' ) end [2025-03-14 03:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 03:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 03:41:21] Production.INFO: ==29937== Releasing lock... [2025-03-14 03:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 03:41:21] Production.INFO: 30 MB #Memory Used# [2025-03-14 03:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 00:42:06 [end_date_ymd] => 2025-03-14 03:42:06 [RateCDR] => 1 ) [2025-03-14 03:42: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-03-14 00:42:06' and `end` < '2025-03-14 03:42: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-03-14 03:42:18] Production.INFO: count ==310 [2025-03-14 03:42:18] Production.ERROR: pbx CDR StartTime 2025-03-14 00:42:06 - End Time 2025-03-14 03:42:06 [2025-03-14 03:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676156', 'tblTempUsageDetail_20' ) start [2025-03-14 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676156', 'tblTempUsageDetail_20' ) end [2025-03-14 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676156', 'tblTempVendorCDR_20' ) start [2025-03-14 03:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676156', 'tblTempVendorCDR_20' ) end [2025-03-14 03:42:18] Production.INFO: ProcessCDR(1,14676156,1,1,2) [2025-03-14 03:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676156', 'tblTempUsageDetail_20' ) start [2025-03-14 03:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676156', 'tblTempUsageDetail_20' ) end [2025-03-14 03:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 03:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 03:42:22] Production.INFO: ==30014== Releasing lock... [2025-03-14 03:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 03:42:22] Production.INFO: 30 MB #Memory Used# [2025-03-14 03:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 00:43:05 [end_date_ymd] => 2025-03-14 03:43:05 [RateCDR] => 1 ) [2025-03-14 03:43: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-03-14 00:43:05' and `end` < '2025-03-14 03:43: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-03-14 03:43:18] Production.INFO: count ==306 [2025-03-14 03:43:18] Production.ERROR: pbx CDR StartTime 2025-03-14 00:43:05 - End Time 2025-03-14 03:43:05 [2025-03-14 03:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676161', 'tblTempUsageDetail_20' ) start [2025-03-14 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676161', 'tblTempUsageDetail_20' ) end [2025-03-14 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676161', 'tblTempVendorCDR_20' ) start [2025-03-14 03:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676161', 'tblTempVendorCDR_20' ) end [2025-03-14 03:43:18] Production.INFO: ProcessCDR(1,14676161,1,1,2) [2025-03-14 03:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676161', 'tblTempUsageDetail_20' ) start [2025-03-14 03:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676161', 'tblTempUsageDetail_20' ) end [2025-03-14 03:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 03:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 03:43:22] Production.INFO: ==30092== Releasing lock... [2025-03-14 03:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 03:43:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-14 03:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 00:44:06 [end_date_ymd] => 2025-03-14 03:44:06 [RateCDR] => 1 ) [2025-03-14 03:44: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-03-14 00:44:06' and `end` < '2025-03-14 03:44: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-03-14 03:44:18] Production.INFO: count ==305 [2025-03-14 03:44:18] Production.ERROR: pbx CDR StartTime 2025-03-14 00:44:06 - End Time 2025-03-14 03:44:06 [2025-03-14 03:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676166', 'tblTempUsageDetail_20' ) start [2025-03-14 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676166', 'tblTempUsageDetail_20' ) end [2025-03-14 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676166', 'tblTempVendorCDR_20' ) start [2025-03-14 03:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676166', 'tblTempVendorCDR_20' ) end [2025-03-14 03:44:18] Production.INFO: ProcessCDR(1,14676166,1,1,2) [2025-03-14 03:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676166', 'tblTempUsageDetail_20' ) start [2025-03-14 03:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676166', 'tblTempUsageDetail_20' ) end [2025-03-14 03:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 03:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 03:44:22] Production.INFO: ==30211== Releasing lock... [2025-03-14 03:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 03:44:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-14 03:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 00:45:06 [end_date_ymd] => 2025-03-14 03:45:06 [RateCDR] => 1 ) [2025-03-14 03:45: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-03-14 00:45:06' and `end` < '2025-03-14 03:45: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-03-14 03:45:18] Production.INFO: count ==305 [2025-03-14 03:45:18] Production.ERROR: pbx CDR StartTime 2025-03-14 00:45:06 - End Time 2025-03-14 03:45:06 [2025-03-14 03:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676171', 'tblTempUsageDetail_20' ) start [2025-03-14 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676171', 'tblTempUsageDetail_20' ) end [2025-03-14 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676171', 'tblTempVendorCDR_20' ) start [2025-03-14 03:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676171', 'tblTempVendorCDR_20' ) end [2025-03-14 03:45:18] Production.INFO: ProcessCDR(1,14676171,1,1,2) [2025-03-14 03:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676171', 'tblTempUsageDetail_20' ) start [2025-03-14 03:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676171', 'tblTempUsageDetail_20' ) end [2025-03-14 03:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 03:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 03:45:21] Production.INFO: ==30291== Releasing lock... [2025-03-14 03:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 03:45:21] Production.INFO: 30.5 MB #Memory Used# [2025-03-14 03:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 00:46:06 [end_date_ymd] => 2025-03-14 03:46:06 [RateCDR] => 1 ) [2025-03-14 03:46: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-03-14 00:46:06' and `end` < '2025-03-14 03:46: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-03-14 03:46:18] Production.INFO: count ==301 [2025-03-14 03:46:18] Production.ERROR: pbx CDR StartTime 2025-03-14 00:46:06 - End Time 2025-03-14 03:46:06 [2025-03-14 03:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676176', 'tblTempUsageDetail_20' ) start [2025-03-14 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676176', 'tblTempUsageDetail_20' ) end [2025-03-14 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676176', 'tblTempVendorCDR_20' ) start [2025-03-14 03:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676176', 'tblTempVendorCDR_20' ) end [2025-03-14 03:46:18] Production.INFO: ProcessCDR(1,14676176,1,1,2) [2025-03-14 03:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676176', 'tblTempUsageDetail_20' ) start [2025-03-14 03:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676176', 'tblTempUsageDetail_20' ) end [2025-03-14 03:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 03:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 03:46:22] Production.INFO: ==30369== Releasing lock... [2025-03-14 03:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 03:46:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-14 03:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 00:47:06 [end_date_ymd] => 2025-03-14 03:47:06 [RateCDR] => 1 ) [2025-03-14 03:47: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-03-14 00:47:06' and `end` < '2025-03-14 03:47: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-03-14 03:47:18] Production.INFO: count ==301 [2025-03-14 03:47:18] Production.ERROR: pbx CDR StartTime 2025-03-14 00:47:06 - End Time 2025-03-14 03:47:06 [2025-03-14 03:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676181', 'tblTempUsageDetail_20' ) start [2025-03-14 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676181', 'tblTempUsageDetail_20' ) end [2025-03-14 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676181', 'tblTempVendorCDR_20' ) start [2025-03-14 03:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676181', 'tblTempVendorCDR_20' ) end [2025-03-14 03:47:18] Production.INFO: ProcessCDR(1,14676181,1,1,2) [2025-03-14 03:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676181,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676181,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676181', 'tblTempUsageDetail_20' ) start [2025-03-14 03:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676181', 'tblTempUsageDetail_20' ) end [2025-03-14 03:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 03:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 03:47:22] Production.INFO: ==30451== Releasing lock... [2025-03-14 03:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 03:47:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-14 03:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 00:48:06 [end_date_ymd] => 2025-03-14 03:48:06 [RateCDR] => 1 ) [2025-03-14 03:48: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-03-14 00:48:06' and `end` < '2025-03-14 03:48: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-03-14 03:48:18] Production.INFO: count ==300 [2025-03-14 03:48:18] Production.ERROR: pbx CDR StartTime 2025-03-14 00:48:06 - End Time 2025-03-14 03:48:06 [2025-03-14 03:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676186', 'tblTempUsageDetail_20' ) start [2025-03-14 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676186', 'tblTempUsageDetail_20' ) end [2025-03-14 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676186', 'tblTempVendorCDR_20' ) start [2025-03-14 03:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676186', 'tblTempVendorCDR_20' ) end [2025-03-14 03:48:18] Production.INFO: ProcessCDR(1,14676186,1,1,2) [2025-03-14 03:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676186,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676186,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676186', 'tblTempUsageDetail_20' ) start [2025-03-14 03:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676186', 'tblTempUsageDetail_20' ) end [2025-03-14 03:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 03:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 03:48:22] Production.INFO: ==30539== Releasing lock... [2025-03-14 03:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 03:48:22] Production.INFO: 30 MB #Memory Used# [2025-03-14 03:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 00:49:05 [end_date_ymd] => 2025-03-14 03:49:05 [RateCDR] => 1 ) [2025-03-14 03:49: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-03-14 00:49:05' and `end` < '2025-03-14 03:49: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-03-14 03:49:17] Production.INFO: count ==299 [2025-03-14 03:49:17] Production.ERROR: pbx CDR StartTime 2025-03-14 00:49:05 - End Time 2025-03-14 03:49:05 [2025-03-14 03:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676191', 'tblTempUsageDetail_20' ) start [2025-03-14 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676191', 'tblTempUsageDetail_20' ) end [2025-03-14 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676191', 'tblTempVendorCDR_20' ) start [2025-03-14 03:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676191', 'tblTempVendorCDR_20' ) end [2025-03-14 03:49:17] Production.INFO: ProcessCDR(1,14676191,1,1,2) [2025-03-14 03:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676191', 'tblTempUsageDetail_20' ) start [2025-03-14 03:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676191', 'tblTempUsageDetail_20' ) end [2025-03-14 03:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 03:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 03:49:21] Production.INFO: ==30619== Releasing lock... [2025-03-14 03:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 03:49:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-14 03:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 00:50:07 [end_date_ymd] => 2025-03-14 03:50:07 [RateCDR] => 1 ) [2025-03-14 03:50:07] 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-03-14 00:50:07' and `end` < '2025-03-14 03:50:07' 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-03-14 03:50:19] Production.INFO: count ==289 [2025-03-14 03:50:19] Production.ERROR: pbx CDR StartTime 2025-03-14 00:50:07 - End Time 2025-03-14 03:50:07 [2025-03-14 03:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676197', 'tblTempUsageDetail_20' ) start [2025-03-14 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676197', 'tblTempUsageDetail_20' ) end [2025-03-14 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676197', 'tblTempVendorCDR_20' ) start [2025-03-14 03:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676197', 'tblTempVendorCDR_20' ) end [2025-03-14 03:50:19] Production.INFO: ProcessCDR(1,14676197,1,1,2) [2025-03-14 03:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676197', 'tblTempUsageDetail_20' ) start [2025-03-14 03:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676197', 'tblTempUsageDetail_20' ) end [2025-03-14 03:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 03:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 03:50:23] Production.INFO: ==30707== Releasing lock... [2025-03-14 03:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 03:50:23] Production.INFO: 30 MB #Memory Used# [2025-03-14 03:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 00:51:05 [end_date_ymd] => 2025-03-14 03:51:05 [RateCDR] => 1 ) [2025-03-14 03:51: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-03-14 00:51:05' and `end` < '2025-03-14 03:51: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-03-14 03:51:17] Production.INFO: count ==273 [2025-03-14 03:51:17] Production.ERROR: pbx CDR StartTime 2025-03-14 00:51:05 - End Time 2025-03-14 03:51:05 [2025-03-14 03:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676202', 'tblTempUsageDetail_20' ) start [2025-03-14 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676202', 'tblTempUsageDetail_20' ) end [2025-03-14 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676202', 'tblTempVendorCDR_20' ) start [2025-03-14 03:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676202', 'tblTempVendorCDR_20' ) end [2025-03-14 03:51:17] Production.INFO: ProcessCDR(1,14676202,1,1,2) [2025-03-14 03:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676202', 'tblTempUsageDetail_20' ) start [2025-03-14 03:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676202', 'tblTempUsageDetail_20' ) end [2025-03-14 03:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 03:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 03:51:21] Production.INFO: ==30790== Releasing lock... [2025-03-14 03:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 03:51:21] Production.INFO: 30 MB #Memory Used# [2025-03-14 03:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 00:52:06 [end_date_ymd] => 2025-03-14 03:52:06 [RateCDR] => 1 ) [2025-03-14 03:52: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-03-14 00:52:06' and `end` < '2025-03-14 03:52: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-03-14 03:52:18] Production.INFO: count ==273 [2025-03-14 03:52:18] Production.ERROR: pbx CDR StartTime 2025-03-14 00:52:06 - End Time 2025-03-14 03:52:06 [2025-03-14 03:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676207', 'tblTempUsageDetail_20' ) start [2025-03-14 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676207', 'tblTempUsageDetail_20' ) end [2025-03-14 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676207', 'tblTempVendorCDR_20' ) start [2025-03-14 03:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676207', 'tblTempVendorCDR_20' ) end [2025-03-14 03:52:18] Production.INFO: ProcessCDR(1,14676207,1,1,2) [2025-03-14 03:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676207', 'tblTempUsageDetail_20' ) start [2025-03-14 03:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676207', 'tblTempUsageDetail_20' ) end [2025-03-14 03:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 03:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 03:52:22] Production.INFO: ==30868== Releasing lock... [2025-03-14 03:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 03:52:22] Production.INFO: 30 MB #Memory Used# [2025-03-14 03:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 00:53:05 [end_date_ymd] => 2025-03-14 03:53:05 [RateCDR] => 1 ) [2025-03-14 03:53: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-03-14 00:53:05' and `end` < '2025-03-14 03:53: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-03-14 03:53:17] Production.INFO: count ==273 [2025-03-14 03:53:18] Production.ERROR: pbx CDR StartTime 2025-03-14 00:53:05 - End Time 2025-03-14 03:53:05 [2025-03-14 03:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676212', 'tblTempUsageDetail_20' ) start [2025-03-14 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676212', 'tblTempUsageDetail_20' ) end [2025-03-14 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676212', 'tblTempVendorCDR_20' ) start [2025-03-14 03:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676212', 'tblTempVendorCDR_20' ) end [2025-03-14 03:53:18] Production.INFO: ProcessCDR(1,14676212,1,1,2) [2025-03-14 03:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676212', 'tblTempUsageDetail_20' ) start [2025-03-14 03:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676212', 'tblTempUsageDetail_20' ) end [2025-03-14 03:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 03:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 03:53:21] Production.INFO: ==30948== Releasing lock... [2025-03-14 03:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 03:53:21] Production.INFO: 30 MB #Memory Used# [2025-03-14 03:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 00:54:06 [end_date_ymd] => 2025-03-14 03:54:06 [RateCDR] => 1 ) [2025-03-14 03:54: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-03-14 00:54:06' and `end` < '2025-03-14 03:54: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-03-14 03:54:18] Production.INFO: count ==273 [2025-03-14 03:54:18] Production.ERROR: pbx CDR StartTime 2025-03-14 00:54:06 - End Time 2025-03-14 03:54:06 [2025-03-14 03:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676217', 'tblTempUsageDetail_20' ) start [2025-03-14 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676217', 'tblTempUsageDetail_20' ) end [2025-03-14 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676217', 'tblTempVendorCDR_20' ) start [2025-03-14 03:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676217', 'tblTempVendorCDR_20' ) end [2025-03-14 03:54:18] Production.INFO: ProcessCDR(1,14676217,1,1,2) [2025-03-14 03:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676217', 'tblTempUsageDetail_20' ) start [2025-03-14 03:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676217', 'tblTempUsageDetail_20' ) end [2025-03-14 03:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 03:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 03:54:21] Production.INFO: ==31032== Releasing lock... [2025-03-14 03:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 03:54:21] Production.INFO: 30 MB #Memory Used# [2025-03-14 03:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 00:55:06 [end_date_ymd] => 2025-03-14 03:55:06 [RateCDR] => 1 ) [2025-03-14 03:55: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-03-14 00:55:06' and `end` < '2025-03-14 03:55: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-03-14 03:55:18] Production.INFO: count ==273 [2025-03-14 03:55:18] Production.ERROR: pbx CDR StartTime 2025-03-14 00:55:06 - End Time 2025-03-14 03:55:06 [2025-03-14 03:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676222', 'tblTempUsageDetail_20' ) start [2025-03-14 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676222', 'tblTempUsageDetail_20' ) end [2025-03-14 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676222', 'tblTempVendorCDR_20' ) start [2025-03-14 03:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676222', 'tblTempVendorCDR_20' ) end [2025-03-14 03:55:18] Production.INFO: ProcessCDR(1,14676222,1,1,2) [2025-03-14 03:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676222', 'tblTempUsageDetail_20' ) start [2025-03-14 03:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676222', 'tblTempUsageDetail_20' ) end [2025-03-14 03:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 03:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 03:55:21] Production.INFO: ==31109== Releasing lock... [2025-03-14 03:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 03:55:21] Production.INFO: 30 MB #Memory Used# [2025-03-14 03:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 00:56:06 [end_date_ymd] => 2025-03-14 03:56:06 [RateCDR] => 1 ) [2025-03-14 03:56: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-03-14 00:56:06' and `end` < '2025-03-14 03:56: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-03-14 03:56:18] Production.INFO: count ==273 [2025-03-14 03:56:18] Production.ERROR: pbx CDR StartTime 2025-03-14 00:56:06 - End Time 2025-03-14 03:56:06 [2025-03-14 03:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676227', 'tblTempUsageDetail_20' ) start [2025-03-14 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676227', 'tblTempUsageDetail_20' ) end [2025-03-14 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676227', 'tblTempVendorCDR_20' ) start [2025-03-14 03:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676227', 'tblTempVendorCDR_20' ) end [2025-03-14 03:56:18] Production.INFO: ProcessCDR(1,14676227,1,1,2) [2025-03-14 03:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676227,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676227,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676227', 'tblTempUsageDetail_20' ) start [2025-03-14 03:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676227', 'tblTempUsageDetail_20' ) end [2025-03-14 03:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 03:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 03:56:22] Production.INFO: ==31189== Releasing lock... [2025-03-14 03:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 03:56:22] Production.INFO: 30 MB #Memory Used# [2025-03-14 03:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 00:57:06 [end_date_ymd] => 2025-03-14 03:57:06 [RateCDR] => 1 ) [2025-03-14 03:57: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-03-14 00:57:06' and `end` < '2025-03-14 03:57: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-03-14 03:57:18] Production.INFO: count ==269 [2025-03-14 03:57:18] Production.ERROR: pbx CDR StartTime 2025-03-14 00:57:06 - End Time 2025-03-14 03:57:06 [2025-03-14 03:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676232', 'tblTempUsageDetail_20' ) start [2025-03-14 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676232', 'tblTempUsageDetail_20' ) end [2025-03-14 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676232', 'tblTempVendorCDR_20' ) start [2025-03-14 03:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676232', 'tblTempVendorCDR_20' ) end [2025-03-14 03:57:18] Production.INFO: ProcessCDR(1,14676232,1,1,2) [2025-03-14 03:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676232,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676232,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676232', 'tblTempUsageDetail_20' ) start [2025-03-14 03:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676232', 'tblTempUsageDetail_20' ) end [2025-03-14 03:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 03:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 03:57:21] Production.INFO: ==31267== Releasing lock... [2025-03-14 03:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 03:57:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-14 03:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 00:58:06 [end_date_ymd] => 2025-03-14 03:58:06 [RateCDR] => 1 ) [2025-03-14 03:58: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-03-14 00:58:06' and `end` < '2025-03-14 03:58: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-03-14 03:58:18] Production.INFO: count ==266 [2025-03-14 03:58:18] Production.ERROR: pbx CDR StartTime 2025-03-14 00:58:06 - End Time 2025-03-14 03:58:06 [2025-03-14 03:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676237', 'tblTempUsageDetail_20' ) start [2025-03-14 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676237', 'tblTempUsageDetail_20' ) end [2025-03-14 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676237', 'tblTempVendorCDR_20' ) start [2025-03-14 03:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676237', 'tblTempVendorCDR_20' ) end [2025-03-14 03:58:18] Production.INFO: ProcessCDR(1,14676237,1,1,2) [2025-03-14 03:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676237,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676237,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676237', 'tblTempUsageDetail_20' ) start [2025-03-14 03:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676237', 'tblTempUsageDetail_20' ) end [2025-03-14 03:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 03:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 03:58:22] Production.INFO: ==31341== Releasing lock... [2025-03-14 03:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 03:58:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-14 03:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 00:59:05 [end_date_ymd] => 2025-03-14 03:59:05 [RateCDR] => 1 ) [2025-03-14 03:59: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-03-14 00:59:05' and `end` < '2025-03-14 03:59: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-03-14 03:59:18] Production.INFO: count ==266 [2025-03-14 03:59:18] Production.ERROR: pbx CDR StartTime 2025-03-14 00:59:05 - End Time 2025-03-14 03:59:05 [2025-03-14 03:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676242', 'tblTempUsageDetail_20' ) start [2025-03-14 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676242', 'tblTempUsageDetail_20' ) end [2025-03-14 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676242', 'tblTempVendorCDR_20' ) start [2025-03-14 03:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676242', 'tblTempVendorCDR_20' ) end [2025-03-14 03:59:18] Production.INFO: ProcessCDR(1,14676242,1,1,2) [2025-03-14 03:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676242,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 03:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676242,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676242', 'tblTempUsageDetail_20' ) start [2025-03-14 03:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676242', 'tblTempUsageDetail_20' ) end [2025-03-14 03:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 03:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 03:59:21] Production.INFO: ==31462== Releasing lock... [2025-03-14 03:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 03:59:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-14 04:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 01:00:07 [end_date_ymd] => 2025-03-14 04:00:07 [RateCDR] => 1 ) [2025-03-14 04:00:07] 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-03-14 01:00:07' and `end` < '2025-03-14 04:00:07' 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-03-14 04:00:19] Production.INFO: count ==265 [2025-03-14 04:00:19] Production.ERROR: pbx CDR StartTime 2025-03-14 01:00:07 - End Time 2025-03-14 04:00:07 [2025-03-14 04:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676248', 'tblTempUsageDetail_20' ) start [2025-03-14 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676248', 'tblTempUsageDetail_20' ) end [2025-03-14 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676248', 'tblTempVendorCDR_20' ) start [2025-03-14 04:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676248', 'tblTempVendorCDR_20' ) end [2025-03-14 04:00:19] Production.INFO: ProcessCDR(1,14676248,1,1,2) [2025-03-14 04:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676248', 'tblTempUsageDetail_20' ) start [2025-03-14 04:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676248', 'tblTempUsageDetail_20' ) end [2025-03-14 04:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 04:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 04:00:23] Production.INFO: ==31546== Releasing lock... [2025-03-14 04:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 04:00:23] Production.INFO: 29.75 MB #Memory Used# [2025-03-14 04:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 01:01:06 [end_date_ymd] => 2025-03-14 04:01:06 [RateCDR] => 1 ) [2025-03-14 04:01: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-03-14 01:01:06' and `end` < '2025-03-14 04:01: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-03-14 04:01:18] Production.INFO: count ==269 [2025-03-14 04:01:18] Production.ERROR: pbx CDR StartTime 2025-03-14 01:01:06 - End Time 2025-03-14 04:01:06 [2025-03-14 04:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676254', 'tblTempUsageDetail_20' ) start [2025-03-14 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676254', 'tblTempUsageDetail_20' ) end [2025-03-14 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676254', 'tblTempVendorCDR_20' ) start [2025-03-14 04:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676254', 'tblTempVendorCDR_20' ) end [2025-03-14 04:01:18] Production.INFO: ProcessCDR(1,14676254,1,1,2) [2025-03-14 04:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676254', 'tblTempUsageDetail_20' ) start [2025-03-14 04:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676254', 'tblTempUsageDetail_20' ) end [2025-03-14 04:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 04:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 04:01:23] Production.INFO: ==31642== Releasing lock... [2025-03-14 04:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 04:01:23] Production.INFO: 30.25 MB #Memory Used# [2025-03-14 04:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 01:02:06 [end_date_ymd] => 2025-03-14 04:02:06 [RateCDR] => 1 ) [2025-03-14 04:02: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-03-14 01:02:06' and `end` < '2025-03-14 04:02: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-03-14 04:02:18] Production.INFO: count ==266 [2025-03-14 04:02:18] Production.ERROR: pbx CDR StartTime 2025-03-14 01:02:06 - End Time 2025-03-14 04:02:06 [2025-03-14 04:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676259', 'tblTempUsageDetail_20' ) start [2025-03-14 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676259', 'tblTempUsageDetail_20' ) end [2025-03-14 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676259', 'tblTempVendorCDR_20' ) start [2025-03-14 04:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676259', 'tblTempVendorCDR_20' ) end [2025-03-14 04:02:18] Production.INFO: ProcessCDR(1,14676259,1,1,2) [2025-03-14 04:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676259', 'tblTempUsageDetail_20' ) start [2025-03-14 04:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676259', 'tblTempUsageDetail_20' ) end [2025-03-14 04:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 04:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 04:02:22] Production.INFO: ==31725== Releasing lock... [2025-03-14 04:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 04:02:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-14 04:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 01:03:05 [end_date_ymd] => 2025-03-14 04:03:05 [RateCDR] => 1 ) [2025-03-14 04:03: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-03-14 01:03:05' and `end` < '2025-03-14 04:03: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-03-14 04:03:17] Production.INFO: count ==266 [2025-03-14 04:03:17] Production.ERROR: pbx CDR StartTime 2025-03-14 01:03:05 - End Time 2025-03-14 04:03:05 [2025-03-14 04:03:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676264', 'tblTempUsageDetail_20' ) start [2025-03-14 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676264', 'tblTempUsageDetail_20' ) end [2025-03-14 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676264', 'tblTempVendorCDR_20' ) start [2025-03-14 04:03:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676264', 'tblTempVendorCDR_20' ) end [2025-03-14 04:03:17] Production.INFO: ProcessCDR(1,14676264,1,1,2) [2025-03-14 04:03:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:03:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:03:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:03:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676264', 'tblTempUsageDetail_20' ) start [2025-03-14 04:03:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676264', 'tblTempUsageDetail_20' ) end [2025-03-14 04:03:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 04:03:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 04:03:21] Production.INFO: ==31807== Releasing lock... [2025-03-14 04:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 04:03:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-14 04:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 01:04:06 [end_date_ymd] => 2025-03-14 04:04:06 [RateCDR] => 1 ) [2025-03-14 04:04: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-03-14 01:04:06' and `end` < '2025-03-14 04:04: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-03-14 04:04:18] Production.INFO: count ==266 [2025-03-14 04:04:18] Production.ERROR: pbx CDR StartTime 2025-03-14 01:04:06 - End Time 2025-03-14 04:04:06 [2025-03-14 04:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676269', 'tblTempUsageDetail_20' ) start [2025-03-14 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676269', 'tblTempUsageDetail_20' ) end [2025-03-14 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676269', 'tblTempVendorCDR_20' ) start [2025-03-14 04:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676269', 'tblTempVendorCDR_20' ) end [2025-03-14 04:04:18] Production.INFO: ProcessCDR(1,14676269,1,1,2) [2025-03-14 04:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676269', 'tblTempUsageDetail_20' ) start [2025-03-14 04:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676269', 'tblTempUsageDetail_20' ) end [2025-03-14 04:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 04:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 04:04:21] Production.INFO: ==31884== Releasing lock... [2025-03-14 04:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 04:04:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-14 04:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 01:05:05 [end_date_ymd] => 2025-03-14 04:05:05 [RateCDR] => 1 ) [2025-03-14 04:05: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-03-14 01:05:05' and `end` < '2025-03-14 04:05: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-03-14 04:05:17] Production.INFO: count ==264 [2025-03-14 04:05:17] Production.ERROR: pbx CDR StartTime 2025-03-14 01:05:05 - End Time 2025-03-14 04:05:05 [2025-03-14 04:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676274', 'tblTempUsageDetail_20' ) start [2025-03-14 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676274', 'tblTempUsageDetail_20' ) end [2025-03-14 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676274', 'tblTempVendorCDR_20' ) start [2025-03-14 04:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676274', 'tblTempVendorCDR_20' ) end [2025-03-14 04:05:17] Production.INFO: ProcessCDR(1,14676274,1,1,2) [2025-03-14 04:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:05:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676274', 'tblTempUsageDetail_20' ) start [2025-03-14 04:05:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676274', 'tblTempUsageDetail_20' ) end [2025-03-14 04:05:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 04:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 04:05:21] Production.INFO: ==31959== Releasing lock... [2025-03-14 04:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 04:05:21] Production.INFO: 30 MB #Memory Used# [2025-03-14 04:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 01:06:06 [end_date_ymd] => 2025-03-14 04:06:06 [RateCDR] => 1 ) [2025-03-14 04:06: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-03-14 01:06:06' and `end` < '2025-03-14 04:06: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-03-14 04:06:18] Production.INFO: count ==272 [2025-03-14 04:06:18] Production.ERROR: pbx CDR StartTime 2025-03-14 01:06:06 - End Time 2025-03-14 04:06:06 [2025-03-14 04:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676279', 'tblTempUsageDetail_20' ) start [2025-03-14 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676279', 'tblTempUsageDetail_20' ) end [2025-03-14 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676279', 'tblTempVendorCDR_20' ) start [2025-03-14 04:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676279', 'tblTempVendorCDR_20' ) end [2025-03-14 04:06:18] Production.INFO: ProcessCDR(1,14676279,1,1,2) [2025-03-14 04:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676279', 'tblTempUsageDetail_20' ) start [2025-03-14 04:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676279', 'tblTempUsageDetail_20' ) end [2025-03-14 04:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 04:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 04:06:21] Production.INFO: ==32040== Releasing lock... [2025-03-14 04:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 04:06:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-14 04:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 01:07:05 [end_date_ymd] => 2025-03-14 04:07:05 [RateCDR] => 1 ) [2025-03-14 04:07: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-03-14 01:07:05' and `end` < '2025-03-14 04:07: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-03-14 04:07:17] Production.INFO: count ==269 [2025-03-14 04:07:17] Production.ERROR: pbx CDR StartTime 2025-03-14 01:07:05 - End Time 2025-03-14 04:07:05 [2025-03-14 04:07:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676284', 'tblTempUsageDetail_20' ) start [2025-03-14 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676284', 'tblTempUsageDetail_20' ) end [2025-03-14 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676284', 'tblTempVendorCDR_20' ) start [2025-03-14 04:07:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676284', 'tblTempVendorCDR_20' ) end [2025-03-14 04:07:17] Production.INFO: ProcessCDR(1,14676284,1,1,2) [2025-03-14 04:07:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:07:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676284', 'tblTempUsageDetail_20' ) start [2025-03-14 04:07:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676284', 'tblTempUsageDetail_20' ) end [2025-03-14 04:07:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 04:07:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 04:07:22] Production.INFO: ==32120== Releasing lock... [2025-03-14 04:07:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 04:07:22] Production.INFO: 30 MB #Memory Used# [2025-03-14 04:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 01:08:06 [end_date_ymd] => 2025-03-14 04:08:06 [RateCDR] => 1 ) [2025-03-14 04:08: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-03-14 01:08:06' and `end` < '2025-03-14 04:08: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-03-14 04:08:18] Production.INFO: count ==269 [2025-03-14 04:08:18] Production.ERROR: pbx CDR StartTime 2025-03-14 01:08:06 - End Time 2025-03-14 04:08:06 [2025-03-14 04:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676289', 'tblTempUsageDetail_20' ) start [2025-03-14 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676289', 'tblTempUsageDetail_20' ) end [2025-03-14 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676289', 'tblTempVendorCDR_20' ) start [2025-03-14 04:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676289', 'tblTempVendorCDR_20' ) end [2025-03-14 04:08:18] Production.INFO: ProcessCDR(1,14676289,1,1,2) [2025-03-14 04:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676289', 'tblTempUsageDetail_20' ) start [2025-03-14 04:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676289', 'tblTempUsageDetail_20' ) end [2025-03-14 04:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 04:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 04:08:21] Production.INFO: ==32203== Releasing lock... [2025-03-14 04:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 04:08:21] Production.INFO: 30 MB #Memory Used# [2025-03-14 04:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 01:09:05 [end_date_ymd] => 2025-03-14 04:09:05 [RateCDR] => 1 ) [2025-03-14 04:09: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-03-14 01:09:05' and `end` < '2025-03-14 04:09: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-03-14 04:09:17] Production.INFO: count ==269 [2025-03-14 04:09:17] Production.ERROR: pbx CDR StartTime 2025-03-14 01:09:05 - End Time 2025-03-14 04:09:05 [2025-03-14 04:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676294', 'tblTempUsageDetail_20' ) start [2025-03-14 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676294', 'tblTempUsageDetail_20' ) end [2025-03-14 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676294', 'tblTempVendorCDR_20' ) start [2025-03-14 04:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676294', 'tblTempVendorCDR_20' ) end [2025-03-14 04:09:17] Production.INFO: ProcessCDR(1,14676294,1,1,2) [2025-03-14 04:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676294', 'tblTempUsageDetail_20' ) start [2025-03-14 04:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676294', 'tblTempUsageDetail_20' ) end [2025-03-14 04:09:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 04:09:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 04:09:20] Production.INFO: ==32279== Releasing lock... [2025-03-14 04:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 04:09:20] Production.INFO: 30 MB #Memory Used# [2025-03-14 04:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 01:10:06 [end_date_ymd] => 2025-03-14 04:10:06 [RateCDR] => 1 ) [2025-03-14 04:10: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-03-14 01:10:06' and `end` < '2025-03-14 04:10: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-03-14 04:10:18] Production.INFO: count ==260 [2025-03-14 04:10:19] Production.ERROR: pbx CDR StartTime 2025-03-14 01:10:06 - End Time 2025-03-14 04:10:06 [2025-03-14 04:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676300', 'tblTempUsageDetail_20' ) start [2025-03-14 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676300', 'tblTempUsageDetail_20' ) end [2025-03-14 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676300', 'tblTempVendorCDR_20' ) start [2025-03-14 04:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676300', 'tblTempVendorCDR_20' ) end [2025-03-14 04:10:19] Production.INFO: ProcessCDR(1,14676300,1,1,2) [2025-03-14 04:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676300', 'tblTempUsageDetail_20' ) start [2025-03-14 04:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676300', 'tblTempUsageDetail_20' ) end [2025-03-14 04:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 04:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 04:10:22] Production.INFO: ==32357== Releasing lock... [2025-03-14 04:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 04:10:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-14 04:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 01:11:05 [end_date_ymd] => 2025-03-14 04:11:05 [RateCDR] => 1 ) [2025-03-14 04:11: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-03-14 01:11:05' and `end` < '2025-03-14 04:11: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-03-14 04:11:17] Production.INFO: count ==260 [2025-03-14 04:11:17] Production.ERROR: pbx CDR StartTime 2025-03-14 01:11:05 - End Time 2025-03-14 04:11:05 [2025-03-14 04:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676305', 'tblTempUsageDetail_20' ) start [2025-03-14 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676305', 'tblTempUsageDetail_20' ) end [2025-03-14 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676305', 'tblTempVendorCDR_20' ) start [2025-03-14 04:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676305', 'tblTempVendorCDR_20' ) end [2025-03-14 04:11:17] Production.INFO: ProcessCDR(1,14676305,1,1,2) [2025-03-14 04:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676305', 'tblTempUsageDetail_20' ) start [2025-03-14 04:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676305', 'tblTempUsageDetail_20' ) end [2025-03-14 04:11:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 04:11:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 04:11:20] Production.INFO: ==32438== Releasing lock... [2025-03-14 04:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 04:11:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-14 04:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 01:12:05 [end_date_ymd] => 2025-03-14 04:12:05 [RateCDR] => 1 ) [2025-03-14 04:12: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-03-14 01:12:05' and `end` < '2025-03-14 04:12: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-03-14 04:12:18] Production.INFO: count ==260 [2025-03-14 04:12:18] Production.ERROR: pbx CDR StartTime 2025-03-14 01:12:05 - End Time 2025-03-14 04:12:05 [2025-03-14 04:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676310', 'tblTempUsageDetail_20' ) start [2025-03-14 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676310', 'tblTempUsageDetail_20' ) end [2025-03-14 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676310', 'tblTempVendorCDR_20' ) start [2025-03-14 04:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676310', 'tblTempVendorCDR_20' ) end [2025-03-14 04:12:18] Production.INFO: ProcessCDR(1,14676310,1,1,2) [2025-03-14 04:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676310', 'tblTempUsageDetail_20' ) start [2025-03-14 04:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676310', 'tblTempUsageDetail_20' ) end [2025-03-14 04:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 04:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 04:12:21] Production.INFO: ==32519== Releasing lock... [2025-03-14 04:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 04:12:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-14 04:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 01:13:05 [end_date_ymd] => 2025-03-14 04:13:05 [RateCDR] => 1 ) [2025-03-14 04:13: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-03-14 01:13:05' and `end` < '2025-03-14 04:13: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-03-14 04:13:17] Production.INFO: count ==260 [2025-03-14 04:13:17] Production.ERROR: pbx CDR StartTime 2025-03-14 01:13:05 - End Time 2025-03-14 04:13:05 [2025-03-14 04:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676315', 'tblTempUsageDetail_20' ) start [2025-03-14 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676315', 'tblTempUsageDetail_20' ) end [2025-03-14 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676315', 'tblTempVendorCDR_20' ) start [2025-03-14 04:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676315', 'tblTempVendorCDR_20' ) end [2025-03-14 04:13:17] Production.INFO: ProcessCDR(1,14676315,1,1,2) [2025-03-14 04:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676315', 'tblTempUsageDetail_20' ) start [2025-03-14 04:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676315', 'tblTempUsageDetail_20' ) end [2025-03-14 04:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 04:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 04:13:21] Production.INFO: ==32602== Releasing lock... [2025-03-14 04:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 04:13:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-14 04:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 01:14:05 [end_date_ymd] => 2025-03-14 04:14:05 [RateCDR] => 1 ) [2025-03-14 04:14: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-03-14 01:14:05' and `end` < '2025-03-14 04:14: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-03-14 04:14:17] Production.INFO: count ==261 [2025-03-14 04:14:17] Production.ERROR: pbx CDR StartTime 2025-03-14 01:14:05 - End Time 2025-03-14 04:14:05 [2025-03-14 04:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676320', 'tblTempUsageDetail_20' ) start [2025-03-14 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676320', 'tblTempUsageDetail_20' ) end [2025-03-14 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676320', 'tblTempVendorCDR_20' ) start [2025-03-14 04:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676320', 'tblTempVendorCDR_20' ) end [2025-03-14 04:14:17] Production.INFO: ProcessCDR(1,14676320,1,1,2) [2025-03-14 04:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676320', 'tblTempUsageDetail_20' ) start [2025-03-14 04:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676320', 'tblTempUsageDetail_20' ) end [2025-03-14 04:14:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 04:14:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 04:14:20] Production.INFO: ==32685== Releasing lock... [2025-03-14 04:14:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 04:14:20] Production.INFO: 30 MB #Memory Used# [2025-03-14 04:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 01:15:05 [end_date_ymd] => 2025-03-14 04:15:05 [RateCDR] => 1 ) [2025-03-14 04:15: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-03-14 01:15:05' and `end` < '2025-03-14 04:15: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-03-14 04:15:17] Production.INFO: count ==259 [2025-03-14 04:15:17] Production.ERROR: pbx CDR StartTime 2025-03-14 01:15:05 - End Time 2025-03-14 04:15:05 [2025-03-14 04:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676325', 'tblTempUsageDetail_20' ) start [2025-03-14 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676325', 'tblTempUsageDetail_20' ) end [2025-03-14 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676325', 'tblTempVendorCDR_20' ) start [2025-03-14 04:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676325', 'tblTempVendorCDR_20' ) end [2025-03-14 04:15:17] Production.INFO: ProcessCDR(1,14676325,1,1,2) [2025-03-14 04:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676325', 'tblTempUsageDetail_20' ) start [2025-03-14 04:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676325', 'tblTempUsageDetail_20' ) end [2025-03-14 04:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 04:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 04:15:21] Production.INFO: ==354== Releasing lock... [2025-03-14 04:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 04:15:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-14 04:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 01:16:05 [end_date_ymd] => 2025-03-14 04:16:05 [RateCDR] => 1 ) [2025-03-14 04:16: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-03-14 01:16:05' and `end` < '2025-03-14 04:16: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-03-14 04:16:17] Production.INFO: count ==256 [2025-03-14 04:16:17] Production.ERROR: pbx CDR StartTime 2025-03-14 01:16:05 - End Time 2025-03-14 04:16:05 [2025-03-14 04:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676330', 'tblTempUsageDetail_20' ) start [2025-03-14 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676330', 'tblTempUsageDetail_20' ) end [2025-03-14 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676330', 'tblTempVendorCDR_20' ) start [2025-03-14 04:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676330', 'tblTempVendorCDR_20' ) end [2025-03-14 04:16:17] Production.INFO: ProcessCDR(1,14676330,1,1,2) [2025-03-14 04:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676330', 'tblTempUsageDetail_20' ) start [2025-03-14 04:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676330', 'tblTempUsageDetail_20' ) end [2025-03-14 04:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 04:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 04:16:21] Production.INFO: ==435== Releasing lock... [2025-03-14 04:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 04:16:21] Production.INFO: 30 MB #Memory Used# [2025-03-14 04:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 01:17:05 [end_date_ymd] => 2025-03-14 04:17:05 [RateCDR] => 1 ) [2025-03-14 04:17: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-03-14 01:17:05' and `end` < '2025-03-14 04:17: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-03-14 04:17:17] Production.INFO: count ==254 [2025-03-14 04:17:17] Production.ERROR: pbx CDR StartTime 2025-03-14 01:17:05 - End Time 2025-03-14 04:17:05 [2025-03-14 04:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676335', 'tblTempUsageDetail_20' ) start [2025-03-14 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676335', 'tblTempUsageDetail_20' ) end [2025-03-14 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676335', 'tblTempVendorCDR_20' ) start [2025-03-14 04:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676335', 'tblTempVendorCDR_20' ) end [2025-03-14 04:17:17] Production.INFO: ProcessCDR(1,14676335,1,1,2) [2025-03-14 04:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676335', 'tblTempUsageDetail_20' ) start [2025-03-14 04:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676335', 'tblTempUsageDetail_20' ) end [2025-03-14 04:17:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 04:17:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 04:17:20] Production.INFO: ==517== Releasing lock... [2025-03-14 04:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 04:17:20] Production.INFO: 30 MB #Memory Used# [2025-03-14 04:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 01:18:05 [end_date_ymd] => 2025-03-14 04:18:05 [RateCDR] => 1 ) [2025-03-14 04:18: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-03-14 01:18:05' and `end` < '2025-03-14 04:18: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-03-14 04:18:17] Production.INFO: count ==254 [2025-03-14 04:18:17] Production.ERROR: pbx CDR StartTime 2025-03-14 01:18:05 - End Time 2025-03-14 04:18:05 [2025-03-14 04:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676340', 'tblTempUsageDetail_20' ) start [2025-03-14 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676340', 'tblTempUsageDetail_20' ) end [2025-03-14 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676340', 'tblTempVendorCDR_20' ) start [2025-03-14 04:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676340', 'tblTempVendorCDR_20' ) end [2025-03-14 04:18:17] Production.INFO: ProcessCDR(1,14676340,1,1,2) [2025-03-14 04:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676340', 'tblTempUsageDetail_20' ) start [2025-03-14 04:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676340', 'tblTempUsageDetail_20' ) end [2025-03-14 04:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 04:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 04:18:21] Production.INFO: ==599== Releasing lock... [2025-03-14 04:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 04:18:21] Production.INFO: 30 MB #Memory Used# [2025-03-14 04:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 01:19:05 [end_date_ymd] => 2025-03-14 04:19:05 [RateCDR] => 1 ) [2025-03-14 04:19: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-03-14 01:19:05' and `end` < '2025-03-14 04:19: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-03-14 04:19:17] Production.INFO: count ==257 [2025-03-14 04:19:17] Production.ERROR: pbx CDR StartTime 2025-03-14 01:19:05 - End Time 2025-03-14 04:19:05 [2025-03-14 04:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676345', 'tblTempUsageDetail_20' ) start [2025-03-14 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676345', 'tblTempUsageDetail_20' ) end [2025-03-14 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676345', 'tblTempVendorCDR_20' ) start [2025-03-14 04:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676345', 'tblTempVendorCDR_20' ) end [2025-03-14 04:19:17] Production.INFO: ProcessCDR(1,14676345,1,1,2) [2025-03-14 04:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676345', 'tblTempUsageDetail_20' ) start [2025-03-14 04:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676345', 'tblTempUsageDetail_20' ) end [2025-03-14 04:19:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 04:19:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 04:19:20] Production.INFO: ==699== Releasing lock... [2025-03-14 04:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 04:19:20] Production.INFO: 30 MB #Memory Used# [2025-03-14 04:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 01:20:06 [end_date_ymd] => 2025-03-14 04:20:06 [RateCDR] => 1 ) [2025-03-14 04:20: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-03-14 01:20:06' and `end` < '2025-03-14 04:20: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-03-14 04:20:18] Production.INFO: count ==257 [2025-03-14 04:20:18] Production.ERROR: pbx CDR StartTime 2025-03-14 01:20:06 - End Time 2025-03-14 04:20:06 [2025-03-14 04:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676350', 'tblTempUsageDetail_20' ) start [2025-03-14 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676350', 'tblTempUsageDetail_20' ) end [2025-03-14 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676350', 'tblTempVendorCDR_20' ) start [2025-03-14 04:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676350', 'tblTempVendorCDR_20' ) end [2025-03-14 04:20:18] Production.INFO: ProcessCDR(1,14676350,1,1,2) [2025-03-14 04:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676350', 'tblTempUsageDetail_20' ) start [2025-03-14 04:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676350', 'tblTempUsageDetail_20' ) end [2025-03-14 04:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 04:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 04:20:22] Production.INFO: ==792== Releasing lock... [2025-03-14 04:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 04:20:22] Production.INFO: 30 MB #Memory Used# [2025-03-14 04:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 01:21:05 [end_date_ymd] => 2025-03-14 04:21:05 [RateCDR] => 1 ) [2025-03-14 04:21: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-03-14 01:21:05' and `end` < '2025-03-14 04:21: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-03-14 04:21:17] Production.INFO: count ==249 [2025-03-14 04:21:17] Production.ERROR: pbx CDR StartTime 2025-03-14 01:21:05 - End Time 2025-03-14 04:21:05 [2025-03-14 04:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676356', 'tblTempUsageDetail_20' ) start [2025-03-14 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676356', 'tblTempUsageDetail_20' ) end [2025-03-14 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676356', 'tblTempVendorCDR_20' ) start [2025-03-14 04:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676356', 'tblTempVendorCDR_20' ) end [2025-03-14 04:21:17] Production.INFO: ProcessCDR(1,14676356,1,1,2) [2025-03-14 04:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676356', 'tblTempUsageDetail_20' ) start [2025-03-14 04:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676356', 'tblTempUsageDetail_20' ) end [2025-03-14 04:21:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 04:21:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 04:21:20] Production.INFO: ==873== Releasing lock... [2025-03-14 04:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 04:21:20] Production.INFO: 30 MB #Memory Used# [2025-03-14 04:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 01:22:06 [end_date_ymd] => 2025-03-14 04:22:06 [RateCDR] => 1 ) [2025-03-14 04:22: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-03-14 01:22:06' and `end` < '2025-03-14 04:22: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-03-14 04:22:18] Production.INFO: count ==245 [2025-03-14 04:22:18] Production.ERROR: pbx CDR StartTime 2025-03-14 01:22:06 - End Time 2025-03-14 04:22:06 [2025-03-14 04:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676361', 'tblTempUsageDetail_20' ) start [2025-03-14 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676361', 'tblTempUsageDetail_20' ) end [2025-03-14 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676361', 'tblTempVendorCDR_20' ) start [2025-03-14 04:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676361', 'tblTempVendorCDR_20' ) end [2025-03-14 04:22:18] Production.INFO: ProcessCDR(1,14676361,1,1,2) [2025-03-14 04:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676361', 'tblTempUsageDetail_20' ) start [2025-03-14 04:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676361', 'tblTempUsageDetail_20' ) end [2025-03-14 04:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 04:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 04:22:21] Production.INFO: ==945== Releasing lock... [2025-03-14 04:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 04:22:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-14 04:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 01:23:05 [end_date_ymd] => 2025-03-14 04:23:05 [RateCDR] => 1 ) [2025-03-14 04:23: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-03-14 01:23:05' and `end` < '2025-03-14 04:23: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-03-14 04:23:17] Production.INFO: count ==245 [2025-03-14 04:23:17] Production.ERROR: pbx CDR StartTime 2025-03-14 01:23:05 - End Time 2025-03-14 04:23:05 [2025-03-14 04:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676366', 'tblTempUsageDetail_20' ) start [2025-03-14 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676366', 'tblTempUsageDetail_20' ) end [2025-03-14 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676366', 'tblTempVendorCDR_20' ) start [2025-03-14 04:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676366', 'tblTempVendorCDR_20' ) end [2025-03-14 04:23:17] Production.INFO: ProcessCDR(1,14676366,1,1,2) [2025-03-14 04:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676366', 'tblTempUsageDetail_20' ) start [2025-03-14 04:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676366', 'tblTempUsageDetail_20' ) end [2025-03-14 04:23:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 04:23:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 04:23:20] Production.INFO: ==1023== Releasing lock... [2025-03-14 04:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 04:23:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-14 04:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 01:24:06 [end_date_ymd] => 2025-03-14 04:24:06 [RateCDR] => 1 ) [2025-03-14 04:24: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-03-14 01:24:06' and `end` < '2025-03-14 04:24: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-03-14 04:24:18] Production.INFO: count ==242 [2025-03-14 04:24:18] Production.ERROR: pbx CDR StartTime 2025-03-14 01:24:06 - End Time 2025-03-14 04:24:06 [2025-03-14 04:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676371', 'tblTempUsageDetail_20' ) start [2025-03-14 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676371', 'tblTempUsageDetail_20' ) end [2025-03-14 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676371', 'tblTempVendorCDR_20' ) start [2025-03-14 04:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676371', 'tblTempVendorCDR_20' ) end [2025-03-14 04:24:18] Production.INFO: ProcessCDR(1,14676371,1,1,2) [2025-03-14 04:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676371', 'tblTempUsageDetail_20' ) start [2025-03-14 04:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676371', 'tblTempUsageDetail_20' ) end [2025-03-14 04:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 04:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 04:24:21] Production.INFO: ==1098== Releasing lock... [2025-03-14 04:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 04:24:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-14 04:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 01:25:05 [end_date_ymd] => 2025-03-14 04:25:05 [RateCDR] => 1 ) [2025-03-14 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-03-14 01:25:05' and `end` < '2025-03-14 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-03-14 04:25:17] Production.INFO: count ==241 [2025-03-14 04:25:17] Production.ERROR: pbx CDR StartTime 2025-03-14 01:25:05 - End Time 2025-03-14 04:25:05 [2025-03-14 04:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676376', 'tblTempUsageDetail_20' ) start [2025-03-14 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676376', 'tblTempUsageDetail_20' ) end [2025-03-14 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676376', 'tblTempVendorCDR_20' ) start [2025-03-14 04:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676376', 'tblTempVendorCDR_20' ) end [2025-03-14 04:25:17] Production.INFO: ProcessCDR(1,14676376,1,1,2) [2025-03-14 04:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676376', 'tblTempUsageDetail_20' ) start [2025-03-14 04:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676376', 'tblTempUsageDetail_20' ) end [2025-03-14 04:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 04:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 04:25:21] Production.INFO: ==1185== Releasing lock... [2025-03-14 04:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 04:25:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-14 04:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 01:26:05 [end_date_ymd] => 2025-03-14 04:26:05 [RateCDR] => 1 ) [2025-03-14 04:26: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-03-14 01:26:05' and `end` < '2025-03-14 04:26: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-03-14 04:26:17] Production.INFO: count ==241 [2025-03-14 04:26:17] Production.ERROR: pbx CDR StartTime 2025-03-14 01:26:05 - End Time 2025-03-14 04:26:05 [2025-03-14 04:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676381', 'tblTempUsageDetail_20' ) start [2025-03-14 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676381', 'tblTempUsageDetail_20' ) end [2025-03-14 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676381', 'tblTempVendorCDR_20' ) start [2025-03-14 04:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676381', 'tblTempVendorCDR_20' ) end [2025-03-14 04:26:17] Production.INFO: ProcessCDR(1,14676381,1,1,2) [2025-03-14 04:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676381', 'tblTempUsageDetail_20' ) start [2025-03-14 04:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676381', 'tblTempUsageDetail_20' ) end [2025-03-14 04:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 04:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 04:26:21] Production.INFO: ==1283== Releasing lock... [2025-03-14 04:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 04:26:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-14 04:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 01:27:06 [end_date_ymd] => 2025-03-14 04:27:06 [RateCDR] => 1 ) [2025-03-14 04:27: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-03-14 01:27:06' and `end` < '2025-03-14 04:27: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-03-14 04:27:18] Production.INFO: count ==234 [2025-03-14 04:27:18] Production.ERROR: pbx CDR StartTime 2025-03-14 01:27:06 - End Time 2025-03-14 04:27:06 [2025-03-14 04:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676386', 'tblTempUsageDetail_20' ) start [2025-03-14 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676386', 'tblTempUsageDetail_20' ) end [2025-03-14 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676386', 'tblTempVendorCDR_20' ) start [2025-03-14 04:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676386', 'tblTempVendorCDR_20' ) end [2025-03-14 04:27:18] Production.INFO: ProcessCDR(1,14676386,1,1,2) [2025-03-14 04:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676386', 'tblTempUsageDetail_20' ) start [2025-03-14 04:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676386', 'tblTempUsageDetail_20' ) end [2025-03-14 04:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 04:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 04:27:21] Production.INFO: ==1368== Releasing lock... [2025-03-14 04:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 04:27:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-14 04:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 01:28:06 [end_date_ymd] => 2025-03-14 04:28:06 [RateCDR] => 1 ) [2025-03-14 04:28: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-03-14 01:28:06' and `end` < '2025-03-14 04:28: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-03-14 04:28:18] Production.INFO: count ==233 [2025-03-14 04:28:18] Production.ERROR: pbx CDR StartTime 2025-03-14 01:28:06 - End Time 2025-03-14 04:28:06 [2025-03-14 04:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676391', 'tblTempUsageDetail_20' ) start [2025-03-14 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676391', 'tblTempUsageDetail_20' ) end [2025-03-14 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676391', 'tblTempVendorCDR_20' ) start [2025-03-14 04:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676391', 'tblTempVendorCDR_20' ) end [2025-03-14 04:28:18] Production.INFO: ProcessCDR(1,14676391,1,1,2) [2025-03-14 04:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676391', 'tblTempUsageDetail_20' ) start [2025-03-14 04:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676391', 'tblTempUsageDetail_20' ) end [2025-03-14 04:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 04:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 04:28:21] Production.INFO: ==1444== Releasing lock... [2025-03-14 04:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 04:28:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-14 04:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 01:29:05 [end_date_ymd] => 2025-03-14 04:29:05 [RateCDR] => 1 ) [2025-03-14 04:29: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-03-14 01:29:05' and `end` < '2025-03-14 04:29: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-03-14 04:29:17] Production.INFO: count ==228 [2025-03-14 04:29:17] Production.ERROR: pbx CDR StartTime 2025-03-14 01:29:05 - End Time 2025-03-14 04:29:05 [2025-03-14 04:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676396', 'tblTempUsageDetail_20' ) start [2025-03-14 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676396', 'tblTempUsageDetail_20' ) end [2025-03-14 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676396', 'tblTempVendorCDR_20' ) start [2025-03-14 04:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676396', 'tblTempVendorCDR_20' ) end [2025-03-14 04:29:17] Production.INFO: ProcessCDR(1,14676396,1,1,2) [2025-03-14 04:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676396', 'tblTempUsageDetail_20' ) start [2025-03-14 04:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676396', 'tblTempUsageDetail_20' ) end [2025-03-14 04:29:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 04:29:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 04:29:20] Production.INFO: ==1558== Releasing lock... [2025-03-14 04:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 04:29:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-14 04:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 01:30:07 [end_date_ymd] => 2025-03-14 04:30:07 [RateCDR] => 1 ) [2025-03-14 04:30:07] 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-03-14 01:30:07' and `end` < '2025-03-14 04:30:07' 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-03-14 04:30:19] Production.INFO: count ==218 [2025-03-14 04:30:19] Production.ERROR: pbx CDR StartTime 2025-03-14 01:30:07 - End Time 2025-03-14 04:30:07 [2025-03-14 04:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676403', 'tblTempUsageDetail_20' ) start [2025-03-14 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676403', 'tblTempUsageDetail_20' ) end [2025-03-14 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676403', 'tblTempVendorCDR_20' ) start [2025-03-14 04:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676403', 'tblTempVendorCDR_20' ) end [2025-03-14 04:30:19] Production.INFO: ProcessCDR(1,14676403,1,1,2) [2025-03-14 04:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676403,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676403,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676403', 'tblTempUsageDetail_20' ) start [2025-03-14 04:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676403', 'tblTempUsageDetail_20' ) end [2025-03-14 04:30:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 04:30:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 04:30:25] Production.INFO: ==1683== Releasing lock... [2025-03-14 04:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 04:30:25] Production.INFO: 29.25 MB #Memory Used# [2025-03-14 04:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 01:31:06 [end_date_ymd] => 2025-03-14 04:31:06 [RateCDR] => 1 ) [2025-03-14 04:31: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-03-14 01:31:06' and `end` < '2025-03-14 04:31: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-03-14 04:31:18] Production.INFO: count ==215 [2025-03-14 04:31:18] Production.ERROR: pbx CDR StartTime 2025-03-14 01:31:06 - End Time 2025-03-14 04:31:06 [2025-03-14 04:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676408', 'tblTempUsageDetail_20' ) start [2025-03-14 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676408', 'tblTempUsageDetail_20' ) end [2025-03-14 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676408', 'tblTempVendorCDR_20' ) start [2025-03-14 04:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676408', 'tblTempVendorCDR_20' ) end [2025-03-14 04:31:18] Production.INFO: ProcessCDR(1,14676408,1,1,2) [2025-03-14 04:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676408,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676408,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676408', 'tblTempUsageDetail_20' ) start [2025-03-14 04:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676408', 'tblTempUsageDetail_20' ) end [2025-03-14 04:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 04:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 04:31:21] Production.INFO: ==1961== Releasing lock... [2025-03-14 04:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 04:31:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-14 04:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 01:32:05 [end_date_ymd] => 2025-03-14 04:32:05 [RateCDR] => 1 ) [2025-03-14 04:32: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-03-14 01:32:05' and `end` < '2025-03-14 04:32: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-03-14 04:32:17] Production.INFO: count ==211 [2025-03-14 04:32:17] Production.ERROR: pbx CDR StartTime 2025-03-14 01:32:05 - End Time 2025-03-14 04:32:05 [2025-03-14 04:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676413', 'tblTempUsageDetail_20' ) start [2025-03-14 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676413', 'tblTempUsageDetail_20' ) end [2025-03-14 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676413', 'tblTempVendorCDR_20' ) start [2025-03-14 04:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676413', 'tblTempVendorCDR_20' ) end [2025-03-14 04:32:17] Production.INFO: ProcessCDR(1,14676413,1,1,2) [2025-03-14 04:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676413,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676413,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676413', 'tblTempUsageDetail_20' ) start [2025-03-14 04:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676413', 'tblTempUsageDetail_20' ) end [2025-03-14 04:32:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 04:32:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 04:32:20] Production.INFO: ==2040== Releasing lock... [2025-03-14 04:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 04:32:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-14 04:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 01:33:06 [end_date_ymd] => 2025-03-14 04:33:06 [RateCDR] => 1 ) [2025-03-14 04:33: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-03-14 01:33:06' and `end` < '2025-03-14 04:33: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-03-14 04:33:18] Production.INFO: count ==211 [2025-03-14 04:33:18] Production.ERROR: pbx CDR StartTime 2025-03-14 01:33:06 - End Time 2025-03-14 04:33:06 [2025-03-14 04:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676418', 'tblTempUsageDetail_20' ) start [2025-03-14 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676418', 'tblTempUsageDetail_20' ) end [2025-03-14 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676418', 'tblTempVendorCDR_20' ) start [2025-03-14 04:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676418', 'tblTempVendorCDR_20' ) end [2025-03-14 04:33:18] Production.INFO: ProcessCDR(1,14676418,1,1,2) [2025-03-14 04:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676418,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676418,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676418', 'tblTempUsageDetail_20' ) start [2025-03-14 04:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676418', 'tblTempUsageDetail_20' ) end [2025-03-14 04:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 04:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 04:33:21] Production.INFO: ==2122== Releasing lock... [2025-03-14 04:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 04:33:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-14 04:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 01:34:04 [end_date_ymd] => 2025-03-14 04:34:04 [RateCDR] => 1 ) [2025-03-14 04:34: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-03-14 01:34:04' and `end` < '2025-03-14 04:34: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-03-14 04:34:16] Production.INFO: count ==211 [2025-03-14 04:34:16] Production.ERROR: pbx CDR StartTime 2025-03-14 01:34:04 - End Time 2025-03-14 04:34:04 [2025-03-14 04:34:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 04:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676423', 'tblTempUsageDetail_20' ) start [2025-03-14 04:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676423', 'tblTempUsageDetail_20' ) end [2025-03-14 04:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676423', 'tblTempVendorCDR_20' ) start [2025-03-14 04:34:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676423', 'tblTempVendorCDR_20' ) end [2025-03-14 04:34:16] Production.INFO: ProcessCDR(1,14676423,1,1,2) [2025-03-14 04:34:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:34:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:34:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676423', 'tblTempUsageDetail_20' ) start [2025-03-14 04:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676423', 'tblTempUsageDetail_20' ) end [2025-03-14 04:34:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 04:34:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 04:34:20] Production.INFO: ==2196== Releasing lock... [2025-03-14 04:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 04:34:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-14 04:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 01:35:05 [end_date_ymd] => 2025-03-14 04:35:05 [RateCDR] => 1 ) [2025-03-14 04:35: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-03-14 01:35:05' and `end` < '2025-03-14 04:35: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-03-14 04:35:17] Production.INFO: count ==211 [2025-03-14 04:35:17] Production.ERROR: pbx CDR StartTime 2025-03-14 01:35:05 - End Time 2025-03-14 04:35:05 [2025-03-14 04:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676428', 'tblTempUsageDetail_20' ) start [2025-03-14 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676428', 'tblTempUsageDetail_20' ) end [2025-03-14 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676428', 'tblTempVendorCDR_20' ) start [2025-03-14 04:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676428', 'tblTempVendorCDR_20' ) end [2025-03-14 04:35:17] Production.INFO: ProcessCDR(1,14676428,1,1,2) [2025-03-14 04:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676428', 'tblTempUsageDetail_20' ) start [2025-03-14 04:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676428', 'tblTempUsageDetail_20' ) end [2025-03-14 04:35:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 04:35:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 04:35:20] Production.INFO: ==2277== Releasing lock... [2025-03-14 04:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 04:35:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-14 04:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 01:36:05 [end_date_ymd] => 2025-03-14 04:36:05 [RateCDR] => 1 ) [2025-03-14 04:36: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-03-14 01:36:05' and `end` < '2025-03-14 04:36: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-03-14 04:36:18] Production.INFO: count ==211 [2025-03-14 04:36:18] Production.ERROR: pbx CDR StartTime 2025-03-14 01:36:05 - End Time 2025-03-14 04:36:05 [2025-03-14 04:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676433', 'tblTempUsageDetail_20' ) start [2025-03-14 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676433', 'tblTempUsageDetail_20' ) end [2025-03-14 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676433', 'tblTempVendorCDR_20' ) start [2025-03-14 04:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676433', 'tblTempVendorCDR_20' ) end [2025-03-14 04:36:18] Production.INFO: ProcessCDR(1,14676433,1,1,2) [2025-03-14 04:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676433', 'tblTempUsageDetail_20' ) start [2025-03-14 04:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676433', 'tblTempUsageDetail_20' ) end [2025-03-14 04:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 04:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 04:36:21] Production.INFO: ==2356== Releasing lock... [2025-03-14 04:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 04:36:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-14 04:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 01:37:05 [end_date_ymd] => 2025-03-14 04:37:05 [RateCDR] => 1 ) [2025-03-14 04:37: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-03-14 01:37:05' and `end` < '2025-03-14 04:37: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-03-14 04:37:17] Production.INFO: count ==210 [2025-03-14 04:37:17] Production.ERROR: pbx CDR StartTime 2025-03-14 01:37:05 - End Time 2025-03-14 04:37:05 [2025-03-14 04:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676438', 'tblTempUsageDetail_20' ) start [2025-03-14 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676438', 'tblTempUsageDetail_20' ) end [2025-03-14 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676438', 'tblTempVendorCDR_20' ) start [2025-03-14 04:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676438', 'tblTempVendorCDR_20' ) end [2025-03-14 04:37:17] Production.INFO: ProcessCDR(1,14676438,1,1,2) [2025-03-14 04:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676438', 'tblTempUsageDetail_20' ) start [2025-03-14 04:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676438', 'tblTempUsageDetail_20' ) end [2025-03-14 04:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 04:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 04:37:21] Production.INFO: ==2434== Releasing lock... [2025-03-14 04:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 04:37:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-14 04:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 01:38:05 [end_date_ymd] => 2025-03-14 04:38:05 [RateCDR] => 1 ) [2025-03-14 04:38: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-03-14 01:38:05' and `end` < '2025-03-14 04:38: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-03-14 04:38:17] Production.INFO: count ==207 [2025-03-14 04:38:17] Production.ERROR: pbx CDR StartTime 2025-03-14 01:38:05 - End Time 2025-03-14 04:38:05 [2025-03-14 04:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676443', 'tblTempUsageDetail_20' ) start [2025-03-14 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676443', 'tblTempUsageDetail_20' ) end [2025-03-14 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676443', 'tblTempVendorCDR_20' ) start [2025-03-14 04:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676443', 'tblTempVendorCDR_20' ) end [2025-03-14 04:38:17] Production.INFO: ProcessCDR(1,14676443,1,1,2) [2025-03-14 04:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676443', 'tblTempUsageDetail_20' ) start [2025-03-14 04:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676443', 'tblTempUsageDetail_20' ) end [2025-03-14 04:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 04:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 04:38:21] Production.INFO: ==2516== Releasing lock... [2025-03-14 04:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 04:38:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-14 04:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 01:39:05 [end_date_ymd] => 2025-03-14 04:39:05 [RateCDR] => 1 ) [2025-03-14 04:39: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-03-14 01:39:05' and `end` < '2025-03-14 04:39: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-03-14 04:39:17] Production.INFO: count ==206 [2025-03-14 04:39:17] Production.ERROR: pbx CDR StartTime 2025-03-14 01:39:05 - End Time 2025-03-14 04:39:05 [2025-03-14 04:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676448', 'tblTempUsageDetail_20' ) start [2025-03-14 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676448', 'tblTempUsageDetail_20' ) end [2025-03-14 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676448', 'tblTempVendorCDR_20' ) start [2025-03-14 04:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676448', 'tblTempVendorCDR_20' ) end [2025-03-14 04:39:17] Production.INFO: ProcessCDR(1,14676448,1,1,2) [2025-03-14 04:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676448', 'tblTempUsageDetail_20' ) start [2025-03-14 04:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676448', 'tblTempUsageDetail_20' ) end [2025-03-14 04:39:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 04:39:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 04:39:20] Production.INFO: ==2598== Releasing lock... [2025-03-14 04:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 04:39:20] Production.INFO: 29.75 MB #Memory Used# [2025-03-14 04:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 01:40:06 [end_date_ymd] => 2025-03-14 04:40:06 [RateCDR] => 1 ) [2025-03-14 04:40: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-03-14 01:40:06' and `end` < '2025-03-14 04:40: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-03-14 04:40:19] Production.INFO: count ==196 [2025-03-14 04:40:19] Production.ERROR: pbx CDR StartTime 2025-03-14 01:40:06 - End Time 2025-03-14 04:40:06 [2025-03-14 04:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676454', 'tblTempUsageDetail_20' ) start [2025-03-14 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676454', 'tblTempUsageDetail_20' ) end [2025-03-14 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676454', 'tblTempVendorCDR_20' ) start [2025-03-14 04:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676454', 'tblTempVendorCDR_20' ) end [2025-03-14 04:40:19] Production.INFO: ProcessCDR(1,14676454,1,1,2) [2025-03-14 04:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676454,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676454,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676454', 'tblTempUsageDetail_20' ) start [2025-03-14 04:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676454', 'tblTempUsageDetail_20' ) end [2025-03-14 04:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 04:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 04:40:22] Production.INFO: ==2685== Releasing lock... [2025-03-14 04:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 04:40:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-14 04:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 01:41:05 [end_date_ymd] => 2025-03-14 04:41:05 [RateCDR] => 1 ) [2025-03-14 04:41: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-03-14 01:41:05' and `end` < '2025-03-14 04:41: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-03-14 04:41:17] Production.INFO: count ==185 [2025-03-14 04:41:17] Production.ERROR: pbx CDR StartTime 2025-03-14 01:41:05 - End Time 2025-03-14 04:41:05 [2025-03-14 04:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676459', 'tblTempUsageDetail_20' ) start [2025-03-14 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676459', 'tblTempUsageDetail_20' ) end [2025-03-14 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676459', 'tblTempVendorCDR_20' ) start [2025-03-14 04:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676459', 'tblTempVendorCDR_20' ) end [2025-03-14 04:41:17] Production.INFO: ProcessCDR(1,14676459,1,1,2) [2025-03-14 04:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676459,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676459,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676459', 'tblTempUsageDetail_20' ) start [2025-03-14 04:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676459', 'tblTempUsageDetail_20' ) end [2025-03-14 04:41:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 04:41:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 04:41:20] Production.INFO: ==2762== Releasing lock... [2025-03-14 04:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 04:41:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-14 04:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 01:42:06 [end_date_ymd] => 2025-03-14 04:42:06 [RateCDR] => 1 ) [2025-03-14 04:42: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-03-14 01:42:06' and `end` < '2025-03-14 04:42: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-03-14 04:42:18] Production.INFO: count ==185 [2025-03-14 04:42:18] Production.ERROR: pbx CDR StartTime 2025-03-14 01:42:06 - End Time 2025-03-14 04:42:06 [2025-03-14 04:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676464', 'tblTempUsageDetail_20' ) start [2025-03-14 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676464', 'tblTempUsageDetail_20' ) end [2025-03-14 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676464', 'tblTempVendorCDR_20' ) start [2025-03-14 04:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676464', 'tblTempVendorCDR_20' ) end [2025-03-14 04:42:18] Production.INFO: ProcessCDR(1,14676464,1,1,2) [2025-03-14 04:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676464,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676464,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676464', 'tblTempUsageDetail_20' ) start [2025-03-14 04:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676464', 'tblTempUsageDetail_20' ) end [2025-03-14 04:42:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 04:42:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 04:42:22] Production.INFO: ==2842== Releasing lock... [2025-03-14 04:42:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 04:42:22] Production.INFO: 29.5 MB #Memory Used# [2025-03-14 04:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 01:43:05 [end_date_ymd] => 2025-03-14 04:43:05 [RateCDR] => 1 ) [2025-03-14 04:43: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-03-14 01:43:05' and `end` < '2025-03-14 04:43: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-03-14 04:43:17] Production.INFO: count ==185 [2025-03-14 04:43:17] Production.ERROR: pbx CDR StartTime 2025-03-14 01:43:05 - End Time 2025-03-14 04:43:05 [2025-03-14 04:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676469', 'tblTempUsageDetail_20' ) start [2025-03-14 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676469', 'tblTempUsageDetail_20' ) end [2025-03-14 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676469', 'tblTempVendorCDR_20' ) start [2025-03-14 04:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676469', 'tblTempVendorCDR_20' ) end [2025-03-14 04:43:17] Production.INFO: ProcessCDR(1,14676469,1,1,2) [2025-03-14 04:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676469,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676469,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676469', 'tblTempUsageDetail_20' ) start [2025-03-14 04:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676469', 'tblTempUsageDetail_20' ) end [2025-03-14 04:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 04:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 04:43:21] Production.INFO: ==2920== Releasing lock... [2025-03-14 04:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 04:43:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-14 04:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 01:44:05 [end_date_ymd] => 2025-03-14 04:44:05 [RateCDR] => 1 ) [2025-03-14 04:44: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-03-14 01:44:05' and `end` < '2025-03-14 04:44: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-03-14 04:44:17] Production.INFO: count ==182 [2025-03-14 04:44:17] Production.ERROR: pbx CDR StartTime 2025-03-14 01:44:05 - End Time 2025-03-14 04:44:05 [2025-03-14 04:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676474', 'tblTempUsageDetail_20' ) start [2025-03-14 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676474', 'tblTempUsageDetail_20' ) end [2025-03-14 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676474', 'tblTempVendorCDR_20' ) start [2025-03-14 04:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676474', 'tblTempVendorCDR_20' ) end [2025-03-14 04:44:17] Production.INFO: ProcessCDR(1,14676474,1,1,2) [2025-03-14 04:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676474,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676474,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676474', 'tblTempUsageDetail_20' ) start [2025-03-14 04:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676474', 'tblTempUsageDetail_20' ) end [2025-03-14 04:44:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 04:44:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 04:44:20] Production.INFO: ==2998== Releasing lock... [2025-03-14 04:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 04:44:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-14 04:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 01:45:05 [end_date_ymd] => 2025-03-14 04:45:05 [RateCDR] => 1 ) [2025-03-14 04:45: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-03-14 01:45:05' and `end` < '2025-03-14 04:45: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-03-14 04:45:17] Production.INFO: count ==180 [2025-03-14 04:45:17] Production.ERROR: pbx CDR StartTime 2025-03-14 01:45:05 - End Time 2025-03-14 04:45:05 [2025-03-14 04:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676479', 'tblTempUsageDetail_20' ) start [2025-03-14 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676479', 'tblTempUsageDetail_20' ) end [2025-03-14 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676479', 'tblTempVendorCDR_20' ) start [2025-03-14 04:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676479', 'tblTempVendorCDR_20' ) end [2025-03-14 04:45:17] Production.INFO: ProcessCDR(1,14676479,1,1,2) [2025-03-14 04:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676479', 'tblTempUsageDetail_20' ) start [2025-03-14 04:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676479', 'tblTempUsageDetail_20' ) end [2025-03-14 04:45:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 04:45:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 04:45:20] Production.INFO: ==3083== Releasing lock... [2025-03-14 04:45:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 04:45:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-14 04:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 01:46:05 [end_date_ymd] => 2025-03-14 04:46:05 [RateCDR] => 1 ) [2025-03-14 04:46: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-03-14 01:46:05' and `end` < '2025-03-14 04:46: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-03-14 04:46:17] Production.INFO: count ==180 [2025-03-14 04:46:17] Production.ERROR: pbx CDR StartTime 2025-03-14 01:46:05 - End Time 2025-03-14 04:46:05 [2025-03-14 04:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 04:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676484', 'tblTempUsageDetail_20' ) start [2025-03-14 04:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676484', 'tblTempUsageDetail_20' ) end [2025-03-14 04:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676484', 'tblTempVendorCDR_20' ) start [2025-03-14 04:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676484', 'tblTempVendorCDR_20' ) end [2025-03-14 04:46:17] Production.INFO: ProcessCDR(1,14676484,1,1,2) [2025-03-14 04:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676484', 'tblTempUsageDetail_20' ) start [2025-03-14 04:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676484', 'tblTempUsageDetail_20' ) end [2025-03-14 04:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 04:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 04:46:21] Production.INFO: ==3203== Releasing lock... [2025-03-14 04:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 04:46:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-14 04:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 01:47:06 [end_date_ymd] => 2025-03-14 04:47:06 [RateCDR] => 1 ) [2025-03-14 04:47: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-03-14 01:47:06' and `end` < '2025-03-14 04:47: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-03-14 04:47:18] Production.INFO: count ==177 [2025-03-14 04:47:18] Production.ERROR: pbx CDR StartTime 2025-03-14 01:47:06 - End Time 2025-03-14 04:47:06 [2025-03-14 04:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676489', 'tblTempUsageDetail_20' ) start [2025-03-14 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676489', 'tblTempUsageDetail_20' ) end [2025-03-14 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676489', 'tblTempVendorCDR_20' ) start [2025-03-14 04:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676489', 'tblTempVendorCDR_20' ) end [2025-03-14 04:47:18] Production.INFO: ProcessCDR(1,14676489,1,1,2) [2025-03-14 04:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676489', 'tblTempUsageDetail_20' ) start [2025-03-14 04:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676489', 'tblTempUsageDetail_20' ) end [2025-03-14 04:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 04:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 04:47:21] Production.INFO: ==3279== Releasing lock... [2025-03-14 04:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 04:47:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-14 04:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 01:48:05 [end_date_ymd] => 2025-03-14 04:48:05 [RateCDR] => 1 ) [2025-03-14 04:48: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-03-14 01:48:05' and `end` < '2025-03-14 04:48: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-03-14 04:48:18] Production.INFO: count ==175 [2025-03-14 04:48:18] Production.ERROR: pbx CDR StartTime 2025-03-14 01:48:05 - End Time 2025-03-14 04:48:05 [2025-03-14 04:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676494', 'tblTempUsageDetail_20' ) start [2025-03-14 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676494', 'tblTempUsageDetail_20' ) end [2025-03-14 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676494', 'tblTempVendorCDR_20' ) start [2025-03-14 04:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676494', 'tblTempVendorCDR_20' ) end [2025-03-14 04:48:18] Production.INFO: ProcessCDR(1,14676494,1,1,2) [2025-03-14 04:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676494', 'tblTempUsageDetail_20' ) start [2025-03-14 04:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676494', 'tblTempUsageDetail_20' ) end [2025-03-14 04:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 04:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 04:48:21] Production.INFO: ==3355== Releasing lock... [2025-03-14 04:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 04:48:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-14 04:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 01:49:05 [end_date_ymd] => 2025-03-14 04:49:05 [RateCDR] => 1 ) [2025-03-14 04:49: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-03-14 01:49:05' and `end` < '2025-03-14 04:49: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-03-14 04:49:18] Production.INFO: count ==175 [2025-03-14 04:49:18] Production.ERROR: pbx CDR StartTime 2025-03-14 01:49:05 - End Time 2025-03-14 04:49:05 [2025-03-14 04:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676499', 'tblTempUsageDetail_20' ) start [2025-03-14 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676499', 'tblTempUsageDetail_20' ) end [2025-03-14 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676499', 'tblTempVendorCDR_20' ) start [2025-03-14 04:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676499', 'tblTempVendorCDR_20' ) end [2025-03-14 04:49:18] Production.INFO: ProcessCDR(1,14676499,1,1,2) [2025-03-14 04:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676499', 'tblTempUsageDetail_20' ) start [2025-03-14 04:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676499', 'tblTempUsageDetail_20' ) end [2025-03-14 04:49:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 04:49:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 04:49:22] Production.INFO: ==3434== Releasing lock... [2025-03-14 04:49:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 04:49:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-14 04:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 01:50:06 [end_date_ymd] => 2025-03-14 04:50:06 [RateCDR] => 1 ) [2025-03-14 04:50: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-03-14 01:50:06' and `end` < '2025-03-14 04:50: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-03-14 04:50:18] Production.INFO: count ==166 [2025-03-14 04:50:18] Production.ERROR: pbx CDR StartTime 2025-03-14 01:50:06 - End Time 2025-03-14 04:50:06 [2025-03-14 04:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 04:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676505', 'tblTempUsageDetail_20' ) start [2025-03-14 04:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676505', 'tblTempUsageDetail_20' ) end [2025-03-14 04:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676505', 'tblTempVendorCDR_20' ) start [2025-03-14 04:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676505', 'tblTempVendorCDR_20' ) end [2025-03-14 04:50:18] Production.INFO: ProcessCDR(1,14676505,1,1,2) [2025-03-14 04:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676505,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676505,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676505', 'tblTempUsageDetail_20' ) start [2025-03-14 04:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676505', 'tblTempUsageDetail_20' ) end [2025-03-14 04:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 04:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 04:50:22] Production.INFO: ==3514== Releasing lock... [2025-03-14 04:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 04:50:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-14 04:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 01:51:05 [end_date_ymd] => 2025-03-14 04:51:05 [RateCDR] => 1 ) [2025-03-14 04:51: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-03-14 01:51:05' and `end` < '2025-03-14 04:51: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-03-14 04:51:18] Production.INFO: count ==166 [2025-03-14 04:51:18] Production.ERROR: pbx CDR StartTime 2025-03-14 01:51:05 - End Time 2025-03-14 04:51:05 [2025-03-14 04:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676510', 'tblTempUsageDetail_20' ) start [2025-03-14 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676510', 'tblTempUsageDetail_20' ) end [2025-03-14 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676510', 'tblTempVendorCDR_20' ) start [2025-03-14 04:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676510', 'tblTempVendorCDR_20' ) end [2025-03-14 04:51:18] Production.INFO: ProcessCDR(1,14676510,1,1,2) [2025-03-14 04:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676510,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676510,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676510', 'tblTempUsageDetail_20' ) start [2025-03-14 04:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676510', 'tblTempUsageDetail_20' ) end [2025-03-14 04:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 04:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 04:51:21] Production.INFO: ==3595== Releasing lock... [2025-03-14 04:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 04:51:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-14 04:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 01:52:05 [end_date_ymd] => 2025-03-14 04:52:05 [RateCDR] => 1 ) [2025-03-14 04:52: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-03-14 01:52:05' and `end` < '2025-03-14 04:52: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-03-14 04:52:19] Production.INFO: count ==162 [2025-03-14 04:52:19] Production.ERROR: pbx CDR StartTime 2025-03-14 01:52:05 - End Time 2025-03-14 04:52:05 [2025-03-14 04:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676515', 'tblTempUsageDetail_20' ) start [2025-03-14 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676515', 'tblTempUsageDetail_20' ) end [2025-03-14 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676515', 'tblTempVendorCDR_20' ) start [2025-03-14 04:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676515', 'tblTempVendorCDR_20' ) end [2025-03-14 04:52:19] Production.INFO: ProcessCDR(1,14676515,1,1,2) [2025-03-14 04:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676515,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676515,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676515', 'tblTempUsageDetail_20' ) start [2025-03-14 04:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676515', 'tblTempUsageDetail_20' ) end [2025-03-14 04:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 04:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 04:52:22] Production.INFO: ==3673== Releasing lock... [2025-03-14 04:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 04:52:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 04:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 01:53:06 [end_date_ymd] => 2025-03-14 04:53:06 [RateCDR] => 1 ) [2025-03-14 04:53: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-03-14 01:53:06' and `end` < '2025-03-14 04:53: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-03-14 04:53:18] Production.INFO: count ==162 [2025-03-14 04:53:18] Production.ERROR: pbx CDR StartTime 2025-03-14 01:53:06 - End Time 2025-03-14 04:53:06 [2025-03-14 04:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676520', 'tblTempUsageDetail_20' ) start [2025-03-14 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676520', 'tblTempUsageDetail_20' ) end [2025-03-14 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676520', 'tblTempVendorCDR_20' ) start [2025-03-14 04:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676520', 'tblTempVendorCDR_20' ) end [2025-03-14 04:53:18] Production.INFO: ProcessCDR(1,14676520,1,1,2) [2025-03-14 04:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676520,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676520,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676520', 'tblTempUsageDetail_20' ) start [2025-03-14 04:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676520', 'tblTempUsageDetail_20' ) end [2025-03-14 04:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 04:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 04:53:21] Production.INFO: ==3773== Releasing lock... [2025-03-14 04:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 04:53:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 04:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 01:54:05 [end_date_ymd] => 2025-03-14 04:54:05 [RateCDR] => 1 ) [2025-03-14 04:54: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-03-14 01:54:05' and `end` < '2025-03-14 04:54: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-03-14 04:54:19] Production.INFO: count ==162 [2025-03-14 04:54:19] Production.ERROR: pbx CDR StartTime 2025-03-14 01:54:05 - End Time 2025-03-14 04:54:05 [2025-03-14 04:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676525', 'tblTempUsageDetail_20' ) start [2025-03-14 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676525', 'tblTempUsageDetail_20' ) end [2025-03-14 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676525', 'tblTempVendorCDR_20' ) start [2025-03-14 04:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676525', 'tblTempVendorCDR_20' ) end [2025-03-14 04:54:19] Production.INFO: ProcessCDR(1,14676525,1,1,2) [2025-03-14 04:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676525,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676525,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676525', 'tblTempUsageDetail_20' ) start [2025-03-14 04:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676525', 'tblTempUsageDetail_20' ) end [2025-03-14 04:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 04:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 04:54:22] Production.INFO: ==3850== Releasing lock... [2025-03-14 04:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 04:54:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 04:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 01:55:06 [end_date_ymd] => 2025-03-14 04:55:06 [RateCDR] => 1 ) [2025-03-14 04:55: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-03-14 01:55:06' and `end` < '2025-03-14 04:55: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-03-14 04:55:18] Production.INFO: count ==162 [2025-03-14 04:55:18] Production.ERROR: pbx CDR StartTime 2025-03-14 01:55:06 - End Time 2025-03-14 04:55:06 [2025-03-14 04:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676530', 'tblTempUsageDetail_20' ) start [2025-03-14 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676530', 'tblTempUsageDetail_20' ) end [2025-03-14 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676530', 'tblTempVendorCDR_20' ) start [2025-03-14 04:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676530', 'tblTempVendorCDR_20' ) end [2025-03-14 04:55:18] Production.INFO: ProcessCDR(1,14676530,1,1,2) [2025-03-14 04:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676530', 'tblTempUsageDetail_20' ) start [2025-03-14 04:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676530', 'tblTempUsageDetail_20' ) end [2025-03-14 04:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 04:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 04:55:22] Production.INFO: ==3926== Releasing lock... [2025-03-14 04:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 04:55:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 04:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 01:56:06 [end_date_ymd] => 2025-03-14 04:56:06 [RateCDR] => 1 ) [2025-03-14 04:56: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-03-14 01:56:06' and `end` < '2025-03-14 04:56: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-03-14 04:56:18] Production.INFO: count ==162 [2025-03-14 04:56:18] Production.ERROR: pbx CDR StartTime 2025-03-14 01:56:06 - End Time 2025-03-14 04:56:06 [2025-03-14 04:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676535', 'tblTempUsageDetail_20' ) start [2025-03-14 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676535', 'tblTempUsageDetail_20' ) end [2025-03-14 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676535', 'tblTempVendorCDR_20' ) start [2025-03-14 04:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676535', 'tblTempVendorCDR_20' ) end [2025-03-14 04:56:18] Production.INFO: ProcessCDR(1,14676535,1,1,2) [2025-03-14 04:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676535', 'tblTempUsageDetail_20' ) start [2025-03-14 04:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676535', 'tblTempUsageDetail_20' ) end [2025-03-14 04:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 04:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 04:56:21] Production.INFO: ==4005== Releasing lock... [2025-03-14 04:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 04:56:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 04:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 01:57:05 [end_date_ymd] => 2025-03-14 04:57:05 [RateCDR] => 1 ) [2025-03-14 04:57: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-03-14 01:57:05' and `end` < '2025-03-14 04:57: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-03-14 04:57:18] Production.INFO: count ==162 [2025-03-14 04:57:18] Production.ERROR: pbx CDR StartTime 2025-03-14 01:57:05 - End Time 2025-03-14 04:57:05 [2025-03-14 04:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676540', 'tblTempUsageDetail_20' ) start [2025-03-14 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676540', 'tblTempUsageDetail_20' ) end [2025-03-14 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676540', 'tblTempVendorCDR_20' ) start [2025-03-14 04:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676540', 'tblTempVendorCDR_20' ) end [2025-03-14 04:57:18] Production.INFO: ProcessCDR(1,14676540,1,1,2) [2025-03-14 04:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676540', 'tblTempUsageDetail_20' ) start [2025-03-14 04:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676540', 'tblTempUsageDetail_20' ) end [2025-03-14 04:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 04:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 04:57:21] Production.INFO: ==4084== Releasing lock... [2025-03-14 04:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 04:57:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 04:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 01:58:05 [end_date_ymd] => 2025-03-14 04:58:05 [RateCDR] => 1 ) [2025-03-14 04:58: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-03-14 01:58:05' and `end` < '2025-03-14 04:58: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-03-14 04:58:18] Production.INFO: count ==162 [2025-03-14 04:58:18] Production.ERROR: pbx CDR StartTime 2025-03-14 01:58:05 - End Time 2025-03-14 04:58:05 [2025-03-14 04:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676545', 'tblTempUsageDetail_20' ) start [2025-03-14 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676545', 'tblTempUsageDetail_20' ) end [2025-03-14 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676545', 'tblTempVendorCDR_20' ) start [2025-03-14 04:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676545', 'tblTempVendorCDR_20' ) end [2025-03-14 04:58:18] Production.INFO: ProcessCDR(1,14676545,1,1,2) [2025-03-14 04:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676545', 'tblTempUsageDetail_20' ) start [2025-03-14 04:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676545', 'tblTempUsageDetail_20' ) end [2025-03-14 04:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 04:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 04:58:22] Production.INFO: ==4161== Releasing lock... [2025-03-14 04:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 04:58:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 04:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 01:59:05 [end_date_ymd] => 2025-03-14 04:59:05 [RateCDR] => 1 ) [2025-03-14 04:59: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-03-14 01:59:05' and `end` < '2025-03-14 04:59: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-03-14 04:59:18] Production.INFO: count ==162 [2025-03-14 04:59:18] Production.ERROR: pbx CDR StartTime 2025-03-14 01:59:05 - End Time 2025-03-14 04:59:05 [2025-03-14 04:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676550', 'tblTempUsageDetail_20' ) start [2025-03-14 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676550', 'tblTempUsageDetail_20' ) end [2025-03-14 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676550', 'tblTempVendorCDR_20' ) start [2025-03-14 04:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676550', 'tblTempVendorCDR_20' ) end [2025-03-14 04:59:18] Production.INFO: ProcessCDR(1,14676550,1,1,2) [2025-03-14 04:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 04:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 04:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676550', 'tblTempUsageDetail_20' ) start [2025-03-14 04:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676550', 'tblTempUsageDetail_20' ) end [2025-03-14 04:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 04:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 04:59:21] Production.INFO: ==4245== Releasing lock... [2025-03-14 04:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 04:59:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 05:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 02:00:05 [end_date_ymd] => 2025-03-14 05:00:05 [RateCDR] => 1 ) [2025-03-14 05:00: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-03-14 02:00:05' and `end` < '2025-03-14 05:00: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-03-14 05:00:18] Production.INFO: count ==152 [2025-03-14 05:00:18] Production.ERROR: pbx CDR StartTime 2025-03-14 02:00:05 - End Time 2025-03-14 05:00:05 [2025-03-14 05:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676555', 'tblTempUsageDetail_20' ) start [2025-03-14 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676555', 'tblTempUsageDetail_20' ) end [2025-03-14 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676555', 'tblTempVendorCDR_20' ) start [2025-03-14 05:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676555', 'tblTempVendorCDR_20' ) end [2025-03-14 05:00:18] Production.INFO: ProcessCDR(1,14676555,1,1,2) [2025-03-14 05:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676555', 'tblTempUsageDetail_20' ) start [2025-03-14 05:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676555', 'tblTempUsageDetail_20' ) end [2025-03-14 05:00:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 05:00:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 05:00:21] Production.INFO: ==4319== Releasing lock... [2025-03-14 05:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 05:00:21] Production.INFO: 29 MB #Memory Used# [2025-03-14 05:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 02:01:05 [end_date_ymd] => 2025-03-14 05:01:05 [RateCDR] => 1 ) [2025-03-14 05:01: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-03-14 02:01:05' and `end` < '2025-03-14 05:01: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-03-14 05:01:19] Production.INFO: count ==142 [2025-03-14 05:01:19] Production.ERROR: pbx CDR StartTime 2025-03-14 02:01:05 - End Time 2025-03-14 05:01:05 [2025-03-14 05:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676561', 'tblTempUsageDetail_20' ) start [2025-03-14 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676561', 'tblTempUsageDetail_20' ) end [2025-03-14 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676561', 'tblTempVendorCDR_20' ) start [2025-03-14 05:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676561', 'tblTempVendorCDR_20' ) end [2025-03-14 05:01:19] Production.INFO: ProcessCDR(1,14676561,1,1,2) [2025-03-14 05:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676561,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676561,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676561', 'tblTempUsageDetail_20' ) start [2025-03-14 05:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676561', 'tblTempUsageDetail_20' ) end [2025-03-14 05:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 05:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 05:01:23] Production.INFO: ==4445== Releasing lock... [2025-03-14 05:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 05:01:23] Production.INFO: 29 MB #Memory Used# [2025-03-14 05:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 02:02:05 [end_date_ymd] => 2025-03-14 05:02:05 [RateCDR] => 1 ) [2025-03-14 05:02: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-03-14 02:02:05' and `end` < '2025-03-14 05:02: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-03-14 05:02:18] Production.INFO: count ==142 [2025-03-14 05:02:18] Production.ERROR: pbx CDR StartTime 2025-03-14 02:02:05 - End Time 2025-03-14 05:02:05 [2025-03-14 05:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676566', 'tblTempUsageDetail_20' ) start [2025-03-14 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676566', 'tblTempUsageDetail_20' ) end [2025-03-14 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676566', 'tblTempVendorCDR_20' ) start [2025-03-14 05:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676566', 'tblTempVendorCDR_20' ) end [2025-03-14 05:02:18] Production.INFO: ProcessCDR(1,14676566,1,1,2) [2025-03-14 05:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676566,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:02:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676566,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676566', 'tblTempUsageDetail_20' ) start [2025-03-14 05:02:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676566', 'tblTempUsageDetail_20' ) end [2025-03-14 05:02:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 05:02:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 05:02:21] Production.INFO: ==4519== Releasing lock... [2025-03-14 05:02:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 05:02:21] Production.INFO: 29 MB #Memory Used# [2025-03-14 05:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 02:03:06 [end_date_ymd] => 2025-03-14 05:03:06 [RateCDR] => 1 ) [2025-03-14 05:03: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-03-14 02:03:06' and `end` < '2025-03-14 05:03: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-03-14 05:03:18] Production.INFO: count ==142 [2025-03-14 05:03:18] Production.ERROR: pbx CDR StartTime 2025-03-14 02:03:06 - End Time 2025-03-14 05:03:06 [2025-03-14 05:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676571', 'tblTempUsageDetail_20' ) start [2025-03-14 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676571', 'tblTempUsageDetail_20' ) end [2025-03-14 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676571', 'tblTempVendorCDR_20' ) start [2025-03-14 05:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676571', 'tblTempVendorCDR_20' ) end [2025-03-14 05:03:18] Production.INFO: ProcessCDR(1,14676571,1,1,2) [2025-03-14 05:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676571,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676571,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676571', 'tblTempUsageDetail_20' ) start [2025-03-14 05:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676571', 'tblTempUsageDetail_20' ) end [2025-03-14 05:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 05:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 05:03:21] Production.INFO: ==4600== Releasing lock... [2025-03-14 05:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 05:03:21] Production.INFO: 29 MB #Memory Used# [2025-03-14 05:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 02:04:05 [end_date_ymd] => 2025-03-14 05:04:05 [RateCDR] => 1 ) [2025-03-14 05:04: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-03-14 02:04:05' and `end` < '2025-03-14 05:04: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-03-14 05:04:17] Production.INFO: count ==146 [2025-03-14 05:04:17] Production.ERROR: pbx CDR StartTime 2025-03-14 02:04:05 - End Time 2025-03-14 05:04:05 [2025-03-14 05:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676576', 'tblTempUsageDetail_20' ) start [2025-03-14 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676576', 'tblTempUsageDetail_20' ) end [2025-03-14 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676576', 'tblTempVendorCDR_20' ) start [2025-03-14 05:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676576', 'tblTempVendorCDR_20' ) end [2025-03-14 05:04:17] Production.INFO: ProcessCDR(1,14676576,1,1,2) [2025-03-14 05:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:04:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:04:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:04:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676576', 'tblTempUsageDetail_20' ) start [2025-03-14 05:04:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676576', 'tblTempUsageDetail_20' ) end [2025-03-14 05:04:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 05:04:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 05:04:20] Production.INFO: ==4675== Releasing lock... [2025-03-14 05:04:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 05:04:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 05:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 02:05:05 [end_date_ymd] => 2025-03-14 05:05:05 [RateCDR] => 1 ) [2025-03-14 05:05: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-03-14 02:05:05' and `end` < '2025-03-14 05:05: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-03-14 05:05:17] Production.INFO: count ==145 [2025-03-14 05:05:17] Production.ERROR: pbx CDR StartTime 2025-03-14 02:05:05 - End Time 2025-03-14 05:05:05 [2025-03-14 05:05:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676581', 'tblTempUsageDetail_20' ) start [2025-03-14 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676581', 'tblTempUsageDetail_20' ) end [2025-03-14 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676581', 'tblTempVendorCDR_20' ) start [2025-03-14 05:05:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676581', 'tblTempVendorCDR_20' ) end [2025-03-14 05:05:17] Production.INFO: ProcessCDR(1,14676581,1,1,2) [2025-03-14 05:05:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:05:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:05:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676581', 'tblTempUsageDetail_20' ) start [2025-03-14 05:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676581', 'tblTempUsageDetail_20' ) end [2025-03-14 05:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 05:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 05:05:21] Production.INFO: ==4748== Releasing lock... [2025-03-14 05:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 05:05:21] Production.INFO: 29 MB #Memory Used# [2025-03-14 05:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 02:06:05 [end_date_ymd] => 2025-03-14 05:06:05 [RateCDR] => 1 ) [2025-03-14 05:06: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-03-14 02:06:05' and `end` < '2025-03-14 05:06: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-03-14 05:06:17] Production.INFO: count ==145 [2025-03-14 05:06:17] Production.ERROR: pbx CDR StartTime 2025-03-14 02:06:05 - End Time 2025-03-14 05:06:05 [2025-03-14 05:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 05:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676586', 'tblTempUsageDetail_20' ) start [2025-03-14 05:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676586', 'tblTempUsageDetail_20' ) end [2025-03-14 05:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676586', 'tblTempVendorCDR_20' ) start [2025-03-14 05:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676586', 'tblTempVendorCDR_20' ) end [2025-03-14 05:06:17] Production.INFO: ProcessCDR(1,14676586,1,1,2) [2025-03-14 05:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676586', 'tblTempUsageDetail_20' ) start [2025-03-14 05:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676586', 'tblTempUsageDetail_20' ) end [2025-03-14 05:06:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 05:06:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 05:06:20] Production.INFO: ==4819== Releasing lock... [2025-03-14 05:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 05:06:20] Production.INFO: 29 MB #Memory Used# [2025-03-14 05:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 02:07:05 [end_date_ymd] => 2025-03-14 05:07:05 [RateCDR] => 1 ) [2025-03-14 05:07: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-03-14 02:07:05' and `end` < '2025-03-14 05:07: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-03-14 05:07:18] Production.INFO: count ==145 [2025-03-14 05:07:18] Production.ERROR: pbx CDR StartTime 2025-03-14 02:07:05 - End Time 2025-03-14 05:07:05 [2025-03-14 05:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676591', 'tblTempUsageDetail_20' ) start [2025-03-14 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676591', 'tblTempUsageDetail_20' ) end [2025-03-14 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676591', 'tblTempVendorCDR_20' ) start [2025-03-14 05:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676591', 'tblTempVendorCDR_20' ) end [2025-03-14 05:07:18] Production.INFO: ProcessCDR(1,14676591,1,1,2) [2025-03-14 05:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676591', 'tblTempUsageDetail_20' ) start [2025-03-14 05:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676591', 'tblTempUsageDetail_20' ) end [2025-03-14 05:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 05:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 05:07:21] Production.INFO: ==4894== Releasing lock... [2025-03-14 05:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 05:07:21] Production.INFO: 29 MB #Memory Used# [2025-03-14 05:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 02:08:06 [end_date_ymd] => 2025-03-14 05:08:06 [RateCDR] => 1 ) [2025-03-14 05:08: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-03-14 02:08:06' and `end` < '2025-03-14 05:08: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-03-14 05:08:18] Production.INFO: count ==145 [2025-03-14 05:08:18] Production.ERROR: pbx CDR StartTime 2025-03-14 02:08:06 - End Time 2025-03-14 05:08:06 [2025-03-14 05:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676596', 'tblTempUsageDetail_20' ) start [2025-03-14 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676596', 'tblTempUsageDetail_20' ) end [2025-03-14 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676596', 'tblTempVendorCDR_20' ) start [2025-03-14 05:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676596', 'tblTempVendorCDR_20' ) end [2025-03-14 05:08:18] Production.INFO: ProcessCDR(1,14676596,1,1,2) [2025-03-14 05:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676596', 'tblTempUsageDetail_20' ) start [2025-03-14 05:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676596', 'tblTempUsageDetail_20' ) end [2025-03-14 05:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 05:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 05:08:21] Production.INFO: ==4968== Releasing lock... [2025-03-14 05:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 05:08:21] Production.INFO: 29 MB #Memory Used# [2025-03-14 05:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 02:09:05 [end_date_ymd] => 2025-03-14 05:09:05 [RateCDR] => 1 ) [2025-03-14 05:09: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-03-14 02:09:05' and `end` < '2025-03-14 05:09: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-03-14 05:09:17] Production.INFO: count ==145 [2025-03-14 05:09:17] Production.ERROR: pbx CDR StartTime 2025-03-14 02:09:05 - End Time 2025-03-14 05:09:05 [2025-03-14 05:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676601', 'tblTempUsageDetail_20' ) start [2025-03-14 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676601', 'tblTempUsageDetail_20' ) end [2025-03-14 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676601', 'tblTempVendorCDR_20' ) start [2025-03-14 05:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676601', 'tblTempVendorCDR_20' ) end [2025-03-14 05:09:17] Production.INFO: ProcessCDR(1,14676601,1,1,2) [2025-03-14 05:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676601', 'tblTempUsageDetail_20' ) start [2025-03-14 05:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676601', 'tblTempUsageDetail_20' ) end [2025-03-14 05:09:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 05:09:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 05:09:20] Production.INFO: ==5037== Releasing lock... [2025-03-14 05:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 05:09:20] Production.INFO: 29 MB #Memory Used# [2025-03-14 05:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 02:10:06 [end_date_ymd] => 2025-03-14 05:10:06 [RateCDR] => 1 ) [2025-03-14 05:10: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-03-14 02:10:06' and `end` < '2025-03-14 05:10: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-03-14 05:10:18] Production.INFO: count ==137 [2025-03-14 05:10:18] Production.ERROR: pbx CDR StartTime 2025-03-14 02:10:06 - End Time 2025-03-14 05:10:06 [2025-03-14 05:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676607', 'tblTempUsageDetail_20' ) start [2025-03-14 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676607', 'tblTempUsageDetail_20' ) end [2025-03-14 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676607', 'tblTempVendorCDR_20' ) start [2025-03-14 05:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676607', 'tblTempVendorCDR_20' ) end [2025-03-14 05:10:18] Production.INFO: ProcessCDR(1,14676607,1,1,2) [2025-03-14 05:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676607,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676607,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676607', 'tblTempUsageDetail_20' ) start [2025-03-14 05:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676607', 'tblTempUsageDetail_20' ) end [2025-03-14 05:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 05:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 05:10:22] Production.INFO: ==5117== Releasing lock... [2025-03-14 05:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 05:10:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 05:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 02:11:05 [end_date_ymd] => 2025-03-14 05:11:05 [RateCDR] => 1 ) [2025-03-14 05:11: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-03-14 02:11:05' and `end` < '2025-03-14 05:11: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-03-14 05:11:17] Production.INFO: count ==139 [2025-03-14 05:11:17] Production.ERROR: pbx CDR StartTime 2025-03-14 02:11:05 - End Time 2025-03-14 05:11:05 [2025-03-14 05:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676612', 'tblTempUsageDetail_20' ) start [2025-03-14 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676612', 'tblTempUsageDetail_20' ) end [2025-03-14 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676612', 'tblTempVendorCDR_20' ) start [2025-03-14 05:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676612', 'tblTempVendorCDR_20' ) end [2025-03-14 05:11:17] Production.INFO: ProcessCDR(1,14676612,1,1,2) [2025-03-14 05:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676612,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676612,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676612', 'tblTempUsageDetail_20' ) start [2025-03-14 05:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676612', 'tblTempUsageDetail_20' ) end [2025-03-14 05:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 05:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 05:11:21] Production.INFO: ==5195== Releasing lock... [2025-03-14 05:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 05:11:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 05:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 02:12:05 [end_date_ymd] => 2025-03-14 05:12:05 [RateCDR] => 1 ) [2025-03-14 05:12: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-03-14 02:12:05' and `end` < '2025-03-14 05:12: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-03-14 05:12:17] Production.INFO: count ==135 [2025-03-14 05:12:18] Production.ERROR: pbx CDR StartTime 2025-03-14 02:12:05 - End Time 2025-03-14 05:12:05 [2025-03-14 05:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676617', 'tblTempUsageDetail_20' ) start [2025-03-14 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676617', 'tblTempUsageDetail_20' ) end [2025-03-14 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676617', 'tblTempVendorCDR_20' ) start [2025-03-14 05:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676617', 'tblTempVendorCDR_20' ) end [2025-03-14 05:12:18] Production.INFO: ProcessCDR(1,14676617,1,1,2) [2025-03-14 05:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676617,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676617,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676617', 'tblTempUsageDetail_20' ) start [2025-03-14 05:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676617', 'tblTempUsageDetail_20' ) end [2025-03-14 05:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 05:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 05:12:21] Production.INFO: ==5266== Releasing lock... [2025-03-14 05:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 05:12:21] Production.INFO: 29 MB #Memory Used# [2025-03-14 05:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 02:13:05 [end_date_ymd] => 2025-03-14 05:13:05 [RateCDR] => 1 ) [2025-03-14 05:13: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-03-14 02:13:05' and `end` < '2025-03-14 05:13: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-03-14 05:13:17] Production.INFO: count ==135 [2025-03-14 05:13:17] Production.ERROR: pbx CDR StartTime 2025-03-14 02:13:05 - End Time 2025-03-14 05:13:05 [2025-03-14 05:13:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676622', 'tblTempUsageDetail_20' ) start [2025-03-14 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676622', 'tblTempUsageDetail_20' ) end [2025-03-14 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676622', 'tblTempVendorCDR_20' ) start [2025-03-14 05:13:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676622', 'tblTempVendorCDR_20' ) end [2025-03-14 05:13:17] Production.INFO: ProcessCDR(1,14676622,1,1,2) [2025-03-14 05:13:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:13:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676622,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:13:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676622,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676622', 'tblTempUsageDetail_20' ) start [2025-03-14 05:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676622', 'tblTempUsageDetail_20' ) end [2025-03-14 05:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 05:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 05:13:21] Production.INFO: ==5341== Releasing lock... [2025-03-14 05:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 05:13:21] Production.INFO: 29 MB #Memory Used# [2025-03-14 05:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 02:14:05 [end_date_ymd] => 2025-03-14 05:14:05 [RateCDR] => 1 ) [2025-03-14 05:14: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-03-14 02:14:05' and `end` < '2025-03-14 05:14: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-03-14 05:14:17] Production.INFO: count ==132 [2025-03-14 05:14:18] Production.ERROR: pbx CDR StartTime 2025-03-14 02:14:05 - End Time 2025-03-14 05:14:05 [2025-03-14 05:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676627', 'tblTempUsageDetail_20' ) start [2025-03-14 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676627', 'tblTempUsageDetail_20' ) end [2025-03-14 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676627', 'tblTempVendorCDR_20' ) start [2025-03-14 05:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676627', 'tblTempVendorCDR_20' ) end [2025-03-14 05:14:18] Production.INFO: ProcessCDR(1,14676627,1,1,2) [2025-03-14 05:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:14:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:14:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676627', 'tblTempUsageDetail_20' ) start [2025-03-14 05:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676627', 'tblTempUsageDetail_20' ) end [2025-03-14 05:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 05:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 05:14:21] Production.INFO: ==5413== Releasing lock... [2025-03-14 05:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 05:14:21] Production.INFO: 29 MB #Memory Used# [2025-03-14 05:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 02:15:05 [end_date_ymd] => 2025-03-14 05:15:05 [RateCDR] => 1 ) [2025-03-14 05:15: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-03-14 02:15:05' and `end` < '2025-03-14 05:15: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-03-14 05:15:17] Production.INFO: count ==130 [2025-03-14 05:15:17] Production.ERROR: pbx CDR StartTime 2025-03-14 02:15:05 - End Time 2025-03-14 05:15:05 [2025-03-14 05:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676632', 'tblTempUsageDetail_20' ) start [2025-03-14 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676632', 'tblTempUsageDetail_20' ) end [2025-03-14 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676632', 'tblTempVendorCDR_20' ) start [2025-03-14 05:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676632', 'tblTempVendorCDR_20' ) end [2025-03-14 05:15:17] Production.INFO: ProcessCDR(1,14676632,1,1,2) [2025-03-14 05:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676632', 'tblTempUsageDetail_20' ) start [2025-03-14 05:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676632', 'tblTempUsageDetail_20' ) end [2025-03-14 05:15:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 05:15:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 05:15:20] Production.INFO: ==5486== Releasing lock... [2025-03-14 05:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 05:15:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 05:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 02:16:06 [end_date_ymd] => 2025-03-14 05:16:06 [RateCDR] => 1 ) [2025-03-14 05:16: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-03-14 02:16:06' and `end` < '2025-03-14 05:16: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-03-14 05:16:18] Production.INFO: count ==130 [2025-03-14 05:16:18] Production.ERROR: pbx CDR StartTime 2025-03-14 02:16:06 - End Time 2025-03-14 05:16:06 [2025-03-14 05:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676637', 'tblTempUsageDetail_20' ) start [2025-03-14 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676637', 'tblTempUsageDetail_20' ) end [2025-03-14 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676637', 'tblTempVendorCDR_20' ) start [2025-03-14 05:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676637', 'tblTempVendorCDR_20' ) end [2025-03-14 05:16:18] Production.INFO: ProcessCDR(1,14676637,1,1,2) [2025-03-14 05:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676637', 'tblTempUsageDetail_20' ) start [2025-03-14 05:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676637', 'tblTempUsageDetail_20' ) end [2025-03-14 05:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 05:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 05:16:21] Production.INFO: ==5562== Releasing lock... [2025-03-14 05:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 05:16:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 05:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 02:17:05 [end_date_ymd] => 2025-03-14 05:17:05 [RateCDR] => 1 ) [2025-03-14 05:17: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-03-14 02:17:05' and `end` < '2025-03-14 05:17: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-03-14 05:17:17] Production.INFO: count ==127 [2025-03-14 05:17:17] Production.ERROR: pbx CDR StartTime 2025-03-14 02:17:05 - End Time 2025-03-14 05:17:05 [2025-03-14 05:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676642', 'tblTempUsageDetail_20' ) start [2025-03-14 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676642', 'tblTempUsageDetail_20' ) end [2025-03-14 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676642', 'tblTempVendorCDR_20' ) start [2025-03-14 05:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676642', 'tblTempVendorCDR_20' ) end [2025-03-14 05:17:17] Production.INFO: ProcessCDR(1,14676642,1,1,2) [2025-03-14 05:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676642', 'tblTempUsageDetail_20' ) start [2025-03-14 05:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676642', 'tblTempUsageDetail_20' ) end [2025-03-14 05:17:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 05:17:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 05:17:20] Production.INFO: ==5679== Releasing lock... [2025-03-14 05:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 05:17:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 05:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 02:18:05 [end_date_ymd] => 2025-03-14 05:18:05 [RateCDR] => 1 ) [2025-03-14 05:18: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-03-14 02:18:05' and `end` < '2025-03-14 05:18: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-03-14 05:18:18] Production.INFO: count ==127 [2025-03-14 05:18:18] Production.ERROR: pbx CDR StartTime 2025-03-14 02:18:05 - End Time 2025-03-14 05:18:05 [2025-03-14 05:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676647', 'tblTempUsageDetail_20' ) start [2025-03-14 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676647', 'tblTempUsageDetail_20' ) end [2025-03-14 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676647', 'tblTempVendorCDR_20' ) start [2025-03-14 05:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676647', 'tblTempVendorCDR_20' ) end [2025-03-14 05:18:18] Production.INFO: ProcessCDR(1,14676647,1,1,2) [2025-03-14 05:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676647', 'tblTempUsageDetail_20' ) start [2025-03-14 05:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676647', 'tblTempUsageDetail_20' ) end [2025-03-14 05:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 05:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 05:18:21] Production.INFO: ==5765== Releasing lock... [2025-03-14 05:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 05:18:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 05:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 02:19:05 [end_date_ymd] => 2025-03-14 05:19:05 [RateCDR] => 1 ) [2025-03-14 05:19: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-03-14 02:19:05' and `end` < '2025-03-14 05:19: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-03-14 05:19:17] Production.INFO: count ==127 [2025-03-14 05:19:17] Production.ERROR: pbx CDR StartTime 2025-03-14 02:19:05 - End Time 2025-03-14 05:19:05 [2025-03-14 05:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676652', 'tblTempUsageDetail_20' ) start [2025-03-14 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676652', 'tblTempUsageDetail_20' ) end [2025-03-14 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676652', 'tblTempVendorCDR_20' ) start [2025-03-14 05:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676652', 'tblTempVendorCDR_20' ) end [2025-03-14 05:19:17] Production.INFO: ProcessCDR(1,14676652,1,1,2) [2025-03-14 05:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:19:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:19:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:19:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676652', 'tblTempUsageDetail_20' ) start [2025-03-14 05:19:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676652', 'tblTempUsageDetail_20' ) end [2025-03-14 05:19:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 05:19:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 05:19:20] Production.INFO: ==5840== Releasing lock... [2025-03-14 05:19:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 05:19:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 05:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 02:20:06 [end_date_ymd] => 2025-03-14 05:20:06 [RateCDR] => 1 ) [2025-03-14 05:20: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-03-14 02:20:06' and `end` < '2025-03-14 05:20: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-03-14 05:20:18] Production.INFO: count ==119 [2025-03-14 05:20:18] Production.ERROR: pbx CDR StartTime 2025-03-14 02:20:06 - End Time 2025-03-14 05:20:06 [2025-03-14 05:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676658', 'tblTempUsageDetail_20' ) start [2025-03-14 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676658', 'tblTempUsageDetail_20' ) end [2025-03-14 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676658', 'tblTempVendorCDR_20' ) start [2025-03-14 05:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676658', 'tblTempVendorCDR_20' ) end [2025-03-14 05:20:18] Production.INFO: ProcessCDR(1,14676658,1,1,2) [2025-03-14 05:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676658,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676658,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676658', 'tblTempUsageDetail_20' ) start [2025-03-14 05:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676658', 'tblTempUsageDetail_20' ) end [2025-03-14 05:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 05:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 05:20:21] Production.INFO: ==5916== Releasing lock... [2025-03-14 05:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 05:20:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 05:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 02:21:05 [end_date_ymd] => 2025-03-14 05:21:05 [RateCDR] => 1 ) [2025-03-14 05:21: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-03-14 02:21:05' and `end` < '2025-03-14 05:21: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-03-14 05:21:17] Production.INFO: count ==119 [2025-03-14 05:21:17] Production.ERROR: pbx CDR StartTime 2025-03-14 02:21:05 - End Time 2025-03-14 05:21:05 [2025-03-14 05:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676663', 'tblTempUsageDetail_20' ) start [2025-03-14 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676663', 'tblTempUsageDetail_20' ) end [2025-03-14 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676663', 'tblTempVendorCDR_20' ) start [2025-03-14 05:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676663', 'tblTempVendorCDR_20' ) end [2025-03-14 05:21:17] Production.INFO: ProcessCDR(1,14676663,1,1,2) [2025-03-14 05:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676663,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676663,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676663', 'tblTempUsageDetail_20' ) start [2025-03-14 05:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676663', 'tblTempUsageDetail_20' ) end [2025-03-14 05:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 05:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 05:21:21] Production.INFO: ==5989== Releasing lock... [2025-03-14 05:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 05:21:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 05:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 02:22:06 [end_date_ymd] => 2025-03-14 05:22:06 [RateCDR] => 1 ) [2025-03-14 05:22: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-03-14 02:22:06' and `end` < '2025-03-14 05:22: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-03-14 05:22:18] Production.INFO: count ==119 [2025-03-14 05:22:18] Production.ERROR: pbx CDR StartTime 2025-03-14 02:22:06 - End Time 2025-03-14 05:22:06 [2025-03-14 05:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676668', 'tblTempUsageDetail_20' ) start [2025-03-14 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676668', 'tblTempUsageDetail_20' ) end [2025-03-14 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676668', 'tblTempVendorCDR_20' ) start [2025-03-14 05:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676668', 'tblTempVendorCDR_20' ) end [2025-03-14 05:22:18] Production.INFO: ProcessCDR(1,14676668,1,1,2) [2025-03-14 05:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676668,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676668,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676668', 'tblTempUsageDetail_20' ) start [2025-03-14 05:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676668', 'tblTempUsageDetail_20' ) end [2025-03-14 05:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 05:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 05:22:21] Production.INFO: ==6063== Releasing lock... [2025-03-14 05:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 05:22:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 05:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 02:23:05 [end_date_ymd] => 2025-03-14 05:23:05 [RateCDR] => 1 ) [2025-03-14 05:23: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-03-14 02:23:05' and `end` < '2025-03-14 05:23: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-03-14 05:23:17] Production.INFO: count ==116 [2025-03-14 05:23:17] Production.ERROR: pbx CDR StartTime 2025-03-14 02:23:05 - End Time 2025-03-14 05:23:05 [2025-03-14 05:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676673', 'tblTempUsageDetail_20' ) start [2025-03-14 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676673', 'tblTempUsageDetail_20' ) end [2025-03-14 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676673', 'tblTempVendorCDR_20' ) start [2025-03-14 05:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676673', 'tblTempVendorCDR_20' ) end [2025-03-14 05:23:17] Production.INFO: ProcessCDR(1,14676673,1,1,2) [2025-03-14 05:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676673,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676673,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676673', 'tblTempUsageDetail_20' ) start [2025-03-14 05:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676673', 'tblTempUsageDetail_20' ) end [2025-03-14 05:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 05:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 05:23:21] Production.INFO: ==6136== Releasing lock... [2025-03-14 05:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 05:23:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 05:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 02:24:06 [end_date_ymd] => 2025-03-14 05:24:06 [RateCDR] => 1 ) [2025-03-14 05:24: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-03-14 02:24:06' and `end` < '2025-03-14 05:24: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-03-14 05:24:18] Production.INFO: count ==116 [2025-03-14 05:24:18] Production.ERROR: pbx CDR StartTime 2025-03-14 02:24:06 - End Time 2025-03-14 05:24:06 [2025-03-14 05:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676678', 'tblTempUsageDetail_20' ) start [2025-03-14 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676678', 'tblTempUsageDetail_20' ) end [2025-03-14 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676678', 'tblTempVendorCDR_20' ) start [2025-03-14 05:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676678', 'tblTempVendorCDR_20' ) end [2025-03-14 05:24:18] Production.INFO: ProcessCDR(1,14676678,1,1,2) [2025-03-14 05:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676678', 'tblTempUsageDetail_20' ) start [2025-03-14 05:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676678', 'tblTempUsageDetail_20' ) end [2025-03-14 05:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 05:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 05:24:21] Production.INFO: ==6208== Releasing lock... [2025-03-14 05:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 05:24:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 05:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 02:25:05 [end_date_ymd] => 2025-03-14 05:25:05 [RateCDR] => 1 ) [2025-03-14 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-03-14 02:25:05' and `end` < '2025-03-14 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-03-14 05:25:17] Production.INFO: count ==115 [2025-03-14 05:25:17] Production.ERROR: pbx CDR StartTime 2025-03-14 02:25:05 - End Time 2025-03-14 05:25:05 [2025-03-14 05:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676683', 'tblTempUsageDetail_20' ) start [2025-03-14 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676683', 'tblTempUsageDetail_20' ) end [2025-03-14 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676683', 'tblTempVendorCDR_20' ) start [2025-03-14 05:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676683', 'tblTempVendorCDR_20' ) end [2025-03-14 05:25:17] Production.INFO: ProcessCDR(1,14676683,1,1,2) [2025-03-14 05:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676683', 'tblTempUsageDetail_20' ) start [2025-03-14 05:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676683', 'tblTempUsageDetail_20' ) end [2025-03-14 05:25:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 05:25:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 05:25:20] Production.INFO: ==6281== Releasing lock... [2025-03-14 05:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 05:25:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 05:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 02:26:05 [end_date_ymd] => 2025-03-14 05:26:05 [RateCDR] => 1 ) [2025-03-14 05:26: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-03-14 02:26:05' and `end` < '2025-03-14 05:26: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-03-14 05:26:17] Production.INFO: count ==115 [2025-03-14 05:26:17] Production.ERROR: pbx CDR StartTime 2025-03-14 02:26:05 - End Time 2025-03-14 05:26:05 [2025-03-14 05:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676688', 'tblTempUsageDetail_20' ) start [2025-03-14 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676688', 'tblTempUsageDetail_20' ) end [2025-03-14 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676688', 'tblTempVendorCDR_20' ) start [2025-03-14 05:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676688', 'tblTempVendorCDR_20' ) end [2025-03-14 05:26:17] Production.INFO: ProcessCDR(1,14676688,1,1,2) [2025-03-14 05:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676688', 'tblTempUsageDetail_20' ) start [2025-03-14 05:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676688', 'tblTempUsageDetail_20' ) end [2025-03-14 05:26:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 05:26:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 05:26:20] Production.INFO: ==6364== Releasing lock... [2025-03-14 05:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 05:26:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 05:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 02:27:06 [end_date_ymd] => 2025-03-14 05:27:06 [RateCDR] => 1 ) [2025-03-14 05:27: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-03-14 02:27:06' and `end` < '2025-03-14 05:27: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-03-14 05:27:18] Production.INFO: count ==115 [2025-03-14 05:27:18] Production.ERROR: pbx CDR StartTime 2025-03-14 02:27:06 - End Time 2025-03-14 05:27:06 [2025-03-14 05:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676693', 'tblTempUsageDetail_20' ) start [2025-03-14 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676693', 'tblTempUsageDetail_20' ) end [2025-03-14 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676693', 'tblTempVendorCDR_20' ) start [2025-03-14 05:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676693', 'tblTempVendorCDR_20' ) end [2025-03-14 05:27:18] Production.INFO: ProcessCDR(1,14676693,1,1,2) [2025-03-14 05:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676693', 'tblTempUsageDetail_20' ) start [2025-03-14 05:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676693', 'tblTempUsageDetail_20' ) end [2025-03-14 05:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 05:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 05:27:21] Production.INFO: ==6439== Releasing lock... [2025-03-14 05:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 05:27:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 05:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 02:28:05 [end_date_ymd] => 2025-03-14 05:28:05 [RateCDR] => 1 ) [2025-03-14 05:28: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-03-14 02:28:05' and `end` < '2025-03-14 05:28: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-03-14 05:28:17] Production.INFO: count ==115 [2025-03-14 05:28:17] Production.ERROR: pbx CDR StartTime 2025-03-14 02:28:05 - End Time 2025-03-14 05:28:05 [2025-03-14 05:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676698', 'tblTempUsageDetail_20' ) start [2025-03-14 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676698', 'tblTempUsageDetail_20' ) end [2025-03-14 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676698', 'tblTempVendorCDR_20' ) start [2025-03-14 05:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676698', 'tblTempVendorCDR_20' ) end [2025-03-14 05:28:17] Production.INFO: ProcessCDR(1,14676698,1,1,2) [2025-03-14 05:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676698', 'tblTempUsageDetail_20' ) start [2025-03-14 05:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676698', 'tblTempUsageDetail_20' ) end [2025-03-14 05:28:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 05:28:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 05:28:20] Production.INFO: ==6512== Releasing lock... [2025-03-14 05:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 05:28:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 05:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 02:29:05 [end_date_ymd] => 2025-03-14 05:29:05 [RateCDR] => 1 ) [2025-03-14 05:29: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-03-14 02:29:05' and `end` < '2025-03-14 05:29: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-03-14 05:29:17] Production.INFO: count ==115 [2025-03-14 05:29:17] Production.ERROR: pbx CDR StartTime 2025-03-14 02:29:05 - End Time 2025-03-14 05:29:05 [2025-03-14 05:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676703', 'tblTempUsageDetail_20' ) start [2025-03-14 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676703', 'tblTempUsageDetail_20' ) end [2025-03-14 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676703', 'tblTempVendorCDR_20' ) start [2025-03-14 05:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676703', 'tblTempVendorCDR_20' ) end [2025-03-14 05:29:17] Production.INFO: ProcessCDR(1,14676703,1,1,2) [2025-03-14 05:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676703', 'tblTempUsageDetail_20' ) start [2025-03-14 05:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676703', 'tblTempUsageDetail_20' ) end [2025-03-14 05:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 05:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 05:29:21] Production.INFO: ==6587== Releasing lock... [2025-03-14 05:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 05:29:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 05:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 02:30:06 [end_date_ymd] => 2025-03-14 05:30:06 [RateCDR] => 1 ) [2025-03-14 05:30: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-03-14 02:30:06' and `end` < '2025-03-14 05:30: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-03-14 05:30:18] Production.INFO: count ==113 [2025-03-14 05:30:18] Production.ERROR: pbx CDR StartTime 2025-03-14 02:30:06 - End Time 2025-03-14 05:30:06 [2025-03-14 05:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676708', 'tblTempUsageDetail_20' ) start [2025-03-14 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676708', 'tblTempUsageDetail_20' ) end [2025-03-14 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676708', 'tblTempVendorCDR_20' ) start [2025-03-14 05:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676708', 'tblTempVendorCDR_20' ) end [2025-03-14 05:30:18] Production.INFO: ProcessCDR(1,14676708,1,1,2) [2025-03-14 05:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676708', 'tblTempUsageDetail_20' ) start [2025-03-14 05:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676708', 'tblTempUsageDetail_20' ) end [2025-03-14 05:30:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 05:30:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 05:30:21] Production.INFO: ==6660== Releasing lock... [2025-03-14 05:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 05:30:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 05:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 02:31:06 [end_date_ymd] => 2025-03-14 05:31:06 [RateCDR] => 1 ) [2025-03-14 05:31: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-03-14 02:31:06' and `end` < '2025-03-14 05:31: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-03-14 05:31:18] Production.INFO: count ==113 [2025-03-14 05:31:18] Production.ERROR: pbx CDR StartTime 2025-03-14 02:31:06 - End Time 2025-03-14 05:31:06 [2025-03-14 05:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676714', 'tblTempUsageDetail_20' ) start [2025-03-14 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676714', 'tblTempUsageDetail_20' ) end [2025-03-14 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676714', 'tblTempVendorCDR_20' ) start [2025-03-14 05:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676714', 'tblTempVendorCDR_20' ) end [2025-03-14 05:31:18] Production.INFO: ProcessCDR(1,14676714,1,1,2) [2025-03-14 05:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676714,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676714,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676714', 'tblTempUsageDetail_20' ) start [2025-03-14 05:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676714', 'tblTempUsageDetail_20' ) end [2025-03-14 05:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 05:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 05:31:21] Production.INFO: ==6735== Releasing lock... [2025-03-14 05:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 05:31:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 05:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 02:32:05 [end_date_ymd] => 2025-03-14 05:32:05 [RateCDR] => 1 ) [2025-03-14 05:32: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-03-14 02:32:05' and `end` < '2025-03-14 05:32: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-03-14 05:32:17] Production.INFO: count ==113 [2025-03-14 05:32:17] Production.ERROR: pbx CDR StartTime 2025-03-14 02:32:05 - End Time 2025-03-14 05:32:05 [2025-03-14 05:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676719', 'tblTempUsageDetail_20' ) start [2025-03-14 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676719', 'tblTempUsageDetail_20' ) end [2025-03-14 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676719', 'tblTempVendorCDR_20' ) start [2025-03-14 05:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676719', 'tblTempVendorCDR_20' ) end [2025-03-14 05:32:17] Production.INFO: ProcessCDR(1,14676719,1,1,2) [2025-03-14 05:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676719,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676719,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676719', 'tblTempUsageDetail_20' ) start [2025-03-14 05:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676719', 'tblTempUsageDetail_20' ) end [2025-03-14 05:32:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 05:32:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 05:32:20] Production.INFO: ==6848== Releasing lock... [2025-03-14 05:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 05:32:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 05:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 02:33:06 [end_date_ymd] => 2025-03-14 05:33:06 [RateCDR] => 1 ) [2025-03-14 05:33: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-03-14 02:33:06' and `end` < '2025-03-14 05:33: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-03-14 05:33:18] Production.INFO: count ==113 [2025-03-14 05:33:18] Production.ERROR: pbx CDR StartTime 2025-03-14 02:33:06 - End Time 2025-03-14 05:33:06 [2025-03-14 05:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676724', 'tblTempUsageDetail_20' ) start [2025-03-14 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676724', 'tblTempUsageDetail_20' ) end [2025-03-14 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676724', 'tblTempVendorCDR_20' ) start [2025-03-14 05:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676724', 'tblTempVendorCDR_20' ) end [2025-03-14 05:33:18] Production.INFO: ProcessCDR(1,14676724,1,1,2) [2025-03-14 05:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676724,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676724,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676724', 'tblTempUsageDetail_20' ) start [2025-03-14 05:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676724', 'tblTempUsageDetail_20' ) end [2025-03-14 05:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 05:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 05:33:21] Production.INFO: ==6917== Releasing lock... [2025-03-14 05:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 05:33:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 05:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 02:34:05 [end_date_ymd] => 2025-03-14 05:34:05 [RateCDR] => 1 ) [2025-03-14 05:34: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-03-14 02:34:05' and `end` < '2025-03-14 05:34: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-03-14 05:34:17] Production.INFO: count ==113 [2025-03-14 05:34:17] Production.ERROR: pbx CDR StartTime 2025-03-14 02:34:05 - End Time 2025-03-14 05:34:05 [2025-03-14 05:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676729', 'tblTempUsageDetail_20' ) start [2025-03-14 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676729', 'tblTempUsageDetail_20' ) end [2025-03-14 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676729', 'tblTempVendorCDR_20' ) start [2025-03-14 05:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676729', 'tblTempVendorCDR_20' ) end [2025-03-14 05:34:17] Production.INFO: ProcessCDR(1,14676729,1,1,2) [2025-03-14 05:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676729', 'tblTempUsageDetail_20' ) start [2025-03-14 05:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676729', 'tblTempUsageDetail_20' ) end [2025-03-14 05:34:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 05:34:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 05:34:20] Production.INFO: ==6993== Releasing lock... [2025-03-14 05:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 05:34:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 05:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 02:35:06 [end_date_ymd] => 2025-03-14 05:35:06 [RateCDR] => 1 ) [2025-03-14 05:35: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-03-14 02:35:06' and `end` < '2025-03-14 05:35: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-03-14 05:35:18] Production.INFO: count ==113 [2025-03-14 05:35:18] Production.ERROR: pbx CDR StartTime 2025-03-14 02:35:06 - End Time 2025-03-14 05:35:06 [2025-03-14 05:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676734', 'tblTempUsageDetail_20' ) start [2025-03-14 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676734', 'tblTempUsageDetail_20' ) end [2025-03-14 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676734', 'tblTempVendorCDR_20' ) start [2025-03-14 05:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676734', 'tblTempVendorCDR_20' ) end [2025-03-14 05:35:18] Production.INFO: ProcessCDR(1,14676734,1,1,2) [2025-03-14 05:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676734', 'tblTempUsageDetail_20' ) start [2025-03-14 05:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676734', 'tblTempUsageDetail_20' ) end [2025-03-14 05:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 05:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 05:35:21] Production.INFO: ==7067== Releasing lock... [2025-03-14 05:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 05:35:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 05:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 02:36:05 [end_date_ymd] => 2025-03-14 05:36:05 [RateCDR] => 1 ) [2025-03-14 05:36: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-03-14 02:36:05' and `end` < '2025-03-14 05:36: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-03-14 05:36:17] Production.INFO: count ==112 [2025-03-14 05:36:17] Production.ERROR: pbx CDR StartTime 2025-03-14 02:36:05 - End Time 2025-03-14 05:36:05 [2025-03-14 05:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676739', 'tblTempUsageDetail_20' ) start [2025-03-14 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676739', 'tblTempUsageDetail_20' ) end [2025-03-14 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676739', 'tblTempVendorCDR_20' ) start [2025-03-14 05:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676739', 'tblTempVendorCDR_20' ) end [2025-03-14 05:36:17] Production.INFO: ProcessCDR(1,14676739,1,1,2) [2025-03-14 05:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:36:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676739', 'tblTempUsageDetail_20' ) start [2025-03-14 05:36:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676739', 'tblTempUsageDetail_20' ) end [2025-03-14 05:36:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 05:36:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 05:36:20] Production.INFO: ==7152== Releasing lock... [2025-03-14 05:36:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 05:36:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 05:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 02:37:05 [end_date_ymd] => 2025-03-14 05:37:05 [RateCDR] => 1 ) [2025-03-14 05:37: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-03-14 02:37:05' and `end` < '2025-03-14 05:37: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-03-14 05:37:17] Production.INFO: count ==112 [2025-03-14 05:37:17] Production.ERROR: pbx CDR StartTime 2025-03-14 02:37:05 - End Time 2025-03-14 05:37:05 [2025-03-14 05:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676744', 'tblTempUsageDetail_20' ) start [2025-03-14 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676744', 'tblTempUsageDetail_20' ) end [2025-03-14 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676744', 'tblTempVendorCDR_20' ) start [2025-03-14 05:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676744', 'tblTempVendorCDR_20' ) end [2025-03-14 05:37:17] Production.INFO: ProcessCDR(1,14676744,1,1,2) [2025-03-14 05:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:37:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:37:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:37:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676744', 'tblTempUsageDetail_20' ) start [2025-03-14 05:37:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676744', 'tblTempUsageDetail_20' ) end [2025-03-14 05:37:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 05:37:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 05:37:20] Production.INFO: ==7251== Releasing lock... [2025-03-14 05:37:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 05:37:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 05:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 02:38:04 [end_date_ymd] => 2025-03-14 05:38:04 [RateCDR] => 1 ) [2025-03-14 05:38: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-03-14 02:38:04' and `end` < '2025-03-14 05:38: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-03-14 05:38:17] Production.INFO: count ==112 [2025-03-14 05:38:17] Production.ERROR: pbx CDR StartTime 2025-03-14 02:38:04 - End Time 2025-03-14 05:38:04 [2025-03-14 05:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676749', 'tblTempUsageDetail_20' ) start [2025-03-14 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676749', 'tblTempUsageDetail_20' ) end [2025-03-14 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676749', 'tblTempVendorCDR_20' ) start [2025-03-14 05:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676749', 'tblTempVendorCDR_20' ) end [2025-03-14 05:38:17] Production.INFO: ProcessCDR(1,14676749,1,1,2) [2025-03-14 05:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676749', 'tblTempUsageDetail_20' ) start [2025-03-14 05:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676749', 'tblTempUsageDetail_20' ) end [2025-03-14 05:38:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 05:38:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 05:38:20] Production.INFO: ==7381== Releasing lock... [2025-03-14 05:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 05:38:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 05:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 02:39:05 [end_date_ymd] => 2025-03-14 05:39:05 [RateCDR] => 1 ) [2025-03-14 05:39: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-03-14 02:39:05' and `end` < '2025-03-14 05:39: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-03-14 05:39:17] Production.INFO: count ==112 [2025-03-14 05:39:17] Production.ERROR: pbx CDR StartTime 2025-03-14 02:39:05 - End Time 2025-03-14 05:39:05 [2025-03-14 05:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676754', 'tblTempUsageDetail_20' ) start [2025-03-14 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676754', 'tblTempUsageDetail_20' ) end [2025-03-14 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676754', 'tblTempVendorCDR_20' ) start [2025-03-14 05:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676754', 'tblTempVendorCDR_20' ) end [2025-03-14 05:39:17] Production.INFO: ProcessCDR(1,14676754,1,1,2) [2025-03-14 05:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:39:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676754', 'tblTempUsageDetail_20' ) start [2025-03-14 05:39:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676754', 'tblTempUsageDetail_20' ) end [2025-03-14 05:39:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 05:39:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 05:39:20] Production.INFO: ==7525== Releasing lock... [2025-03-14 05:39:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 05:39:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 05:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 02:40:07 [end_date_ymd] => 2025-03-14 05:40:07 [RateCDR] => 1 ) [2025-03-14 05:40:07] 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-03-14 02:40:07' and `end` < '2025-03-14 05:40:07' 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-03-14 05:40:19] Production.INFO: count ==102 [2025-03-14 05:40:19] Production.ERROR: pbx CDR StartTime 2025-03-14 02:40:07 - End Time 2025-03-14 05:40:07 [2025-03-14 05:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676760', 'tblTempUsageDetail_20' ) start [2025-03-14 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676760', 'tblTempUsageDetail_20' ) end [2025-03-14 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676760', 'tblTempVendorCDR_20' ) start [2025-03-14 05:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676760', 'tblTempVendorCDR_20' ) end [2025-03-14 05:40:19] Production.INFO: ProcessCDR(1,14676760,1,1,2) [2025-03-14 05:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676760,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:40:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676760,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676760', 'tblTempUsageDetail_20' ) start [2025-03-14 05:40:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676760', 'tblTempUsageDetail_20' ) end [2025-03-14 05:40:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 05:40:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 05:40:22] Production.INFO: ==7643== Releasing lock... [2025-03-14 05:40:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 05:40:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 05:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 02:41:05 [end_date_ymd] => 2025-03-14 05:41:05 [RateCDR] => 1 ) [2025-03-14 05:41: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-03-14 02:41:05' and `end` < '2025-03-14 05:41: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-03-14 05:41:17] Production.INFO: count ==103 [2025-03-14 05:41:17] Production.ERROR: pbx CDR StartTime 2025-03-14 02:41:05 - End Time 2025-03-14 05:41:05 [2025-03-14 05:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676765', 'tblTempUsageDetail_20' ) start [2025-03-14 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676765', 'tblTempUsageDetail_20' ) end [2025-03-14 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676765', 'tblTempVendorCDR_20' ) start [2025-03-14 05:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676765', 'tblTempVendorCDR_20' ) end [2025-03-14 05:41:17] Production.INFO: ProcessCDR(1,14676765,1,1,2) [2025-03-14 05:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676765,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676765,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676765', 'tblTempUsageDetail_20' ) start [2025-03-14 05:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676765', 'tblTempUsageDetail_20' ) end [2025-03-14 05:41:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 05:41:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 05:41:21] Production.INFO: ==7752== Releasing lock... [2025-03-14 05:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 05:41:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 05:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 02:42:05 [end_date_ymd] => 2025-03-14 05:42:05 [RateCDR] => 1 ) [2025-03-14 05:42: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-03-14 02:42:05' and `end` < '2025-03-14 05:42: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-03-14 05:42:17] Production.INFO: count ==106 [2025-03-14 05:42:18] Production.ERROR: pbx CDR StartTime 2025-03-14 02:42:05 - End Time 2025-03-14 05:42:05 [2025-03-14 05:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676770', 'tblTempUsageDetail_20' ) start [2025-03-14 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676770', 'tblTempUsageDetail_20' ) end [2025-03-14 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676770', 'tblTempVendorCDR_20' ) start [2025-03-14 05:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676770', 'tblTempVendorCDR_20' ) end [2025-03-14 05:42:18] Production.INFO: ProcessCDR(1,14676770,1,1,2) [2025-03-14 05:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676770,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676770,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676770', 'tblTempUsageDetail_20' ) start [2025-03-14 05:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676770', 'tblTempUsageDetail_20' ) end [2025-03-14 05:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 05:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 05:42:21] Production.INFO: ==7853== Releasing lock... [2025-03-14 05:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 05:42:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 05:43:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 02:43:04 [end_date_ymd] => 2025-03-14 05:43:04 [RateCDR] => 1 ) [2025-03-14 05:43: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-03-14 02:43:04' and `end` < '2025-03-14 05:43: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-03-14 05:43:17] Production.INFO: count ==106 [2025-03-14 05:43:17] Production.ERROR: pbx CDR StartTime 2025-03-14 02:43:04 - End Time 2025-03-14 05:43:04 [2025-03-14 05:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676774', 'tblTempUsageDetail_20' ) start [2025-03-14 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676774', 'tblTempUsageDetail_20' ) end [2025-03-14 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676774', 'tblTempVendorCDR_20' ) start [2025-03-14 05:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676774', 'tblTempVendorCDR_20' ) end [2025-03-14 05:43:17] Production.INFO: ProcessCDR(1,14676774,1,1,2) [2025-03-14 05:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676774', 'tblTempUsageDetail_20' ) start [2025-03-14 05:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676774', 'tblTempUsageDetail_20' ) end [2025-03-14 05:43:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 05:43:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 05:43:20] Production.INFO: ==7953== Releasing lock... [2025-03-14 05:43:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 05:43:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 05:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 02:44:05 [end_date_ymd] => 2025-03-14 05:44:05 [RateCDR] => 1 ) [2025-03-14 05:44: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-03-14 02:44:05' and `end` < '2025-03-14 05:44: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-03-14 05:44:18] Production.INFO: count ==106 [2025-03-14 05:44:18] Production.ERROR: pbx CDR StartTime 2025-03-14 02:44:05 - End Time 2025-03-14 05:44:05 [2025-03-14 05:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676780', 'tblTempUsageDetail_20' ) start [2025-03-14 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676780', 'tblTempUsageDetail_20' ) end [2025-03-14 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676780', 'tblTempVendorCDR_20' ) start [2025-03-14 05:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676780', 'tblTempVendorCDR_20' ) end [2025-03-14 05:44:18] Production.INFO: ProcessCDR(1,14676780,1,1,2) [2025-03-14 05:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676780', 'tblTempUsageDetail_20' ) start [2025-03-14 05:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676780', 'tblTempUsageDetail_20' ) end [2025-03-14 05:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 05:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 05:44:21] Production.INFO: ==8054== Releasing lock... [2025-03-14 05:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 05:44:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 05:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 02:45:05 [end_date_ymd] => 2025-03-14 05:45:05 [RateCDR] => 1 ) [2025-03-14 05:45: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-03-14 02:45:05' and `end` < '2025-03-14 05:45: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-03-14 05:45:17] Production.INFO: count ==106 [2025-03-14 05:45:17] Production.ERROR: pbx CDR StartTime 2025-03-14 02:45:05 - End Time 2025-03-14 05:45:05 [2025-03-14 05:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676785', 'tblTempUsageDetail_20' ) start [2025-03-14 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676785', 'tblTempUsageDetail_20' ) end [2025-03-14 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676785', 'tblTempVendorCDR_20' ) start [2025-03-14 05:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676785', 'tblTempVendorCDR_20' ) end [2025-03-14 05:45:17] Production.INFO: ProcessCDR(1,14676785,1,1,2) [2025-03-14 05:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676785', 'tblTempUsageDetail_20' ) start [2025-03-14 05:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676785', 'tblTempUsageDetail_20' ) end [2025-03-14 05:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 05:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 05:45:21] Production.INFO: ==8156== Releasing lock... [2025-03-14 05:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 05:45:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 05:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 02:46:05 [end_date_ymd] => 2025-03-14 05:46:05 [RateCDR] => 1 ) [2025-03-14 05:46: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-03-14 02:46:05' and `end` < '2025-03-14 05:46: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-03-14 05:46:17] Production.INFO: count ==105 [2025-03-14 05:46:17] Production.ERROR: pbx CDR StartTime 2025-03-14 02:46:05 - End Time 2025-03-14 05:46:05 [2025-03-14 05:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676790', 'tblTempUsageDetail_20' ) start [2025-03-14 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676790', 'tblTempUsageDetail_20' ) end [2025-03-14 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676790', 'tblTempVendorCDR_20' ) start [2025-03-14 05:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676790', 'tblTempVendorCDR_20' ) end [2025-03-14 05:46:17] Production.INFO: ProcessCDR(1,14676790,1,1,2) [2025-03-14 05:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676790', 'tblTempUsageDetail_20' ) start [2025-03-14 05:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676790', 'tblTempUsageDetail_20' ) end [2025-03-14 05:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 05:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 05:46:21] Production.INFO: ==8255== Releasing lock... [2025-03-14 05:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 05:46:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 05:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 02:47:05 [end_date_ymd] => 2025-03-14 05:47:05 [RateCDR] => 1 ) [2025-03-14 05:47: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-03-14 02:47:05' and `end` < '2025-03-14 05:47: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-03-14 05:47:17] Production.INFO: count ==104 [2025-03-14 05:47:17] Production.ERROR: pbx CDR StartTime 2025-03-14 02:47:05 - End Time 2025-03-14 05:47:05 [2025-03-14 05:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676795', 'tblTempUsageDetail_20' ) start [2025-03-14 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676795', 'tblTempUsageDetail_20' ) end [2025-03-14 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676795', 'tblTempVendorCDR_20' ) start [2025-03-14 05:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676795', 'tblTempVendorCDR_20' ) end [2025-03-14 05:47:17] Production.INFO: ProcessCDR(1,14676795,1,1,2) [2025-03-14 05:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:47:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676795', 'tblTempUsageDetail_20' ) start [2025-03-14 05:47:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676795', 'tblTempUsageDetail_20' ) end [2025-03-14 05:47:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 05:47:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 05:47:20] Production.INFO: ==8355== Releasing lock... [2025-03-14 05:47:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 05:47:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 05:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 02:48:05 [end_date_ymd] => 2025-03-14 05:48:05 [RateCDR] => 1 ) [2025-03-14 05:48: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-03-14 02:48:05' and `end` < '2025-03-14 05:48: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-03-14 05:48:17] Production.INFO: count ==104 [2025-03-14 05:48:17] Production.ERROR: pbx CDR StartTime 2025-03-14 02:48:05 - End Time 2025-03-14 05:48:05 [2025-03-14 05:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676800', 'tblTempUsageDetail_20' ) start [2025-03-14 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676800', 'tblTempUsageDetail_20' ) end [2025-03-14 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676800', 'tblTempVendorCDR_20' ) start [2025-03-14 05:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676800', 'tblTempVendorCDR_20' ) end [2025-03-14 05:48:17] Production.INFO: ProcessCDR(1,14676800,1,1,2) [2025-03-14 05:48:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676800', 'tblTempUsageDetail_20' ) start [2025-03-14 05:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676800', 'tblTempUsageDetail_20' ) end [2025-03-14 05:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 05:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 05:48:21] Production.INFO: ==8494== Releasing lock... [2025-03-14 05:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 05:48:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 05:49:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 02:49:04 [end_date_ymd] => 2025-03-14 05:49:04 [RateCDR] => 1 ) [2025-03-14 05:49: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-03-14 02:49:04' and `end` < '2025-03-14 05:49: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-03-14 05:49:16] Production.INFO: count ==104 [2025-03-14 05:49:16] Production.ERROR: pbx CDR StartTime 2025-03-14 02:49:04 - End Time 2025-03-14 05:49:04 [2025-03-14 05:49:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 05:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676805', 'tblTempUsageDetail_20' ) start [2025-03-14 05:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676805', 'tblTempUsageDetail_20' ) end [2025-03-14 05:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676805', 'tblTempVendorCDR_20' ) start [2025-03-14 05:49:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676805', 'tblTempVendorCDR_20' ) end [2025-03-14 05:49:16] Production.INFO: ProcessCDR(1,14676805,1,1,2) [2025-03-14 05:49:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676805', 'tblTempUsageDetail_20' ) start [2025-03-14 05:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676805', 'tblTempUsageDetail_20' ) end [2025-03-14 05:49:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 05:49:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 05:49:20] Production.INFO: ==8594== Releasing lock... [2025-03-14 05:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 05:49:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 05:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 02:50:06 [end_date_ymd] => 2025-03-14 05:50:06 [RateCDR] => 1 ) [2025-03-14 05:50: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-03-14 02:50:06' and `end` < '2025-03-14 05:50: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-03-14 05:50:19] Production.INFO: count ==98 [2025-03-14 05:50:19] Production.ERROR: pbx CDR StartTime 2025-03-14 02:50:06 - End Time 2025-03-14 05:50:06 [2025-03-14 05:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676811', 'tblTempUsageDetail_20' ) start [2025-03-14 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676811', 'tblTempUsageDetail_20' ) end [2025-03-14 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676811', 'tblTempVendorCDR_20' ) start [2025-03-14 05:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676811', 'tblTempVendorCDR_20' ) end [2025-03-14 05:50:19] Production.INFO: ProcessCDR(1,14676811,1,1,2) [2025-03-14 05:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676811,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676811,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676811', 'tblTempUsageDetail_20' ) start [2025-03-14 05:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676811', 'tblTempUsageDetail_20' ) end [2025-03-14 05:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 05:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 05:50:22] Production.INFO: ==8696== Releasing lock... [2025-03-14 05:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 05:50:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 05:51:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 02:51:04 [end_date_ymd] => 2025-03-14 05:51:04 [RateCDR] => 1 ) [2025-03-14 05:51: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-03-14 02:51:04' and `end` < '2025-03-14 05:51: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-03-14 05:51:17] Production.INFO: count ==98 [2025-03-14 05:51:17] Production.ERROR: pbx CDR StartTime 2025-03-14 02:51:04 - End Time 2025-03-14 05:51:04 [2025-03-14 05:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676816', 'tblTempUsageDetail_20' ) start [2025-03-14 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676816', 'tblTempUsageDetail_20' ) end [2025-03-14 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676816', 'tblTempVendorCDR_20' ) start [2025-03-14 05:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676816', 'tblTempVendorCDR_20' ) end [2025-03-14 05:51:17] Production.INFO: ProcessCDR(1,14676816,1,1,2) [2025-03-14 05:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676816,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:51:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676816,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676816', 'tblTempUsageDetail_20' ) start [2025-03-14 05:51:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676816', 'tblTempUsageDetail_20' ) end [2025-03-14 05:51:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 05:51:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 05:51:20] Production.INFO: ==8796== Releasing lock... [2025-03-14 05:51:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 05:51:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 05:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 02:52:05 [end_date_ymd] => 2025-03-14 05:52:05 [RateCDR] => 1 ) [2025-03-14 05:52: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-03-14 02:52:05' and `end` < '2025-03-14 05:52: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-03-14 05:52:17] Production.INFO: count ==102 [2025-03-14 05:52:17] Production.ERROR: pbx CDR StartTime 2025-03-14 02:52:05 - End Time 2025-03-14 05:52:05 [2025-03-14 05:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676821', 'tblTempUsageDetail_20' ) start [2025-03-14 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676821', 'tblTempUsageDetail_20' ) end [2025-03-14 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676821', 'tblTempVendorCDR_20' ) start [2025-03-14 05:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676821', 'tblTempVendorCDR_20' ) end [2025-03-14 05:52:17] Production.INFO: ProcessCDR(1,14676821,1,1,2) [2025-03-14 05:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676821,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676821,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676821', 'tblTempUsageDetail_20' ) start [2025-03-14 05:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676821', 'tblTempUsageDetail_20' ) end [2025-03-14 05:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 05:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 05:52:21] Production.INFO: ==8894== Releasing lock... [2025-03-14 05:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 05:52:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 05:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 02:53:06 [end_date_ymd] => 2025-03-14 05:53:06 [RateCDR] => 1 ) [2025-03-14 05:53: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-03-14 02:53:06' and `end` < '2025-03-14 05:53: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-03-14 05:53:18] Production.INFO: count ==102 [2025-03-14 05:53:18] Production.ERROR: pbx CDR StartTime 2025-03-14 02:53:06 - End Time 2025-03-14 05:53:06 [2025-03-14 05:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676826', 'tblTempUsageDetail_20' ) start [2025-03-14 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676826', 'tblTempUsageDetail_20' ) end [2025-03-14 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676826', 'tblTempVendorCDR_20' ) start [2025-03-14 05:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676826', 'tblTempVendorCDR_20' ) end [2025-03-14 05:53:18] Production.INFO: ProcessCDR(1,14676826,1,1,2) [2025-03-14 05:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676826,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676826,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676826', 'tblTempUsageDetail_20' ) start [2025-03-14 05:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676826', 'tblTempUsageDetail_20' ) end [2025-03-14 05:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 05:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 05:53:21] Production.INFO: ==8999== Releasing lock... [2025-03-14 05:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 05:53:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 05:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 02:54:05 [end_date_ymd] => 2025-03-14 05:54:05 [RateCDR] => 1 ) [2025-03-14 05:54: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-03-14 02:54:05' and `end` < '2025-03-14 05:54: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-03-14 05:54:17] Production.INFO: count ==102 [2025-03-14 05:54:17] Production.ERROR: pbx CDR StartTime 2025-03-14 02:54:05 - End Time 2025-03-14 05:54:05 [2025-03-14 05:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676831', 'tblTempUsageDetail_20' ) start [2025-03-14 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676831', 'tblTempUsageDetail_20' ) end [2025-03-14 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676831', 'tblTempVendorCDR_20' ) start [2025-03-14 05:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676831', 'tblTempVendorCDR_20' ) end [2025-03-14 05:54:17] Production.INFO: ProcessCDR(1,14676831,1,1,2) [2025-03-14 05:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676831', 'tblTempUsageDetail_20' ) start [2025-03-14 05:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676831', 'tblTempUsageDetail_20' ) end [2025-03-14 05:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 05:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 05:54:21] Production.INFO: ==9074== Releasing lock... [2025-03-14 05:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 05:54:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 05:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 02:55:05 [end_date_ymd] => 2025-03-14 05:55:05 [RateCDR] => 1 ) [2025-03-14 05:55: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-03-14 02:55:05' and `end` < '2025-03-14 05:55: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-03-14 05:55:17] Production.INFO: count ==102 [2025-03-14 05:55:18] Production.ERROR: pbx CDR StartTime 2025-03-14 02:55:05 - End Time 2025-03-14 05:55:05 [2025-03-14 05:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676836', 'tblTempUsageDetail_20' ) start [2025-03-14 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676836', 'tblTempUsageDetail_20' ) end [2025-03-14 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676836', 'tblTempVendorCDR_20' ) start [2025-03-14 05:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676836', 'tblTempVendorCDR_20' ) end [2025-03-14 05:55:18] Production.INFO: ProcessCDR(1,14676836,1,1,2) [2025-03-14 05:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676836', 'tblTempUsageDetail_20' ) start [2025-03-14 05:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676836', 'tblTempUsageDetail_20' ) end [2025-03-14 05:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 05:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 05:55:21] Production.INFO: ==9150== Releasing lock... [2025-03-14 05:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 05:55:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 05:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 02:56:05 [end_date_ymd] => 2025-03-14 05:56:05 [RateCDR] => 1 ) [2025-03-14 05:56: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-03-14 02:56:05' and `end` < '2025-03-14 05:56: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-03-14 05:56:17] Production.INFO: count ==102 [2025-03-14 05:56:17] Production.ERROR: pbx CDR StartTime 2025-03-14 02:56:05 - End Time 2025-03-14 05:56:05 [2025-03-14 05:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676841', 'tblTempUsageDetail_20' ) start [2025-03-14 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676841', 'tblTempUsageDetail_20' ) end [2025-03-14 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676841', 'tblTempVendorCDR_20' ) start [2025-03-14 05:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676841', 'tblTempVendorCDR_20' ) end [2025-03-14 05:56:17] Production.INFO: ProcessCDR(1,14676841,1,1,2) [2025-03-14 05:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:56:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676841', 'tblTempUsageDetail_20' ) start [2025-03-14 05:56:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676841', 'tblTempUsageDetail_20' ) end [2025-03-14 05:56:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 05:56:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 05:56:20] Production.INFO: ==9227== Releasing lock... [2025-03-14 05:56:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 05:56:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 05:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 02:57:06 [end_date_ymd] => 2025-03-14 05:57:06 [RateCDR] => 1 ) [2025-03-14 05:57: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-03-14 02:57:06' and `end` < '2025-03-14 05:57: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-03-14 05:57:18] Production.INFO: count ==102 [2025-03-14 05:57:18] Production.ERROR: pbx CDR StartTime 2025-03-14 02:57:06 - End Time 2025-03-14 05:57:06 [2025-03-14 05:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676846', 'tblTempUsageDetail_20' ) start [2025-03-14 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676846', 'tblTempUsageDetail_20' ) end [2025-03-14 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676846', 'tblTempVendorCDR_20' ) start [2025-03-14 05:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676846', 'tblTempVendorCDR_20' ) end [2025-03-14 05:57:18] Production.INFO: ProcessCDR(1,14676846,1,1,2) [2025-03-14 05:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676846', 'tblTempUsageDetail_20' ) start [2025-03-14 05:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676846', 'tblTempUsageDetail_20' ) end [2025-03-14 05:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 05:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 05:57:21] Production.INFO: ==9302== Releasing lock... [2025-03-14 05:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 05:57:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 05:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 02:58:05 [end_date_ymd] => 2025-03-14 05:58:05 [RateCDR] => 1 ) [2025-03-14 05:58: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-03-14 02:58:05' and `end` < '2025-03-14 05:58: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-03-14 05:58:17] Production.INFO: count ==102 [2025-03-14 05:58:17] Production.ERROR: pbx CDR StartTime 2025-03-14 02:58:05 - End Time 2025-03-14 05:58:05 [2025-03-14 05:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676851', 'tblTempUsageDetail_20' ) start [2025-03-14 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676851', 'tblTempUsageDetail_20' ) end [2025-03-14 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676851', 'tblTempVendorCDR_20' ) start [2025-03-14 05:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676851', 'tblTempVendorCDR_20' ) end [2025-03-14 05:58:17] Production.INFO: ProcessCDR(1,14676851,1,1,2) [2025-03-14 05:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676851', 'tblTempUsageDetail_20' ) start [2025-03-14 05:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676851', 'tblTempUsageDetail_20' ) end [2025-03-14 05:58:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 05:58:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 05:58:20] Production.INFO: ==9373== Releasing lock... [2025-03-14 05:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 05:58:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 05:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 02:59:05 [end_date_ymd] => 2025-03-14 05:59:05 [RateCDR] => 1 ) [2025-03-14 05:59: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-03-14 02:59:05' and `end` < '2025-03-14 05:59: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-03-14 05:59:17] Production.INFO: count ==102 [2025-03-14 05:59:17] Production.ERROR: pbx CDR StartTime 2025-03-14 02:59:05 - End Time 2025-03-14 05:59:05 [2025-03-14 05:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676856', 'tblTempUsageDetail_20' ) start [2025-03-14 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676856', 'tblTempUsageDetail_20' ) end [2025-03-14 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676856', 'tblTempVendorCDR_20' ) start [2025-03-14 05:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676856', 'tblTempVendorCDR_20' ) end [2025-03-14 05:59:17] Production.INFO: ProcessCDR(1,14676856,1,1,2) [2025-03-14 05:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 05:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676856', 'tblTempUsageDetail_20' ) start [2025-03-14 05:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676856', 'tblTempUsageDetail_20' ) end [2025-03-14 05:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 05:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 05:59:21] Production.INFO: ==9447== Releasing lock... [2025-03-14 05:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 05:59:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 06:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 03:00:05 [end_date_ymd] => 2025-03-14 06:00:05 [RateCDR] => 1 ) [2025-03-14 06:00: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-03-14 03:00:05' and `end` < '2025-03-14 06:00: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-03-14 06:00:17] Production.INFO: count ==112 [2025-03-14 06:00:17] Production.ERROR: pbx CDR StartTime 2025-03-14 03:00:05 - End Time 2025-03-14 06:00:05 [2025-03-14 06:00:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676862', 'tblTempUsageDetail_20' ) start [2025-03-14 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676862', 'tblTempUsageDetail_20' ) end [2025-03-14 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676862', 'tblTempVendorCDR_20' ) start [2025-03-14 06:00:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676862', 'tblTempVendorCDR_20' ) end [2025-03-14 06:00:17] Production.INFO: ProcessCDR(1,14676862,1,1,2) [2025-03-14 06:00:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:00:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:00:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676862', 'tblTempUsageDetail_20' ) start [2025-03-14 06:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676862', 'tblTempUsageDetail_20' ) end [2025-03-14 06:00:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 06:00:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 06:00:21] Production.INFO: ==9521== Releasing lock... [2025-03-14 06:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 06:00:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 06:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 03:01:05 [end_date_ymd] => 2025-03-14 06:01:05 [RateCDR] => 1 ) [2025-03-14 06:01: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-03-14 03:01:05' and `end` < '2025-03-14 06:01: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-03-14 06:01:17] Production.INFO: count ==123 [2025-03-14 06:01:17] Production.ERROR: pbx CDR StartTime 2025-03-14 03:01:05 - End Time 2025-03-14 06:01:05 [2025-03-14 06:01:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676867', 'tblTempUsageDetail_20' ) start [2025-03-14 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676867', 'tblTempUsageDetail_20' ) end [2025-03-14 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676867', 'tblTempVendorCDR_20' ) start [2025-03-14 06:01:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676867', 'tblTempVendorCDR_20' ) end [2025-03-14 06:01:17] Production.INFO: ProcessCDR(1,14676867,1,1,2) [2025-03-14 06:01:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676867,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676867,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676867', 'tblTempUsageDetail_20' ) start [2025-03-14 06:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676867', 'tblTempUsageDetail_20' ) end [2025-03-14 06:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 06:01:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 06:01:23] Production.INFO: ==9609== Releasing lock... [2025-03-14 06:01:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 06:01:23] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 06:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 03:02:06 [end_date_ymd] => 2025-03-14 06:02:06 [RateCDR] => 1 ) [2025-03-14 06:02: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-03-14 03:02:06' and `end` < '2025-03-14 06:02: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-03-14 06:02:18] Production.INFO: count ==123 [2025-03-14 06:02:18] Production.ERROR: pbx CDR StartTime 2025-03-14 03:02:06 - End Time 2025-03-14 06:02:06 [2025-03-14 06:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676872', 'tblTempUsageDetail_20' ) start [2025-03-14 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676872', 'tblTempUsageDetail_20' ) end [2025-03-14 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676872', 'tblTempVendorCDR_20' ) start [2025-03-14 06:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676872', 'tblTempVendorCDR_20' ) end [2025-03-14 06:02:18] Production.INFO: ProcessCDR(1,14676872,1,1,2) [2025-03-14 06:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676872,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676872,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676872', 'tblTempUsageDetail_20' ) start [2025-03-14 06:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676872', 'tblTempUsageDetail_20' ) end [2025-03-14 06:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 06:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 06:02:22] Production.INFO: ==9682== Releasing lock... [2025-03-14 06:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 06:02:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 06:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 03:03:06 [end_date_ymd] => 2025-03-14 06:03:06 [RateCDR] => 1 ) [2025-03-14 06:03: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-03-14 03:03:06' and `end` < '2025-03-14 06:03: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-03-14 06:03:18] Production.INFO: count ==123 [2025-03-14 06:03:18] Production.ERROR: pbx CDR StartTime 2025-03-14 03:03:06 - End Time 2025-03-14 06:03:06 [2025-03-14 06:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676877', 'tblTempUsageDetail_20' ) start [2025-03-14 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676877', 'tblTempUsageDetail_20' ) end [2025-03-14 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676877', 'tblTempVendorCDR_20' ) start [2025-03-14 06:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676877', 'tblTempVendorCDR_20' ) end [2025-03-14 06:03:18] Production.INFO: ProcessCDR(1,14676877,1,1,2) [2025-03-14 06:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676877,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676877,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676877', 'tblTempUsageDetail_20' ) start [2025-03-14 06:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676877', 'tblTempUsageDetail_20' ) end [2025-03-14 06:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 06:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 06:03:21] Production.INFO: ==9792== Releasing lock... [2025-03-14 06:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 06:03:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 06:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 03:04:05 [end_date_ymd] => 2025-03-14 06:04:05 [RateCDR] => 1 ) [2025-03-14 06:04: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-03-14 03:04:05' and `end` < '2025-03-14 06:04: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-03-14 06:04:17] Production.INFO: count ==123 [2025-03-14 06:04:17] Production.ERROR: pbx CDR StartTime 2025-03-14 03:04:05 - End Time 2025-03-14 06:04:05 [2025-03-14 06:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 06:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676882', 'tblTempUsageDetail_20' ) start [2025-03-14 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676882', 'tblTempUsageDetail_20' ) end [2025-03-14 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676882', 'tblTempVendorCDR_20' ) start [2025-03-14 06:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676882', 'tblTempVendorCDR_20' ) end [2025-03-14 06:04:18] Production.INFO: ProcessCDR(1,14676882,1,1,2) [2025-03-14 06:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676882', 'tblTempUsageDetail_20' ) start [2025-03-14 06:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676882', 'tblTempUsageDetail_20' ) end [2025-03-14 06:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 06:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 06:04:21] Production.INFO: ==9865== Releasing lock... [2025-03-14 06:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 06:04:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 06:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 03:05:06 [end_date_ymd] => 2025-03-14 06:05:06 [RateCDR] => 1 ) [2025-03-14 06:05: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-03-14 03:05:06' and `end` < '2025-03-14 06:05: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-03-14 06:05:18] Production.INFO: count ==123 [2025-03-14 06:05:18] Production.ERROR: pbx CDR StartTime 2025-03-14 03:05:06 - End Time 2025-03-14 06:05:06 [2025-03-14 06:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676887', 'tblTempUsageDetail_20' ) start [2025-03-14 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676887', 'tblTempUsageDetail_20' ) end [2025-03-14 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676887', 'tblTempVendorCDR_20' ) start [2025-03-14 06:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676887', 'tblTempVendorCDR_20' ) end [2025-03-14 06:05:18] Production.INFO: ProcessCDR(1,14676887,1,1,2) [2025-03-14 06:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676887', 'tblTempUsageDetail_20' ) start [2025-03-14 06:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676887', 'tblTempUsageDetail_20' ) end [2025-03-14 06:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 06:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 06:05:22] Production.INFO: ==9937== Releasing lock... [2025-03-14 06:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 06:05:22] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 06:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 03:06:06 [end_date_ymd] => 2025-03-14 06:06:06 [RateCDR] => 1 ) [2025-03-14 06:06: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-03-14 03:06:06' and `end` < '2025-03-14 06:06: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-03-14 06:06:18] Production.INFO: count ==119 [2025-03-14 06:06:18] Production.ERROR: pbx CDR StartTime 2025-03-14 03:06:06 - End Time 2025-03-14 06:06:06 [2025-03-14 06:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676892', 'tblTempUsageDetail_20' ) start [2025-03-14 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676892', 'tblTempUsageDetail_20' ) end [2025-03-14 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676892', 'tblTempVendorCDR_20' ) start [2025-03-14 06:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676892', 'tblTempVendorCDR_20' ) end [2025-03-14 06:06:18] Production.INFO: ProcessCDR(1,14676892,1,1,2) [2025-03-14 06:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:06:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676892', 'tblTempUsageDetail_20' ) start [2025-03-14 06:06:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676892', 'tblTempUsageDetail_20' ) end [2025-03-14 06:06:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 06:06:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 06:06:22] Production.INFO: ==10011== Releasing lock... [2025-03-14 06:06:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 06:06:22] Production.INFO: 29 MB #Memory Used# [2025-03-14 06:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 03:07:05 [end_date_ymd] => 2025-03-14 06:07:05 [RateCDR] => 1 ) [2025-03-14 06:07: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-03-14 03:07:05' and `end` < '2025-03-14 06:07: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-03-14 06:07:18] Production.INFO: count ==123 [2025-03-14 06:07:18] Production.ERROR: pbx CDR StartTime 2025-03-14 03:07:05 - End Time 2025-03-14 06:07:05 [2025-03-14 06:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676897', 'tblTempUsageDetail_20' ) start [2025-03-14 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676897', 'tblTempUsageDetail_20' ) end [2025-03-14 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676897', 'tblTempVendorCDR_20' ) start [2025-03-14 06:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676897', 'tblTempVendorCDR_20' ) end [2025-03-14 06:07:18] Production.INFO: ProcessCDR(1,14676897,1,1,2) [2025-03-14 06:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676897', 'tblTempUsageDetail_20' ) start [2025-03-14 06:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676897', 'tblTempUsageDetail_20' ) end [2025-03-14 06:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 06:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 06:07:21] Production.INFO: ==10085== Releasing lock... [2025-03-14 06:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 06:07:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 06:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 03:08:05 [end_date_ymd] => 2025-03-14 06:08:05 [RateCDR] => 1 ) [2025-03-14 06:08: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-03-14 03:08:05' and `end` < '2025-03-14 06:08: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-03-14 06:08:17] Production.INFO: count ==121 [2025-03-14 06:08:17] Production.ERROR: pbx CDR StartTime 2025-03-14 03:08:05 - End Time 2025-03-14 06:08:05 [2025-03-14 06:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676902', 'tblTempUsageDetail_20' ) start [2025-03-14 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676902', 'tblTempUsageDetail_20' ) end [2025-03-14 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676902', 'tblTempVendorCDR_20' ) start [2025-03-14 06:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676902', 'tblTempVendorCDR_20' ) end [2025-03-14 06:08:17] Production.INFO: ProcessCDR(1,14676902,1,1,2) [2025-03-14 06:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676902', 'tblTempUsageDetail_20' ) start [2025-03-14 06:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676902', 'tblTempUsageDetail_20' ) end [2025-03-14 06:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 06:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 06:08:21] Production.INFO: ==10159== Releasing lock... [2025-03-14 06:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 06:08:21] Production.INFO: 29 MB #Memory Used# [2025-03-14 06:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 03:09:05 [end_date_ymd] => 2025-03-14 06:09:05 [RateCDR] => 1 ) [2025-03-14 06:09: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-03-14 03:09:05' and `end` < '2025-03-14 06:09: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-03-14 06:09:17] Production.INFO: count ==119 [2025-03-14 06:09:17] Production.ERROR: pbx CDR StartTime 2025-03-14 03:09:05 - End Time 2025-03-14 06:09:05 [2025-03-14 06:09:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676907', 'tblTempUsageDetail_20' ) start [2025-03-14 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676907', 'tblTempUsageDetail_20' ) end [2025-03-14 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676907', 'tblTempVendorCDR_20' ) start [2025-03-14 06:09:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676907', 'tblTempVendorCDR_20' ) end [2025-03-14 06:09:17] Production.INFO: ProcessCDR(1,14676907,1,1,2) [2025-03-14 06:09:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:09:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:09:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:09:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676907', 'tblTempUsageDetail_20' ) start [2025-03-14 06:09:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676907', 'tblTempUsageDetail_20' ) end [2025-03-14 06:09:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 06:09:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 06:09:20] Production.INFO: ==10230== Releasing lock... [2025-03-14 06:09:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 06:09:20] Production.INFO: 29 MB #Memory Used# [2025-03-14 06:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 03:10:06 [end_date_ymd] => 2025-03-14 06:10:06 [RateCDR] => 1 ) [2025-03-14 06:10: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-03-14 03:10:06' and `end` < '2025-03-14 06:10: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-03-14 06:10:18] Production.INFO: count ==111 [2025-03-14 06:10:18] Production.ERROR: pbx CDR StartTime 2025-03-14 03:10:06 - End Time 2025-03-14 06:10:06 [2025-03-14 06:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676913', 'tblTempUsageDetail_20' ) start [2025-03-14 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676913', 'tblTempUsageDetail_20' ) end [2025-03-14 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676913', 'tblTempVendorCDR_20' ) start [2025-03-14 06:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676913', 'tblTempVendorCDR_20' ) end [2025-03-14 06:10:18] Production.INFO: ProcessCDR(1,14676913,1,1,2) [2025-03-14 06:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676913,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676913,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676913', 'tblTempUsageDetail_20' ) start [2025-03-14 06:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676913', 'tblTempUsageDetail_20' ) end [2025-03-14 06:10:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 06:10:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 06:10:21] Production.INFO: ==10308== Releasing lock... [2025-03-14 06:10:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 06:10:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 06:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 03:11:05 [end_date_ymd] => 2025-03-14 06:11:05 [RateCDR] => 1 ) [2025-03-14 06:11: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-03-14 03:11:05' and `end` < '2025-03-14 06:11: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-03-14 06:11:17] Production.INFO: count ==111 [2025-03-14 06:11:17] Production.ERROR: pbx CDR StartTime 2025-03-14 03:11:05 - End Time 2025-03-14 06:11:05 [2025-03-14 06:11:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676918', 'tblTempUsageDetail_20' ) start [2025-03-14 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676918', 'tblTempUsageDetail_20' ) end [2025-03-14 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676918', 'tblTempVendorCDR_20' ) start [2025-03-14 06:11:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676918', 'tblTempVendorCDR_20' ) end [2025-03-14 06:11:17] Production.INFO: ProcessCDR(1,14676918,1,1,2) [2025-03-14 06:11:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:11:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676918,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:11:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:11:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676918,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676918', 'tblTempUsageDetail_20' ) start [2025-03-14 06:11:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676918', 'tblTempUsageDetail_20' ) end [2025-03-14 06:11:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 06:11:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 06:11:20] Production.INFO: ==10384== Releasing lock... [2025-03-14 06:11:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 06:11:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 06:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 03:12:06 [end_date_ymd] => 2025-03-14 06:12:06 [RateCDR] => 1 ) [2025-03-14 06:12: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-03-14 03:12:06' and `end` < '2025-03-14 06:12: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-03-14 06:12:18] Production.INFO: count ==111 [2025-03-14 06:12:18] Production.ERROR: pbx CDR StartTime 2025-03-14 03:12:06 - End Time 2025-03-14 06:12:06 [2025-03-14 06:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676923', 'tblTempUsageDetail_20' ) start [2025-03-14 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676923', 'tblTempUsageDetail_20' ) end [2025-03-14 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676923', 'tblTempVendorCDR_20' ) start [2025-03-14 06:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676923', 'tblTempVendorCDR_20' ) end [2025-03-14 06:12:18] Production.INFO: ProcessCDR(1,14676923,1,1,2) [2025-03-14 06:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676923,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676923,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676923', 'tblTempUsageDetail_20' ) start [2025-03-14 06:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676923', 'tblTempUsageDetail_20' ) end [2025-03-14 06:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 06:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 06:12:21] Production.INFO: ==10459== Releasing lock... [2025-03-14 06:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 06:12:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 06:13:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 03:13:04 [end_date_ymd] => 2025-03-14 06:13:04 [RateCDR] => 1 ) [2025-03-14 06:13: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-03-14 03:13:04' and `end` < '2025-03-14 06:13: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-03-14 06:13:16] Production.INFO: count ==111 [2025-03-14 06:13:16] Production.ERROR: pbx CDR StartTime 2025-03-14 03:13:04 - End Time 2025-03-14 06:13:04 [2025-03-14 06:13:16] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 06:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676928', 'tblTempUsageDetail_20' ) start [2025-03-14 06:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676928', 'tblTempUsageDetail_20' ) end [2025-03-14 06:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676928', 'tblTempVendorCDR_20' ) start [2025-03-14 06:13:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676928', 'tblTempVendorCDR_20' ) end [2025-03-14 06:13:16] Production.INFO: ProcessCDR(1,14676928,1,1,2) [2025-03-14 06:13:16] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:13:17] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676928,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:13:17] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:13:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676928,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676928', 'tblTempUsageDetail_20' ) start [2025-03-14 06:13:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676928', 'tblTempUsageDetail_20' ) end [2025-03-14 06:13:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 06:13:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 06:13:20] Production.INFO: ==10530== Releasing lock... [2025-03-14 06:13:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 06:13:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 06:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 03:14:05 [end_date_ymd] => 2025-03-14 06:14:05 [RateCDR] => 1 ) [2025-03-14 06:14: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-03-14 03:14:05' and `end` < '2025-03-14 06:14: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-03-14 06:14:17] Production.INFO: count ==112 [2025-03-14 06:14:17] Production.ERROR: pbx CDR StartTime 2025-03-14 03:14:05 - End Time 2025-03-14 06:14:05 [2025-03-14 06:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676933', 'tblTempUsageDetail_20' ) start [2025-03-14 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676933', 'tblTempUsageDetail_20' ) end [2025-03-14 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676933', 'tblTempVendorCDR_20' ) start [2025-03-14 06:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676933', 'tblTempVendorCDR_20' ) end [2025-03-14 06:14:17] Production.INFO: ProcessCDR(1,14676933,1,1,2) [2025-03-14 06:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676933,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676933,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676933', 'tblTempUsageDetail_20' ) start [2025-03-14 06:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676933', 'tblTempUsageDetail_20' ) end [2025-03-14 06:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 06:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 06:14:22] Production.INFO: ==10604== Releasing lock... [2025-03-14 06:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 06:14:22] Production.INFO: 29 MB #Memory Used# [2025-03-14 06:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 03:15:05 [end_date_ymd] => 2025-03-14 06:15:05 [RateCDR] => 1 ) [2025-03-14 06:15: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-03-14 03:15:05' and `end` < '2025-03-14 06:15: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-03-14 06:15:17] Production.INFO: count ==112 [2025-03-14 06:15:17] Production.ERROR: pbx CDR StartTime 2025-03-14 03:15:05 - End Time 2025-03-14 06:15:05 [2025-03-14 06:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676938', 'tblTempUsageDetail_20' ) start [2025-03-14 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676938', 'tblTempUsageDetail_20' ) end [2025-03-14 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676938', 'tblTempVendorCDR_20' ) start [2025-03-14 06:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676938', 'tblTempVendorCDR_20' ) end [2025-03-14 06:15:17] Production.INFO: ProcessCDR(1,14676938,1,1,2) [2025-03-14 06:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676938', 'tblTempUsageDetail_20' ) start [2025-03-14 06:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676938', 'tblTempUsageDetail_20' ) end [2025-03-14 06:15:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 06:15:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 06:15:20] Production.INFO: ==10680== Releasing lock... [2025-03-14 06:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 06:15:20] Production.INFO: 29 MB #Memory Used# [2025-03-14 06:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 03:16:06 [end_date_ymd] => 2025-03-14 06:16:06 [RateCDR] => 1 ) [2025-03-14 06:16: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-03-14 03:16:06' and `end` < '2025-03-14 06:16: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-03-14 06:16:18] Production.INFO: count ==112 [2025-03-14 06:16:18] Production.ERROR: pbx CDR StartTime 2025-03-14 03:16:06 - End Time 2025-03-14 06:16:06 [2025-03-14 06:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676943', 'tblTempUsageDetail_20' ) start [2025-03-14 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676943', 'tblTempUsageDetail_20' ) end [2025-03-14 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676943', 'tblTempVendorCDR_20' ) start [2025-03-14 06:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676943', 'tblTempVendorCDR_20' ) end [2025-03-14 06:16:18] Production.INFO: ProcessCDR(1,14676943,1,1,2) [2025-03-14 06:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676943', 'tblTempUsageDetail_20' ) start [2025-03-14 06:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676943', 'tblTempUsageDetail_20' ) end [2025-03-14 06:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 06:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 06:16:21] Production.INFO: ==10755== Releasing lock... [2025-03-14 06:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 06:16:21] Production.INFO: 29 MB #Memory Used# [2025-03-14 06:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 03:17:05 [end_date_ymd] => 2025-03-14 06:17:05 [RateCDR] => 1 ) [2025-03-14 06:17: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-03-14 03:17:05' and `end` < '2025-03-14 06:17: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-03-14 06:17:17] Production.INFO: count ==112 [2025-03-14 06:17:17] Production.ERROR: pbx CDR StartTime 2025-03-14 03:17:05 - End Time 2025-03-14 06:17:05 [2025-03-14 06:17:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676948', 'tblTempUsageDetail_20' ) start [2025-03-14 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676948', 'tblTempUsageDetail_20' ) end [2025-03-14 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676948', 'tblTempVendorCDR_20' ) start [2025-03-14 06:17:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676948', 'tblTempVendorCDR_20' ) end [2025-03-14 06:17:17] Production.INFO: ProcessCDR(1,14676948,1,1,2) [2025-03-14 06:17:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:17:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:17:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:17:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676948', 'tblTempUsageDetail_20' ) start [2025-03-14 06:17:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676948', 'tblTempUsageDetail_20' ) end [2025-03-14 06:17:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 06:17:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 06:17:20] Production.INFO: ==10828== Releasing lock... [2025-03-14 06:17:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 06:17:20] Production.INFO: 29 MB #Memory Used# [2025-03-14 06:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 03:18:05 [end_date_ymd] => 2025-03-14 06:18:05 [RateCDR] => 1 ) [2025-03-14 06:18: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-03-14 03:18:05' and `end` < '2025-03-14 06:18: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-03-14 06:18:17] Production.INFO: count ==113 [2025-03-14 06:18:17] Production.ERROR: pbx CDR StartTime 2025-03-14 03:18:05 - End Time 2025-03-14 06:18:05 [2025-03-14 06:18:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676953', 'tblTempUsageDetail_20' ) start [2025-03-14 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676953', 'tblTempUsageDetail_20' ) end [2025-03-14 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676953', 'tblTempVendorCDR_20' ) start [2025-03-14 06:18:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676953', 'tblTempVendorCDR_20' ) end [2025-03-14 06:18:17] Production.INFO: ProcessCDR(1,14676953,1,1,2) [2025-03-14 06:18:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:18:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:18:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676953', 'tblTempUsageDetail_20' ) start [2025-03-14 06:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676953', 'tblTempUsageDetail_20' ) end [2025-03-14 06:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 06:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 06:18:21] Production.INFO: ==10937== Releasing lock... [2025-03-14 06:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 06:18:21] Production.INFO: 29 MB #Memory Used# [2025-03-14 06:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 03:19:06 [end_date_ymd] => 2025-03-14 06:19:06 [RateCDR] => 1 ) [2025-03-14 06:19: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-03-14 03:19:06' and `end` < '2025-03-14 06:19: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-03-14 06:19:18] Production.INFO: count ==120 [2025-03-14 06:19:18] Production.ERROR: pbx CDR StartTime 2025-03-14 03:19:06 - End Time 2025-03-14 06:19:06 [2025-03-14 06:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676958', 'tblTempUsageDetail_20' ) start [2025-03-14 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676958', 'tblTempUsageDetail_20' ) end [2025-03-14 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676958', 'tblTempVendorCDR_20' ) start [2025-03-14 06:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676958', 'tblTempVendorCDR_20' ) end [2025-03-14 06:19:18] Production.INFO: ProcessCDR(1,14676958,1,1,2) [2025-03-14 06:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676958', 'tblTempUsageDetail_20' ) start [2025-03-14 06:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676958', 'tblTempUsageDetail_20' ) end [2025-03-14 06:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 06:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 06:19:21] Production.INFO: ==11013== Releasing lock... [2025-03-14 06:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 06:19:21] Production.INFO: 29 MB #Memory Used# [2025-03-14 06:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 03:20:06 [end_date_ymd] => 2025-03-14 06:20:06 [RateCDR] => 1 ) [2025-03-14 06:20: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-03-14 03:20:06' and `end` < '2025-03-14 06:20: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-03-14 06:20:18] Production.INFO: count ==120 [2025-03-14 06:20:18] Production.ERROR: pbx CDR StartTime 2025-03-14 03:20:06 - End Time 2025-03-14 06:20:06 [2025-03-14 06:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676964', 'tblTempUsageDetail_20' ) start [2025-03-14 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676964', 'tblTempUsageDetail_20' ) end [2025-03-14 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676964', 'tblTempVendorCDR_20' ) start [2025-03-14 06:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676964', 'tblTempVendorCDR_20' ) end [2025-03-14 06:20:18] Production.INFO: ProcessCDR(1,14676964,1,1,2) [2025-03-14 06:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676964,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676964,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676964', 'tblTempUsageDetail_20' ) start [2025-03-14 06:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676964', 'tblTempUsageDetail_20' ) end [2025-03-14 06:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 06:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 06:20:21] Production.INFO: ==11092== Releasing lock... [2025-03-14 06:20:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 06:20:21] Production.INFO: 29 MB #Memory Used# [2025-03-14 06:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 03:21:05 [end_date_ymd] => 2025-03-14 06:21:05 [RateCDR] => 1 ) [2025-03-14 06:21: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-03-14 03:21:05' and `end` < '2025-03-14 06:21: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-03-14 06:21:18] Production.INFO: count ==120 [2025-03-14 06:21:18] Production.ERROR: pbx CDR StartTime 2025-03-14 03:21:05 - End Time 2025-03-14 06:21:05 [2025-03-14 06:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676969', 'tblTempUsageDetail_20' ) start [2025-03-14 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676969', 'tblTempUsageDetail_20' ) end [2025-03-14 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676969', 'tblTempVendorCDR_20' ) start [2025-03-14 06:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676969', 'tblTempVendorCDR_20' ) end [2025-03-14 06:21:18] Production.INFO: ProcessCDR(1,14676969,1,1,2) [2025-03-14 06:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676969,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676969,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676969', 'tblTempUsageDetail_20' ) start [2025-03-14 06:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676969', 'tblTempUsageDetail_20' ) end [2025-03-14 06:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 06:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 06:21:21] Production.INFO: ==11168== Releasing lock... [2025-03-14 06:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 06:21:21] Production.INFO: 29 MB #Memory Used# [2025-03-14 06:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 03:22:05 [end_date_ymd] => 2025-03-14 06:22:05 [RateCDR] => 1 ) [2025-03-14 06:22: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-03-14 03:22:05' and `end` < '2025-03-14 06:22: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-03-14 06:22:17] Production.INFO: count ==120 [2025-03-14 06:22:17] Production.ERROR: pbx CDR StartTime 2025-03-14 03:22:05 - End Time 2025-03-14 06:22:05 [2025-03-14 06:22:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676974', 'tblTempUsageDetail_20' ) start [2025-03-14 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676974', 'tblTempUsageDetail_20' ) end [2025-03-14 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676974', 'tblTempVendorCDR_20' ) start [2025-03-14 06:22:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676974', 'tblTempVendorCDR_20' ) end [2025-03-14 06:22:17] Production.INFO: ProcessCDR(1,14676974,1,1,2) [2025-03-14 06:22:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676974,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676974,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676974', 'tblTempUsageDetail_20' ) start [2025-03-14 06:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676974', 'tblTempUsageDetail_20' ) end [2025-03-14 06:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 06:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 06:22:21] Production.INFO: ==11244== Releasing lock... [2025-03-14 06:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 06:22:21] Production.INFO: 29 MB #Memory Used# [2025-03-14 06:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 03:23:05 [end_date_ymd] => 2025-03-14 06:23:05 [RateCDR] => 1 ) [2025-03-14 06:23: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-03-14 03:23:05' and `end` < '2025-03-14 06:23: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-03-14 06:23:17] Production.INFO: count ==120 [2025-03-14 06:23:17] Production.ERROR: pbx CDR StartTime 2025-03-14 03:23:05 - End Time 2025-03-14 06:23:05 [2025-03-14 06:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 06:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676979', 'tblTempUsageDetail_20' ) start [2025-03-14 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676979', 'tblTempUsageDetail_20' ) end [2025-03-14 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676979', 'tblTempVendorCDR_20' ) start [2025-03-14 06:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676979', 'tblTempVendorCDR_20' ) end [2025-03-14 06:23:18] Production.INFO: ProcessCDR(1,14676979,1,1,2) [2025-03-14 06:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676979,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676979,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676979', 'tblTempUsageDetail_20' ) start [2025-03-14 06:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676979', 'tblTempUsageDetail_20' ) end [2025-03-14 06:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 06:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 06:23:21] Production.INFO: ==11323== Releasing lock... [2025-03-14 06:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 06:23:21] Production.INFO: 29 MB #Memory Used# [2025-03-14 06:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 03:24:05 [end_date_ymd] => 2025-03-14 06:24:05 [RateCDR] => 1 ) [2025-03-14 06:24: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-03-14 03:24:05' and `end` < '2025-03-14 06:24: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-03-14 06:24:17] Production.INFO: count ==120 [2025-03-14 06:24:17] Production.ERROR: pbx CDR StartTime 2025-03-14 03:24:05 - End Time 2025-03-14 06:24:05 [2025-03-14 06:24:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676984', 'tblTempUsageDetail_20' ) start [2025-03-14 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676984', 'tblTempUsageDetail_20' ) end [2025-03-14 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676984', 'tblTempVendorCDR_20' ) start [2025-03-14 06:24:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676984', 'tblTempVendorCDR_20' ) end [2025-03-14 06:24:17] Production.INFO: ProcessCDR(1,14676984,1,1,2) [2025-03-14 06:24:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:24:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:24:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676984', 'tblTempUsageDetail_20' ) start [2025-03-14 06:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676984', 'tblTempUsageDetail_20' ) end [2025-03-14 06:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 06:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 06:24:21] Production.INFO: ==11402== Releasing lock... [2025-03-14 06:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 06:24:21] Production.INFO: 29 MB #Memory Used# [2025-03-14 06:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 03:25:05 [end_date_ymd] => 2025-03-14 06:25:05 [RateCDR] => 1 ) [2025-03-14 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-03-14 03:25:05' and `end` < '2025-03-14 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-03-14 06:25:18] Production.INFO: count ==120 [2025-03-14 06:25:18] Production.ERROR: pbx CDR StartTime 2025-03-14 03:25:05 - End Time 2025-03-14 06:25:05 [2025-03-14 06:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676989', 'tblTempUsageDetail_20' ) start [2025-03-14 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676989', 'tblTempUsageDetail_20' ) end [2025-03-14 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676989', 'tblTempVendorCDR_20' ) start [2025-03-14 06:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676989', 'tblTempVendorCDR_20' ) end [2025-03-14 06:25:18] Production.INFO: ProcessCDR(1,14676989,1,1,2) [2025-03-14 06:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676989', 'tblTempUsageDetail_20' ) start [2025-03-14 06:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676989', 'tblTempUsageDetail_20' ) end [2025-03-14 06:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 06:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 06:25:21] Production.INFO: ==11479== Releasing lock... [2025-03-14 06:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 06:25:21] Production.INFO: 29 MB #Memory Used# [2025-03-14 06:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 03:26:05 [end_date_ymd] => 2025-03-14 06:26:05 [RateCDR] => 1 ) [2025-03-14 06:26: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-03-14 03:26:05' and `end` < '2025-03-14 06:26: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-03-14 06:26:17] Production.INFO: count ==120 [2025-03-14 06:26:17] Production.ERROR: pbx CDR StartTime 2025-03-14 03:26:05 - End Time 2025-03-14 06:26:05 [2025-03-14 06:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676994', 'tblTempUsageDetail_20' ) start [2025-03-14 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676994', 'tblTempUsageDetail_20' ) end [2025-03-14 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676994', 'tblTempVendorCDR_20' ) start [2025-03-14 06:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676994', 'tblTempVendorCDR_20' ) end [2025-03-14 06:26:17] Production.INFO: ProcessCDR(1,14676994,1,1,2) [2025-03-14 06:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:26:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676994', 'tblTempUsageDetail_20' ) start [2025-03-14 06:26:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676994', 'tblTempUsageDetail_20' ) end [2025-03-14 06:26:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 06:26:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 06:26:20] Production.INFO: ==11553== Releasing lock... [2025-03-14 06:26:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 06:26:20] Production.INFO: 29 MB #Memory Used# [2025-03-14 06:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 03:27:05 [end_date_ymd] => 2025-03-14 06:27:05 [RateCDR] => 1 ) [2025-03-14 06:27: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-03-14 03:27:05' and `end` < '2025-03-14 06:27: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-03-14 06:27:17] Production.INFO: count ==116 [2025-03-14 06:27:17] Production.ERROR: pbx CDR StartTime 2025-03-14 03:27:05 - End Time 2025-03-14 06:27:05 [2025-03-14 06:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676999', 'tblTempUsageDetail_20' ) start [2025-03-14 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14676999', 'tblTempUsageDetail_20' ) end [2025-03-14 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676999', 'tblTempVendorCDR_20' ) start [2025-03-14 06:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14676999', 'tblTempVendorCDR_20' ) end [2025-03-14 06:27:17] Production.INFO: ProcessCDR(1,14676999,1,1,2) [2025-03-14 06:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14676999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14676999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14676999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14676999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676999', 'tblTempUsageDetail_20' ) start [2025-03-14 06:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14676999', 'tblTempUsageDetail_20' ) end [2025-03-14 06:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 06:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 06:27:21] Production.INFO: ==11626== Releasing lock... [2025-03-14 06:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 06:27:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 06:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 03:28:05 [end_date_ymd] => 2025-03-14 06:28:05 [RateCDR] => 1 ) [2025-03-14 06:28: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-03-14 03:28:05' and `end` < '2025-03-14 06:28: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-03-14 06:28:17] Production.INFO: count ==112 [2025-03-14 06:28:17] Production.ERROR: pbx CDR StartTime 2025-03-14 03:28:05 - End Time 2025-03-14 06:28:05 [2025-03-14 06:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677004', 'tblTempUsageDetail_20' ) start [2025-03-14 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677004', 'tblTempUsageDetail_20' ) end [2025-03-14 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677004', 'tblTempVendorCDR_20' ) start [2025-03-14 06:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677004', 'tblTempVendorCDR_20' ) end [2025-03-14 06:28:17] Production.INFO: ProcessCDR(1,14677004,1,1,2) [2025-03-14 06:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:28:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:28:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:28:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677004', 'tblTempUsageDetail_20' ) start [2025-03-14 06:28:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677004', 'tblTempUsageDetail_20' ) end [2025-03-14 06:28:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 06:28:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 06:28:20] Production.INFO: ==11695== Releasing lock... [2025-03-14 06:28:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 06:28:20] Production.INFO: 29 MB #Memory Used# [2025-03-14 06:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 03:29:05 [end_date_ymd] => 2025-03-14 06:29:05 [RateCDR] => 1 ) [2025-03-14 06:29: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-03-14 03:29:05' and `end` < '2025-03-14 06:29: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-03-14 06:29:17] Production.INFO: count ==112 [2025-03-14 06:29:17] Production.ERROR: pbx CDR StartTime 2025-03-14 03:29:05 - End Time 2025-03-14 06:29:05 [2025-03-14 06:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677009', 'tblTempUsageDetail_20' ) start [2025-03-14 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677009', 'tblTempUsageDetail_20' ) end [2025-03-14 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677009', 'tblTempVendorCDR_20' ) start [2025-03-14 06:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677009', 'tblTempVendorCDR_20' ) end [2025-03-14 06:29:17] Production.INFO: ProcessCDR(1,14677009,1,1,2) [2025-03-14 06:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677009', 'tblTempUsageDetail_20' ) start [2025-03-14 06:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677009', 'tblTempUsageDetail_20' ) end [2025-03-14 06:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 06:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 06:29:21] Production.INFO: ==11771== Releasing lock... [2025-03-14 06:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 06:29:21] Production.INFO: 29 MB #Memory Used# [2025-03-14 06:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 03:30:06 [end_date_ymd] => 2025-03-14 06:30:06 [RateCDR] => 1 ) [2025-03-14 06:30: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-03-14 03:30:06' and `end` < '2025-03-14 06:30: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-03-14 06:30:18] Production.INFO: count ==104 [2025-03-14 06:30:18] Production.ERROR: pbx CDR StartTime 2025-03-14 03:30:06 - End Time 2025-03-14 06:30:06 [2025-03-14 06:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677015', 'tblTempUsageDetail_20' ) start [2025-03-14 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677015', 'tblTempUsageDetail_20' ) end [2025-03-14 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677015', 'tblTempVendorCDR_20' ) start [2025-03-14 06:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677015', 'tblTempVendorCDR_20' ) end [2025-03-14 06:30:18] Production.INFO: ProcessCDR(1,14677015,1,1,2) [2025-03-14 06:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677015,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677015,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677015', 'tblTempUsageDetail_20' ) start [2025-03-14 06:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677015', 'tblTempUsageDetail_20' ) end [2025-03-14 06:30:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 06:30:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 06:30:21] Production.INFO: ==11846== Releasing lock... [2025-03-14 06:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 06:30:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 06:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 03:31:05 [end_date_ymd] => 2025-03-14 06:31:05 [RateCDR] => 1 ) [2025-03-14 06:31: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-03-14 03:31:05' and `end` < '2025-03-14 06:31: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-03-14 06:31:17] Production.INFO: count ==100 [2025-03-14 06:31:17] Production.ERROR: pbx CDR StartTime 2025-03-14 03:31:05 - End Time 2025-03-14 06:31:05 [2025-03-14 06:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677020', 'tblTempUsageDetail_20' ) start [2025-03-14 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677020', 'tblTempUsageDetail_20' ) end [2025-03-14 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677020', 'tblTempVendorCDR_20' ) start [2025-03-14 06:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677020', 'tblTempVendorCDR_20' ) end [2025-03-14 06:31:17] Production.INFO: ProcessCDR(1,14677020,1,1,2) [2025-03-14 06:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677020,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:31:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677020,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677020', 'tblTempUsageDetail_20' ) start [2025-03-14 06:31:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677020', 'tblTempUsageDetail_20' ) end [2025-03-14 06:31:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 06:31:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 06:31:20] Production.INFO: ==11920== Releasing lock... [2025-03-14 06:31:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 06:31:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 06:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 03:32:06 [end_date_ymd] => 2025-03-14 06:32:06 [RateCDR] => 1 ) [2025-03-14 06:32: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-03-14 03:32:06' and `end` < '2025-03-14 06:32: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-03-14 06:32:18] Production.INFO: count ==100 [2025-03-14 06:32:18] Production.ERROR: pbx CDR StartTime 2025-03-14 03:32:06 - End Time 2025-03-14 06:32:06 [2025-03-14 06:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677025', 'tblTempUsageDetail_20' ) start [2025-03-14 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677025', 'tblTempUsageDetail_20' ) end [2025-03-14 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677025', 'tblTempVendorCDR_20' ) start [2025-03-14 06:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677025', 'tblTempVendorCDR_20' ) end [2025-03-14 06:32:18] Production.INFO: ProcessCDR(1,14677025,1,1,2) [2025-03-14 06:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677025,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677025,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677025', 'tblTempUsageDetail_20' ) start [2025-03-14 06:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677025', 'tblTempUsageDetail_20' ) end [2025-03-14 06:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 06:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 06:32:21] Production.INFO: ==11994== Releasing lock... [2025-03-14 06:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 06:32:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 06:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 03:33:06 [end_date_ymd] => 2025-03-14 06:33:06 [RateCDR] => 1 ) [2025-03-14 06:33: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-03-14 03:33:06' and `end` < '2025-03-14 06:33: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-03-14 06:33:18] Production.INFO: count ==100 [2025-03-14 06:33:18] Production.ERROR: pbx CDR StartTime 2025-03-14 03:33:06 - End Time 2025-03-14 06:33:06 [2025-03-14 06:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677030', 'tblTempUsageDetail_20' ) start [2025-03-14 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677030', 'tblTempUsageDetail_20' ) end [2025-03-14 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677030', 'tblTempVendorCDR_20' ) start [2025-03-14 06:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677030', 'tblTempVendorCDR_20' ) end [2025-03-14 06:33:18] Production.INFO: ProcessCDR(1,14677030,1,1,2) [2025-03-14 06:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677030,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677030,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677030', 'tblTempUsageDetail_20' ) start [2025-03-14 06:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677030', 'tblTempUsageDetail_20' ) end [2025-03-14 06:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 06:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 06:33:21] Production.INFO: ==12069== Releasing lock... [2025-03-14 06:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 06:33:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 06:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 03:34:05 [end_date_ymd] => 2025-03-14 06:34:05 [RateCDR] => 1 ) [2025-03-14 06:34: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-03-14 03:34:05' and `end` < '2025-03-14 06:34: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-03-14 06:34:17] Production.INFO: count ==96 [2025-03-14 06:34:17] Production.ERROR: pbx CDR StartTime 2025-03-14 03:34:05 - End Time 2025-03-14 06:34:05 [2025-03-14 06:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677035', 'tblTempUsageDetail_20' ) start [2025-03-14 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677035', 'tblTempUsageDetail_20' ) end [2025-03-14 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677035', 'tblTempVendorCDR_20' ) start [2025-03-14 06:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677035', 'tblTempVendorCDR_20' ) end [2025-03-14 06:34:17] Production.INFO: ProcessCDR(1,14677035,1,1,2) [2025-03-14 06:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:34:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677035', 'tblTempUsageDetail_20' ) start [2025-03-14 06:34:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677035', 'tblTempUsageDetail_20' ) end [2025-03-14 06:34:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 06:34:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 06:34:20] Production.INFO: ==12179== Releasing lock... [2025-03-14 06:34:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 06:34:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 06:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 03:35:05 [end_date_ymd] => 2025-03-14 06:35:05 [RateCDR] => 1 ) [2025-03-14 06:35: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-03-14 03:35:05' and `end` < '2025-03-14 06:35: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-03-14 06:35:17] Production.INFO: count ==96 [2025-03-14 06:35:17] Production.ERROR: pbx CDR StartTime 2025-03-14 03:35:05 - End Time 2025-03-14 06:35:05 [2025-03-14 06:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677040', 'tblTempUsageDetail_20' ) start [2025-03-14 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677040', 'tblTempUsageDetail_20' ) end [2025-03-14 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677040', 'tblTempVendorCDR_20' ) start [2025-03-14 06:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677040', 'tblTempVendorCDR_20' ) end [2025-03-14 06:35:17] Production.INFO: ProcessCDR(1,14677040,1,1,2) [2025-03-14 06:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677040', 'tblTempUsageDetail_20' ) start [2025-03-14 06:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677040', 'tblTempUsageDetail_20' ) end [2025-03-14 06:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 06:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 06:35:21] Production.INFO: ==12251== Releasing lock... [2025-03-14 06:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 06:35:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 06:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 03:36:05 [end_date_ymd] => 2025-03-14 06:36:05 [RateCDR] => 1 ) [2025-03-14 06:36: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-03-14 03:36:05' and `end` < '2025-03-14 06:36: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-03-14 06:36:17] Production.INFO: count ==96 [2025-03-14 06:36:17] Production.ERROR: pbx CDR StartTime 2025-03-14 03:36:05 - End Time 2025-03-14 06:36:05 [2025-03-14 06:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677045', 'tblTempUsageDetail_20' ) start [2025-03-14 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677045', 'tblTempUsageDetail_20' ) end [2025-03-14 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677045', 'tblTempVendorCDR_20' ) start [2025-03-14 06:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677045', 'tblTempVendorCDR_20' ) end [2025-03-14 06:36:17] Production.INFO: ProcessCDR(1,14677045,1,1,2) [2025-03-14 06:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677045', 'tblTempUsageDetail_20' ) start [2025-03-14 06:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677045', 'tblTempUsageDetail_20' ) end [2025-03-14 06:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 06:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 06:36:21] Production.INFO: ==12331== Releasing lock... [2025-03-14 06:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 06:36:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 06:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 03:37:06 [end_date_ymd] => 2025-03-14 06:37:06 [RateCDR] => 1 ) [2025-03-14 06:37: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-03-14 03:37:06' and `end` < '2025-03-14 06:37: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-03-14 06:37:18] Production.INFO: count ==96 [2025-03-14 06:37:18] Production.ERROR: pbx CDR StartTime 2025-03-14 03:37:06 - End Time 2025-03-14 06:37:06 [2025-03-14 06:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677050', 'tblTempUsageDetail_20' ) start [2025-03-14 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677050', 'tblTempUsageDetail_20' ) end [2025-03-14 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677050', 'tblTempVendorCDR_20' ) start [2025-03-14 06:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677050', 'tblTempVendorCDR_20' ) end [2025-03-14 06:37:18] Production.INFO: ProcessCDR(1,14677050,1,1,2) [2025-03-14 06:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677050', 'tblTempUsageDetail_20' ) start [2025-03-14 06:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677050', 'tblTempUsageDetail_20' ) end [2025-03-14 06:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 06:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 06:37:21] Production.INFO: ==12403== Releasing lock... [2025-03-14 06:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 06:37:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 06:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 03:38:05 [end_date_ymd] => 2025-03-14 06:38:05 [RateCDR] => 1 ) [2025-03-14 06:38: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-03-14 03:38:05' and `end` < '2025-03-14 06:38: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-03-14 06:38:17] Production.INFO: count ==95 [2025-03-14 06:38:17] Production.ERROR: pbx CDR StartTime 2025-03-14 03:38:05 - End Time 2025-03-14 06:38:05 [2025-03-14 06:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677055', 'tblTempUsageDetail_20' ) start [2025-03-14 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677055', 'tblTempUsageDetail_20' ) end [2025-03-14 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677055', 'tblTempVendorCDR_20' ) start [2025-03-14 06:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677055', 'tblTempVendorCDR_20' ) end [2025-03-14 06:38:17] Production.INFO: ProcessCDR(1,14677055,1,1,2) [2025-03-14 06:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677055', 'tblTempUsageDetail_20' ) start [2025-03-14 06:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677055', 'tblTempUsageDetail_20' ) end [2025-03-14 06:38:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 06:38:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 06:38:20] Production.INFO: ==12486== Releasing lock... [2025-03-14 06:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 06:38:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 06:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 03:39:05 [end_date_ymd] => 2025-03-14 06:39:05 [RateCDR] => 1 ) [2025-03-14 06:39: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-03-14 03:39:05' and `end` < '2025-03-14 06:39: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-03-14 06:39:17] Production.INFO: count ==95 [2025-03-14 06:39:17] Production.ERROR: pbx CDR StartTime 2025-03-14 03:39:05 - End Time 2025-03-14 06:39:05 [2025-03-14 06:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677060', 'tblTempUsageDetail_20' ) start [2025-03-14 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677060', 'tblTempUsageDetail_20' ) end [2025-03-14 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677060', 'tblTempVendorCDR_20' ) start [2025-03-14 06:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677060', 'tblTempVendorCDR_20' ) end [2025-03-14 06:39:17] Production.INFO: ProcessCDR(1,14677060,1,1,2) [2025-03-14 06:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:39:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:39:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677060', 'tblTempUsageDetail_20' ) start [2025-03-14 06:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677060', 'tblTempUsageDetail_20' ) end [2025-03-14 06:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 06:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 06:39:21] Production.INFO: ==12560== Releasing lock... [2025-03-14 06:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 06:39:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 06:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 03:40:05 [end_date_ymd] => 2025-03-14 06:40:05 [RateCDR] => 1 ) [2025-03-14 06:40: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-03-14 03:40:05' and `end` < '2025-03-14 06:40: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-03-14 06:40:17] Production.INFO: count ==97 [2025-03-14 06:40:17] Production.ERROR: pbx CDR StartTime 2025-03-14 03:40:05 - End Time 2025-03-14 06:40:05 [2025-03-14 06:40:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 06:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677066', 'tblTempUsageDetail_20' ) start [2025-03-14 06:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677066', 'tblTempUsageDetail_20' ) end [2025-03-14 06:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677066', 'tblTempVendorCDR_20' ) start [2025-03-14 06:40:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677066', 'tblTempVendorCDR_20' ) end [2025-03-14 06:40:17] Production.INFO: ProcessCDR(1,14677066,1,1,2) [2025-03-14 06:40:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:40:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677066,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:40:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677066,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677066', 'tblTempUsageDetail_20' ) start [2025-03-14 06:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677066', 'tblTempUsageDetail_20' ) end [2025-03-14 06:40:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 06:40:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 06:40:21] Production.INFO: ==12632== Releasing lock... [2025-03-14 06:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 06:40:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 06:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 03:41:05 [end_date_ymd] => 2025-03-14 06:41:05 [RateCDR] => 1 ) [2025-03-14 06:41: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-03-14 03:41:05' and `end` < '2025-03-14 06:41: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-03-14 06:41:17] Production.INFO: count ==97 [2025-03-14 06:41:17] Production.ERROR: pbx CDR StartTime 2025-03-14 03:41:05 - End Time 2025-03-14 06:41:05 [2025-03-14 06:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677071', 'tblTempUsageDetail_20' ) start [2025-03-14 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677071', 'tblTempUsageDetail_20' ) end [2025-03-14 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677071', 'tblTempVendorCDR_20' ) start [2025-03-14 06:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677071', 'tblTempVendorCDR_20' ) end [2025-03-14 06:41:17] Production.INFO: ProcessCDR(1,14677071,1,1,2) [2025-03-14 06:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677071,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677071,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677071', 'tblTempUsageDetail_20' ) start [2025-03-14 06:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677071', 'tblTempUsageDetail_20' ) end [2025-03-14 06:41:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 06:41:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 06:41:20] Production.INFO: ==12707== Releasing lock... [2025-03-14 06:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 06:41:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 06:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 03:42:05 [end_date_ymd] => 2025-03-14 06:42:05 [RateCDR] => 1 ) [2025-03-14 06:42: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-03-14 03:42:05' and `end` < '2025-03-14 06:42: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-03-14 06:42:17] Production.INFO: count ==97 [2025-03-14 06:42:17] Production.ERROR: pbx CDR StartTime 2025-03-14 03:42:05 - End Time 2025-03-14 06:42:05 [2025-03-14 06:42:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677076', 'tblTempUsageDetail_20' ) start [2025-03-14 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677076', 'tblTempUsageDetail_20' ) end [2025-03-14 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677076', 'tblTempVendorCDR_20' ) start [2025-03-14 06:42:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677076', 'tblTempVendorCDR_20' ) end [2025-03-14 06:42:17] Production.INFO: ProcessCDR(1,14677076,1,1,2) [2025-03-14 06:42:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:42:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677076,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:42:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:42:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677076,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677076', 'tblTempUsageDetail_20' ) start [2025-03-14 06:42:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677076', 'tblTempUsageDetail_20' ) end [2025-03-14 06:42:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 06:42:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 06:42:20] Production.INFO: ==12780== Releasing lock... [2025-03-14 06:42:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 06:42:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 06:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 03:43:05 [end_date_ymd] => 2025-03-14 06:43:05 [RateCDR] => 1 ) [2025-03-14 06:43: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-03-14 03:43:05' and `end` < '2025-03-14 06:43: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-03-14 06:43:17] Production.INFO: count ==97 [2025-03-14 06:43:18] Production.ERROR: pbx CDR StartTime 2025-03-14 03:43:05 - End Time 2025-03-14 06:43:05 [2025-03-14 06:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677081', 'tblTempUsageDetail_20' ) start [2025-03-14 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677081', 'tblTempUsageDetail_20' ) end [2025-03-14 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677081', 'tblTempVendorCDR_20' ) start [2025-03-14 06:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677081', 'tblTempVendorCDR_20' ) end [2025-03-14 06:43:18] Production.INFO: ProcessCDR(1,14677081,1,1,2) [2025-03-14 06:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677081,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677081,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677081', 'tblTempUsageDetail_20' ) start [2025-03-14 06:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677081', 'tblTempUsageDetail_20' ) end [2025-03-14 06:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 06:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 06:43:21] Production.INFO: ==12855== Releasing lock... [2025-03-14 06:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 06:43:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 06:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 03:44:05 [end_date_ymd] => 2025-03-14 06:44:05 [RateCDR] => 1 ) [2025-03-14 06:44: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-03-14 03:44:05' and `end` < '2025-03-14 06:44: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-03-14 06:44:17] Production.INFO: count ==97 [2025-03-14 06:44:17] Production.ERROR: pbx CDR StartTime 2025-03-14 03:44:05 - End Time 2025-03-14 06:44:05 [2025-03-14 06:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677086', 'tblTempUsageDetail_20' ) start [2025-03-14 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677086', 'tblTempUsageDetail_20' ) end [2025-03-14 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677086', 'tblTempVendorCDR_20' ) start [2025-03-14 06:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677086', 'tblTempVendorCDR_20' ) end [2025-03-14 06:44:17] Production.INFO: ProcessCDR(1,14677086,1,1,2) [2025-03-14 06:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677086', 'tblTempUsageDetail_20' ) start [2025-03-14 06:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677086', 'tblTempUsageDetail_20' ) end [2025-03-14 06:44:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 06:44:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 06:44:20] Production.INFO: ==12930== Releasing lock... [2025-03-14 06:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 06:44:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 06:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 03:45:05 [end_date_ymd] => 2025-03-14 06:45:05 [RateCDR] => 1 ) [2025-03-14 06:45: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-03-14 03:45:05' and `end` < '2025-03-14 06:45: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-03-14 06:45:17] Production.INFO: count ==101 [2025-03-14 06:45:17] Production.ERROR: pbx CDR StartTime 2025-03-14 03:45:05 - End Time 2025-03-14 06:45:05 [2025-03-14 06:45:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677091', 'tblTempUsageDetail_20' ) start [2025-03-14 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677091', 'tblTempUsageDetail_20' ) end [2025-03-14 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677091', 'tblTempVendorCDR_20' ) start [2025-03-14 06:45:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677091', 'tblTempVendorCDR_20' ) end [2025-03-14 06:45:17] Production.INFO: ProcessCDR(1,14677091,1,1,2) [2025-03-14 06:45:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:45:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:45:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:45:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677091', 'tblTempUsageDetail_20' ) start [2025-03-14 06:45:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677091', 'tblTempUsageDetail_20' ) end [2025-03-14 06:45:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 06:45:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 06:45:21] Production.INFO: ==13004== Releasing lock... [2025-03-14 06:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 06:45:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 06:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 03:46:05 [end_date_ymd] => 2025-03-14 06:46:05 [RateCDR] => 1 ) [2025-03-14 06:46: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-03-14 03:46:05' and `end` < '2025-03-14 06:46: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-03-14 06:46:17] Production.INFO: count ==102 [2025-03-14 06:46:17] Production.ERROR: pbx CDR StartTime 2025-03-14 03:46:05 - End Time 2025-03-14 06:46:05 [2025-03-14 06:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677096', 'tblTempUsageDetail_20' ) start [2025-03-14 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677096', 'tblTempUsageDetail_20' ) end [2025-03-14 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677096', 'tblTempVendorCDR_20' ) start [2025-03-14 06:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677096', 'tblTempVendorCDR_20' ) end [2025-03-14 06:46:17] Production.INFO: ProcessCDR(1,14677096,1,1,2) [2025-03-14 06:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677096', 'tblTempUsageDetail_20' ) start [2025-03-14 06:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677096', 'tblTempUsageDetail_20' ) end [2025-03-14 06:46:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 06:46:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 06:46:20] Production.INFO: ==13075== Releasing lock... [2025-03-14 06:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 06:46:20] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 06:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 03:47:05 [end_date_ymd] => 2025-03-14 06:47:05 [RateCDR] => 1 ) [2025-03-14 06:47: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-03-14 03:47:05' and `end` < '2025-03-14 06:47: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-03-14 06:47:17] Production.INFO: count ==105 [2025-03-14 06:47:17] Production.ERROR: pbx CDR StartTime 2025-03-14 03:47:05 - End Time 2025-03-14 06:47:05 [2025-03-14 06:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677101', 'tblTempUsageDetail_20' ) start [2025-03-14 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677101', 'tblTempUsageDetail_20' ) end [2025-03-14 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677101', 'tblTempVendorCDR_20' ) start [2025-03-14 06:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677101', 'tblTempVendorCDR_20' ) end [2025-03-14 06:47:17] Production.INFO: ProcessCDR(1,14677101,1,1,2) [2025-03-14 06:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:47:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:47:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677101', 'tblTempUsageDetail_20' ) start [2025-03-14 06:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677101', 'tblTempUsageDetail_20' ) end [2025-03-14 06:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 06:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 06:47:21] Production.INFO: ==13147== Releasing lock... [2025-03-14 06:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 06:47:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 06:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 03:48:06 [end_date_ymd] => 2025-03-14 06:48:06 [RateCDR] => 1 ) [2025-03-14 06:48: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-03-14 03:48:06' and `end` < '2025-03-14 06:48: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-03-14 06:48:18] Production.INFO: count ==106 [2025-03-14 06:48:18] Production.ERROR: pbx CDR StartTime 2025-03-14 03:48:06 - End Time 2025-03-14 06:48:06 [2025-03-14 06:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677106', 'tblTempUsageDetail_20' ) start [2025-03-14 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677106', 'tblTempUsageDetail_20' ) end [2025-03-14 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677106', 'tblTempVendorCDR_20' ) start [2025-03-14 06:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677106', 'tblTempVendorCDR_20' ) end [2025-03-14 06:48:18] Production.INFO: ProcessCDR(1,14677106,1,1,2) [2025-03-14 06:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677106', 'tblTempUsageDetail_20' ) start [2025-03-14 06:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677106', 'tblTempUsageDetail_20' ) end [2025-03-14 06:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 06:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 06:48:21] Production.INFO: ==13223== Releasing lock... [2025-03-14 06:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 06:48:21] Production.INFO: 28.75 MB #Memory Used# [2025-03-14 06:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 03:49:05 [end_date_ymd] => 2025-03-14 06:49:05 [RateCDR] => 1 ) [2025-03-14 06:49: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-03-14 03:49:05' and `end` < '2025-03-14 06:49: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-03-14 06:49:17] Production.INFO: count ==109 [2025-03-14 06:49:17] Production.ERROR: pbx CDR StartTime 2025-03-14 03:49:05 - End Time 2025-03-14 06:49:05 [2025-03-14 06:49:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677111', 'tblTempUsageDetail_20' ) start [2025-03-14 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677111', 'tblTempUsageDetail_20' ) end [2025-03-14 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677111', 'tblTempVendorCDR_20' ) start [2025-03-14 06:49:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677111', 'tblTempVendorCDR_20' ) end [2025-03-14 06:49:17] Production.INFO: ProcessCDR(1,14677111,1,1,2) [2025-03-14 06:49:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:49:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:49:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:49:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677111', 'tblTempUsageDetail_20' ) start [2025-03-14 06:49:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677111', 'tblTempUsageDetail_20' ) end [2025-03-14 06:49:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 06:49:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 06:49:20] Production.INFO: ==13333== Releasing lock... [2025-03-14 06:49:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 06:49:20] Production.INFO: 29 MB #Memory Used# [2025-03-14 06:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 03:50:06 [end_date_ymd] => 2025-03-14 06:50:06 [RateCDR] => 1 ) [2025-03-14 06:50: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-03-14 03:50:06' and `end` < '2025-03-14 06:50: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-03-14 06:50:18] Production.INFO: count ==109 [2025-03-14 06:50:18] Production.ERROR: pbx CDR StartTime 2025-03-14 03:50:06 - End Time 2025-03-14 06:50:06 [2025-03-14 06:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677116', 'tblTempUsageDetail_20' ) start [2025-03-14 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677116', 'tblTempUsageDetail_20' ) end [2025-03-14 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677116', 'tblTempVendorCDR_20' ) start [2025-03-14 06:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677116', 'tblTempVendorCDR_20' ) end [2025-03-14 06:50:18] Production.INFO: ProcessCDR(1,14677116,1,1,2) [2025-03-14 06:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:50:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:50:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:50:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677116', 'tblTempUsageDetail_20' ) start [2025-03-14 06:50:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677116', 'tblTempUsageDetail_20' ) end [2025-03-14 06:50:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 06:50:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 06:50:21] Production.INFO: ==13414== Releasing lock... [2025-03-14 06:50:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 06:50:21] Production.INFO: 29 MB #Memory Used# [2025-03-14 06:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 03:51:05 [end_date_ymd] => 2025-03-14 06:51:05 [RateCDR] => 1 ) [2025-03-14 06:51: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-03-14 03:51:05' and `end` < '2025-03-14 06:51: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-03-14 06:51:17] Production.INFO: count ==109 [2025-03-14 06:51:17] Production.ERROR: pbx CDR StartTime 2025-03-14 03:51:05 - End Time 2025-03-14 06:51:05 [2025-03-14 06:51:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677122', 'tblTempUsageDetail_20' ) start [2025-03-14 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677122', 'tblTempUsageDetail_20' ) end [2025-03-14 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677122', 'tblTempVendorCDR_20' ) start [2025-03-14 06:51:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677122', 'tblTempVendorCDR_20' ) end [2025-03-14 06:51:17] Production.INFO: ProcessCDR(1,14677122,1,1,2) [2025-03-14 06:51:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:51:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677122,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:51:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677122,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677122', 'tblTempUsageDetail_20' ) start [2025-03-14 06:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677122', 'tblTempUsageDetail_20' ) end [2025-03-14 06:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 06:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 06:51:21] Production.INFO: ==13488== Releasing lock... [2025-03-14 06:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 06:51:21] Production.INFO: 29 MB #Memory Used# [2025-03-14 06:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 03:52:05 [end_date_ymd] => 2025-03-14 06:52:05 [RateCDR] => 1 ) [2025-03-14 06:52: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-03-14 03:52:05' and `end` < '2025-03-14 06:52: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-03-14 06:52:17] Production.INFO: count ==110 [2025-03-14 06:52:17] Production.ERROR: pbx CDR StartTime 2025-03-14 03:52:05 - End Time 2025-03-14 06:52:05 [2025-03-14 06:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677127', 'tblTempUsageDetail_20' ) start [2025-03-14 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677127', 'tblTempUsageDetail_20' ) end [2025-03-14 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677127', 'tblTempVendorCDR_20' ) start [2025-03-14 06:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677127', 'tblTempVendorCDR_20' ) end [2025-03-14 06:52:17] Production.INFO: ProcessCDR(1,14677127,1,1,2) [2025-03-14 06:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677127,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677127,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677127', 'tblTempUsageDetail_20' ) start [2025-03-14 06:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677127', 'tblTempUsageDetail_20' ) end [2025-03-14 06:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 06:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 06:52:21] Production.INFO: ==13561== Releasing lock... [2025-03-14 06:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 06:52:21] Production.INFO: 29 MB #Memory Used# [2025-03-14 06:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 03:53:05 [end_date_ymd] => 2025-03-14 06:53:05 [RateCDR] => 1 ) [2025-03-14 06:53: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-03-14 03:53:05' and `end` < '2025-03-14 06:53: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-03-14 06:53:17] Production.INFO: count ==113 [2025-03-14 06:53:17] Production.ERROR: pbx CDR StartTime 2025-03-14 03:53:05 - End Time 2025-03-14 06:53:05 [2025-03-14 06:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677132', 'tblTempUsageDetail_20' ) start [2025-03-14 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677132', 'tblTempUsageDetail_20' ) end [2025-03-14 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677132', 'tblTempVendorCDR_20' ) start [2025-03-14 06:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677132', 'tblTempVendorCDR_20' ) end [2025-03-14 06:53:17] Production.INFO: ProcessCDR(1,14677132,1,1,2) [2025-03-14 06:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677132,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:53:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677132,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677132', 'tblTempUsageDetail_20' ) start [2025-03-14 06:53:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677132', 'tblTempUsageDetail_20' ) end [2025-03-14 06:53:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 06:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 06:53:21] Production.INFO: ==13636== Releasing lock... [2025-03-14 06:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 06:53:21] Production.INFO: 29 MB #Memory Used# [2025-03-14 06:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 03:54:05 [end_date_ymd] => 2025-03-14 06:54:05 [RateCDR] => 1 ) [2025-03-14 06:54: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-03-14 03:54:05' and `end` < '2025-03-14 06:54: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-03-14 06:54:17] Production.INFO: count ==113 [2025-03-14 06:54:17] Production.ERROR: pbx CDR StartTime 2025-03-14 03:54:05 - End Time 2025-03-14 06:54:05 [2025-03-14 06:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677137', 'tblTempUsageDetail_20' ) start [2025-03-14 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677137', 'tblTempUsageDetail_20' ) end [2025-03-14 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677137', 'tblTempVendorCDR_20' ) start [2025-03-14 06:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677137', 'tblTempVendorCDR_20' ) end [2025-03-14 06:54:17] Production.INFO: ProcessCDR(1,14677137,1,1,2) [2025-03-14 06:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:54:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:54:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:54:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677137', 'tblTempUsageDetail_20' ) start [2025-03-14 06:54:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677137', 'tblTempUsageDetail_20' ) end [2025-03-14 06:54:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 06:54:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 06:54:20] Production.INFO: ==13709== Releasing lock... [2025-03-14 06:54:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 06:54:20] Production.INFO: 29 MB #Memory Used# [2025-03-14 06:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 03:55:05 [end_date_ymd] => 2025-03-14 06:55:05 [RateCDR] => 1 ) [2025-03-14 06:55: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-03-14 03:55:05' and `end` < '2025-03-14 06:55: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-03-14 06:55:17] Production.INFO: count ==113 [2025-03-14 06:55:17] Production.ERROR: pbx CDR StartTime 2025-03-14 03:55:05 - End Time 2025-03-14 06:55:05 [2025-03-14 06:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677142', 'tblTempUsageDetail_20' ) start [2025-03-14 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677142', 'tblTempUsageDetail_20' ) end [2025-03-14 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677142', 'tblTempVendorCDR_20' ) start [2025-03-14 06:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677142', 'tblTempVendorCDR_20' ) end [2025-03-14 06:55:17] Production.INFO: ProcessCDR(1,14677142,1,1,2) [2025-03-14 06:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:55:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:55:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:55:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677142', 'tblTempUsageDetail_20' ) start [2025-03-14 06:55:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677142', 'tblTempUsageDetail_20' ) end [2025-03-14 06:55:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 06:55:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 06:55:20] Production.INFO: ==13783== Releasing lock... [2025-03-14 06:55:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 06:55:20] Production.INFO: 29 MB #Memory Used# [2025-03-14 06:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 03:56:05 [end_date_ymd] => 2025-03-14 06:56:05 [RateCDR] => 1 ) [2025-03-14 06:56: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-03-14 03:56:05' and `end` < '2025-03-14 06:56: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-03-14 06:56:17] Production.INFO: count ==113 [2025-03-14 06:56:17] Production.ERROR: pbx CDR StartTime 2025-03-14 03:56:05 - End Time 2025-03-14 06:56:05 [2025-03-14 06:56:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677147', 'tblTempUsageDetail_20' ) start [2025-03-14 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677147', 'tblTempUsageDetail_20' ) end [2025-03-14 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677147', 'tblTempVendorCDR_20' ) start [2025-03-14 06:56:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677147', 'tblTempVendorCDR_20' ) end [2025-03-14 06:56:17] Production.INFO: ProcessCDR(1,14677147,1,1,2) [2025-03-14 06:56:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:56:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:56:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677147', 'tblTempUsageDetail_20' ) start [2025-03-14 06:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677147', 'tblTempUsageDetail_20' ) end [2025-03-14 06:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 06:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 06:56:21] Production.INFO: ==13859== Releasing lock... [2025-03-14 06:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 06:56:21] Production.INFO: 29 MB #Memory Used# [2025-03-14 06:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 03:57:06 [end_date_ymd] => 2025-03-14 06:57:06 [RateCDR] => 1 ) [2025-03-14 06:57: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-03-14 03:57:06' and `end` < '2025-03-14 06:57: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-03-14 06:57:18] Production.INFO: count ==114 [2025-03-14 06:57:18] Production.ERROR: pbx CDR StartTime 2025-03-14 03:57:06 - End Time 2025-03-14 06:57:06 [2025-03-14 06:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677152', 'tblTempUsageDetail_20' ) start [2025-03-14 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677152', 'tblTempUsageDetail_20' ) end [2025-03-14 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677152', 'tblTempVendorCDR_20' ) start [2025-03-14 06:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677152', 'tblTempVendorCDR_20' ) end [2025-03-14 06:57:18] Production.INFO: ProcessCDR(1,14677152,1,1,2) [2025-03-14 06:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677152', 'tblTempUsageDetail_20' ) start [2025-03-14 06:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677152', 'tblTempUsageDetail_20' ) end [2025-03-14 06:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 06:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 06:57:22] Production.INFO: ==13935== Releasing lock... [2025-03-14 06:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 06:57:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-14 06:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 03:58:05 [end_date_ymd] => 2025-03-14 06:58:05 [RateCDR] => 1 ) [2025-03-14 06:58: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-03-14 03:58:05' and `end` < '2025-03-14 06:58: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-03-14 06:58:17] Production.INFO: count ==114 [2025-03-14 06:58:17] Production.ERROR: pbx CDR StartTime 2025-03-14 03:58:05 - End Time 2025-03-14 06:58:05 [2025-03-14 06:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677157', 'tblTempUsageDetail_20' ) start [2025-03-14 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677157', 'tblTempUsageDetail_20' ) end [2025-03-14 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677157', 'tblTempVendorCDR_20' ) start [2025-03-14 06:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677157', 'tblTempVendorCDR_20' ) end [2025-03-14 06:58:17] Production.INFO: ProcessCDR(1,14677157,1,1,2) [2025-03-14 06:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:58:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677157', 'tblTempUsageDetail_20' ) start [2025-03-14 06:58:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677157', 'tblTempUsageDetail_20' ) end [2025-03-14 06:58:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 06:58:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 06:58:20] Production.INFO: ==14005== Releasing lock... [2025-03-14 06:58:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 06:58:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-14 06:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 03:59:05 [end_date_ymd] => 2025-03-14 06:59:05 [RateCDR] => 1 ) [2025-03-14 06:59: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-03-14 03:59:05' and `end` < '2025-03-14 06:59: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-03-14 06:59:17] Production.INFO: count ==114 [2025-03-14 06:59:17] Production.ERROR: pbx CDR StartTime 2025-03-14 03:59:05 - End Time 2025-03-14 06:59:05 [2025-03-14 06:59:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677162', 'tblTempUsageDetail_20' ) start [2025-03-14 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677162', 'tblTempUsageDetail_20' ) end [2025-03-14 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677162', 'tblTempVendorCDR_20' ) start [2025-03-14 06:59:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677162', 'tblTempVendorCDR_20' ) end [2025-03-14 06:59:17] Production.INFO: ProcessCDR(1,14677162,1,1,2) [2025-03-14 06:59:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:59:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 06:59:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:59:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 06:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677162', 'tblTempUsageDetail_20' ) start [2025-03-14 06:59:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677162', 'tblTempUsageDetail_20' ) end [2025-03-14 06:59:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 06:59:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 06:59:20] Production.INFO: ==14081== Releasing lock... [2025-03-14 06:59:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 06:59:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-14 07:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 04:00:06 [end_date_ymd] => 2025-03-14 07:00:06 [RateCDR] => 1 ) [2025-03-14 07:00: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-03-14 04:00:06' and `end` < '2025-03-14 07:00: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-03-14 07:00:18] Production.INFO: count ==106 [2025-03-14 07:00:18] Production.ERROR: pbx CDR StartTime 2025-03-14 04:00:06 - End Time 2025-03-14 07:00:06 [2025-03-14 07:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677168', 'tblTempUsageDetail_20' ) start [2025-03-14 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677168', 'tblTempUsageDetail_20' ) end [2025-03-14 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677168', 'tblTempVendorCDR_20' ) start [2025-03-14 07:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677168', 'tblTempVendorCDR_20' ) end [2025-03-14 07:00:18] Production.INFO: ProcessCDR(1,14677168,1,1,2) [2025-03-14 07:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677168,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677168,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677168', 'tblTempUsageDetail_20' ) start [2025-03-14 07:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677168', 'tblTempUsageDetail_20' ) end [2025-03-14 07:00:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 07:00:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 07:00:21] Production.INFO: ==14156== Releasing lock... [2025-03-14 07:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 07:00:21] Production.INFO: 29 MB #Memory Used# [2025-03-14 07:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 04:01:06 [end_date_ymd] => 2025-03-14 07:01:06 [RateCDR] => 1 ) [2025-03-14 07:01: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-03-14 04:01:06' and `end` < '2025-03-14 07:01: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-03-14 07:01:18] Production.INFO: count ==102 [2025-03-14 07:01:18] Production.ERROR: pbx CDR StartTime 2025-03-14 04:01:06 - End Time 2025-03-14 07:01:06 [2025-03-14 07:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677173', 'tblTempUsageDetail_20' ) start [2025-03-14 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677173', 'tblTempUsageDetail_20' ) end [2025-03-14 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677173', 'tblTempVendorCDR_20' ) start [2025-03-14 07:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677173', 'tblTempVendorCDR_20' ) end [2025-03-14 07:01:18] Production.INFO: ProcessCDR(1,14677173,1,1,2) [2025-03-14 07:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677173,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677173,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677173', 'tblTempUsageDetail_20' ) start [2025-03-14 07:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677173', 'tblTempUsageDetail_20' ) end [2025-03-14 07:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 07:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 07:01:21] Production.INFO: ==14242== Releasing lock... [2025-03-14 07:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 07:01:21] Production.INFO: 29 MB #Memory Used# [2025-03-14 07:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 04:02:05 [end_date_ymd] => 2025-03-14 07:02:05 [RateCDR] => 1 ) [2025-03-14 07:02: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-03-14 04:02:05' and `end` < '2025-03-14 07:02: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-03-14 07:02:18] Production.INFO: count ==102 [2025-03-14 07:02:18] Production.ERROR: pbx CDR StartTime 2025-03-14 04:02:05 - End Time 2025-03-14 07:02:05 [2025-03-14 07:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677178', 'tblTempUsageDetail_20' ) start [2025-03-14 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677178', 'tblTempUsageDetail_20' ) end [2025-03-14 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677178', 'tblTempVendorCDR_20' ) start [2025-03-14 07:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677178', 'tblTempVendorCDR_20' ) end [2025-03-14 07:02:18] Production.INFO: ProcessCDR(1,14677178,1,1,2) [2025-03-14 07:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:02:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677178,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:02:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677178,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677178', 'tblTempUsageDetail_20' ) start [2025-03-14 07:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677178', 'tblTempUsageDetail_20' ) end [2025-03-14 07:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 07:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 07:02:22] Production.INFO: ==14395== Releasing lock... [2025-03-14 07:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 07:02:22] Production.INFO: 29 MB #Memory Used# [2025-03-14 07:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 04:03:06 [end_date_ymd] => 2025-03-14 07:03:06 [RateCDR] => 1 ) [2025-03-14 07:03: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-03-14 04:03:06' and `end` < '2025-03-14 07:03: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-03-14 07:03:18] Production.INFO: count ==107 [2025-03-14 07:03:18] Production.ERROR: pbx CDR StartTime 2025-03-14 04:03:06 - End Time 2025-03-14 07:03:06 [2025-03-14 07:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677183', 'tblTempUsageDetail_20' ) start [2025-03-14 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677183', 'tblTempUsageDetail_20' ) end [2025-03-14 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677183', 'tblTempVendorCDR_20' ) start [2025-03-14 07:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677183', 'tblTempVendorCDR_20' ) end [2025-03-14 07:03:18] Production.INFO: ProcessCDR(1,14677183,1,1,2) [2025-03-14 07:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:03:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677183,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:03:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:03:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677183,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677183', 'tblTempUsageDetail_20' ) start [2025-03-14 07:03:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677183', 'tblTempUsageDetail_20' ) end [2025-03-14 07:03:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 07:03:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 07:03:21] Production.INFO: ==14475== Releasing lock... [2025-03-14 07:03:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 07:03:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-14 07:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 04:04:05 [end_date_ymd] => 2025-03-14 07:04:05 [RateCDR] => 1 ) [2025-03-14 07:04: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-03-14 04:04:05' and `end` < '2025-03-14 07:04: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-03-14 07:04:19] Production.INFO: count ==111 [2025-03-14 07:04:19] Production.ERROR: pbx CDR StartTime 2025-03-14 04:04:05 - End Time 2025-03-14 07:04:05 [2025-03-14 07:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677188', 'tblTempUsageDetail_20' ) start [2025-03-14 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677188', 'tblTempUsageDetail_20' ) end [2025-03-14 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677188', 'tblTempVendorCDR_20' ) start [2025-03-14 07:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677188', 'tblTempVendorCDR_20' ) end [2025-03-14 07:04:19] Production.INFO: ProcessCDR(1,14677188,1,1,2) [2025-03-14 07:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677188', 'tblTempUsageDetail_20' ) start [2025-03-14 07:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677188', 'tblTempUsageDetail_20' ) end [2025-03-14 07:04:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 07:04:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 07:04:23] Production.INFO: ==14548== Releasing lock... [2025-03-14 07:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 07:04:23] Production.INFO: 29 MB #Memory Used# [2025-03-14 07:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 04:05:05 [end_date_ymd] => 2025-03-14 07:05:05 [RateCDR] => 1 ) [2025-03-14 07:05: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-03-14 04:05:05' and `end` < '2025-03-14 07:05: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-03-14 07:05:18] Production.INFO: count ==111 [2025-03-14 07:05:18] Production.ERROR: pbx CDR StartTime 2025-03-14 04:05:05 - End Time 2025-03-14 07:05:05 [2025-03-14 07:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677193', 'tblTempUsageDetail_20' ) start [2025-03-14 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677193', 'tblTempUsageDetail_20' ) end [2025-03-14 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677193', 'tblTempVendorCDR_20' ) start [2025-03-14 07:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677193', 'tblTempVendorCDR_20' ) end [2025-03-14 07:05:18] Production.INFO: ProcessCDR(1,14677193,1,1,2) [2025-03-14 07:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:05:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677193', 'tblTempUsageDetail_20' ) start [2025-03-14 07:05:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677193', 'tblTempUsageDetail_20' ) end [2025-03-14 07:05:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 07:05:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 07:05:21] Production.INFO: ==14737== Releasing lock... [2025-03-14 07:05:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 07:05:21] Production.INFO: 29 MB #Memory Used# [2025-03-14 07:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 04:06:05 [end_date_ymd] => 2025-03-14 07:06:05 [RateCDR] => 1 ) [2025-03-14 07:06: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-03-14 04:06:05' and `end` < '2025-03-14 07:06: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-03-14 07:06:17] Production.INFO: count ==103 [2025-03-14 07:06:17] Production.ERROR: pbx CDR StartTime 2025-03-14 04:06:05 - End Time 2025-03-14 07:06:05 [2025-03-14 07:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 07:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677198', 'tblTempUsageDetail_20' ) start [2025-03-14 07:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677198', 'tblTempUsageDetail_20' ) end [2025-03-14 07:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677198', 'tblTempVendorCDR_20' ) start [2025-03-14 07:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677198', 'tblTempVendorCDR_20' ) end [2025-03-14 07:06:17] Production.INFO: ProcessCDR(1,14677198,1,1,2) [2025-03-14 07:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:06:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677198', 'tblTempUsageDetail_20' ) start [2025-03-14 07:06:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677198', 'tblTempUsageDetail_20' ) end [2025-03-14 07:06:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 07:06:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 07:06:20] Production.INFO: ==14809== Releasing lock... [2025-03-14 07:06:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 07:06:20] Production.INFO: 29 MB #Memory Used# [2025-03-14 07:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 04:07:06 [end_date_ymd] => 2025-03-14 07:07:06 [RateCDR] => 1 ) [2025-03-14 07:07: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-03-14 04:07:06' and `end` < '2025-03-14 07:07: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-03-14 07:07:18] Production.INFO: count ==102 [2025-03-14 07:07:18] Production.ERROR: pbx CDR StartTime 2025-03-14 04:07:06 - End Time 2025-03-14 07:07:06 [2025-03-14 07:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677203', 'tblTempUsageDetail_20' ) start [2025-03-14 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677203', 'tblTempUsageDetail_20' ) end [2025-03-14 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677203', 'tblTempVendorCDR_20' ) start [2025-03-14 07:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677203', 'tblTempVendorCDR_20' ) end [2025-03-14 07:07:18] Production.INFO: ProcessCDR(1,14677203,1,1,2) [2025-03-14 07:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677203', 'tblTempUsageDetail_20' ) start [2025-03-14 07:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677203', 'tblTempUsageDetail_20' ) end [2025-03-14 07:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 07:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 07:07:21] Production.INFO: ==14887== Releasing lock... [2025-03-14 07:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 07:07:21] Production.INFO: 29 MB #Memory Used# [2025-03-14 07:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 04:08:05 [end_date_ymd] => 2025-03-14 07:08:05 [RateCDR] => 1 ) [2025-03-14 07:08: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-03-14 04:08:05' and `end` < '2025-03-14 07:08: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-03-14 07:08:17] Production.INFO: count ==102 [2025-03-14 07:08:17] Production.ERROR: pbx CDR StartTime 2025-03-14 04:08:05 - End Time 2025-03-14 07:08:05 [2025-03-14 07:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 07:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677208', 'tblTempUsageDetail_20' ) start [2025-03-14 07:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677208', 'tblTempUsageDetail_20' ) end [2025-03-14 07:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677208', 'tblTempVendorCDR_20' ) start [2025-03-14 07:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677208', 'tblTempVendorCDR_20' ) end [2025-03-14 07:08:17] Production.INFO: ProcessCDR(1,14677208,1,1,2) [2025-03-14 07:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:08:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:08:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:08:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677208', 'tblTempUsageDetail_20' ) start [2025-03-14 07:08:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677208', 'tblTempUsageDetail_20' ) end [2025-03-14 07:08:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 07:08:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 07:08:20] Production.INFO: ==15039== Releasing lock... [2025-03-14 07:08:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 07:08:20] Production.INFO: 29 MB #Memory Used# [2025-03-14 07:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 04:09:06 [end_date_ymd] => 2025-03-14 07:09:06 [RateCDR] => 1 ) [2025-03-14 07:09: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-03-14 04:09:06' and `end` < '2025-03-14 07:09: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-03-14 07:09:18] Production.INFO: count ==103 [2025-03-14 07:09:18] Production.ERROR: pbx CDR StartTime 2025-03-14 04:09:06 - End Time 2025-03-14 07:09:06 [2025-03-14 07:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677213', 'tblTempUsageDetail_20' ) start [2025-03-14 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677213', 'tblTempUsageDetail_20' ) end [2025-03-14 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677213', 'tblTempVendorCDR_20' ) start [2025-03-14 07:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677213', 'tblTempVendorCDR_20' ) end [2025-03-14 07:09:18] Production.INFO: ProcessCDR(1,14677213,1,1,2) [2025-03-14 07:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677213', 'tblTempUsageDetail_20' ) start [2025-03-14 07:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677213', 'tblTempUsageDetail_20' ) end [2025-03-14 07:09:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 07:09:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 07:09:23] Production.INFO: ==15116== Releasing lock... [2025-03-14 07:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 07:09:23] Production.INFO: 29 MB #Memory Used# [2025-03-14 07:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 04:10:06 [end_date_ymd] => 2025-03-14 07:10:06 [RateCDR] => 1 ) [2025-03-14 07:10: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-03-14 04:10:06' and `end` < '2025-03-14 07:10: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-03-14 07:10:18] Production.INFO: count ==103 [2025-03-14 07:10:18] Production.ERROR: pbx CDR StartTime 2025-03-14 04:10:06 - End Time 2025-03-14 07:10:06 [2025-03-14 07:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677219', 'tblTempUsageDetail_20' ) start [2025-03-14 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677219', 'tblTempUsageDetail_20' ) end [2025-03-14 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677219', 'tblTempVendorCDR_20' ) start [2025-03-14 07:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677219', 'tblTempVendorCDR_20' ) end [2025-03-14 07:10:18] Production.INFO: ProcessCDR(1,14677219,1,1,2) [2025-03-14 07:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:10:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677219,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:10:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:10:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677219,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677219', 'tblTempUsageDetail_20' ) start [2025-03-14 07:10:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677219', 'tblTempUsageDetail_20' ) end [2025-03-14 07:10:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 07:10:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 07:10:22] Production.INFO: ==15189== Releasing lock... [2025-03-14 07:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 07:10:22] Production.INFO: 29 MB #Memory Used# [2025-03-14 07:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 04:11:06 [end_date_ymd] => 2025-03-14 07:11:06 [RateCDR] => 1 ) [2025-03-14 07:11: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-03-14 04:11:06' and `end` < '2025-03-14 07:11: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-03-14 07:11:18] Production.INFO: count ==103 [2025-03-14 07:11:18] Production.ERROR: pbx CDR StartTime 2025-03-14 04:11:06 - End Time 2025-03-14 07:11:06 [2025-03-14 07:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677224', 'tblTempUsageDetail_20' ) start [2025-03-14 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677224', 'tblTempUsageDetail_20' ) end [2025-03-14 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677224', 'tblTempVendorCDR_20' ) start [2025-03-14 07:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677224', 'tblTempVendorCDR_20' ) end [2025-03-14 07:11:18] Production.INFO: ProcessCDR(1,14677224,1,1,2) [2025-03-14 07:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677224,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:11:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677224,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677224', 'tblTempUsageDetail_20' ) start [2025-03-14 07:11:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677224', 'tblTempUsageDetail_20' ) end [2025-03-14 07:11:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 07:11:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 07:11:21] Production.INFO: ==15266== Releasing lock... [2025-03-14 07:11:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 07:11:21] Production.INFO: 29 MB #Memory Used# [2025-03-14 07:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 04:12:05 [end_date_ymd] => 2025-03-14 07:12:05 [RateCDR] => 1 ) [2025-03-14 07:12: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-03-14 04:12:05' and `end` < '2025-03-14 07:12: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-03-14 07:12:18] Production.INFO: count ==103 [2025-03-14 07:12:18] Production.ERROR: pbx CDR StartTime 2025-03-14 04:12:05 - End Time 2025-03-14 07:12:05 [2025-03-14 07:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677229', 'tblTempUsageDetail_20' ) start [2025-03-14 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677229', 'tblTempUsageDetail_20' ) end [2025-03-14 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677229', 'tblTempVendorCDR_20' ) start [2025-03-14 07:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677229', 'tblTempVendorCDR_20' ) end [2025-03-14 07:12:18] Production.INFO: ProcessCDR(1,14677229,1,1,2) [2025-03-14 07:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677229,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677229,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677229', 'tblTempUsageDetail_20' ) start [2025-03-14 07:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677229', 'tblTempUsageDetail_20' ) end [2025-03-14 07:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 07:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 07:12:21] Production.INFO: ==15418== Releasing lock... [2025-03-14 07:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 07:12:21] Production.INFO: 29 MB #Memory Used# [2025-03-14 07:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 04:13:05 [end_date_ymd] => 2025-03-14 07:13:05 [RateCDR] => 1 ) [2025-03-14 07:13: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-03-14 04:13:05' and `end` < '2025-03-14 07:13: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-03-14 07:13:18] Production.INFO: count ==103 [2025-03-14 07:13:18] Production.ERROR: pbx CDR StartTime 2025-03-14 04:13:05 - End Time 2025-03-14 07:13:05 [2025-03-14 07:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677234', 'tblTempUsageDetail_20' ) start [2025-03-14 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677234', 'tblTempUsageDetail_20' ) end [2025-03-14 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677234', 'tblTempVendorCDR_20' ) start [2025-03-14 07:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677234', 'tblTempVendorCDR_20' ) end [2025-03-14 07:13:18] Production.INFO: ProcessCDR(1,14677234,1,1,2) [2025-03-14 07:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677234,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677234,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677234', 'tblTempUsageDetail_20' ) start [2025-03-14 07:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677234', 'tblTempUsageDetail_20' ) end [2025-03-14 07:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 07:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 07:13:22] Production.INFO: ==15489== Releasing lock... [2025-03-14 07:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 07:13:22] Production.INFO: 29 MB #Memory Used# [2025-03-14 07:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 04:14:05 [end_date_ymd] => 2025-03-14 07:14:05 [RateCDR] => 1 ) [2025-03-14 07:14: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-03-14 04:14:05' and `end` < '2025-03-14 07:14: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-03-14 07:14:17] Production.INFO: count ==102 [2025-03-14 07:14:17] Production.ERROR: pbx CDR StartTime 2025-03-14 04:14:05 - End Time 2025-03-14 07:14:05 [2025-03-14 07:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 07:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677239', 'tblTempUsageDetail_20' ) start [2025-03-14 07:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677239', 'tblTempUsageDetail_20' ) end [2025-03-14 07:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677239', 'tblTempVendorCDR_20' ) start [2025-03-14 07:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677239', 'tblTempVendorCDR_20' ) end [2025-03-14 07:14:17] Production.INFO: ProcessCDR(1,14677239,1,1,2) [2025-03-14 07:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:14:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677239', 'tblTempUsageDetail_20' ) start [2025-03-14 07:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677239', 'tblTempUsageDetail_20' ) end [2025-03-14 07:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 07:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 07:14:21] Production.INFO: ==15563== Releasing lock... [2025-03-14 07:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 07:14:21] Production.INFO: 29 MB #Memory Used# [2025-03-14 07:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 04:15:05 [end_date_ymd] => 2025-03-14 07:15:05 [RateCDR] => 1 ) [2025-03-14 07:15: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-03-14 04:15:05' and `end` < '2025-03-14 07:15: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-03-14 07:15:18] Production.INFO: count ==99 [2025-03-14 07:15:18] Production.ERROR: pbx CDR StartTime 2025-03-14 04:15:05 - End Time 2025-03-14 07:15:05 [2025-03-14 07:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677244', 'tblTempUsageDetail_20' ) start [2025-03-14 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677244', 'tblTempUsageDetail_20' ) end [2025-03-14 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677244', 'tblTempVendorCDR_20' ) start [2025-03-14 07:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677244', 'tblTempVendorCDR_20' ) end [2025-03-14 07:15:18] Production.INFO: ProcessCDR(1,14677244,1,1,2) [2025-03-14 07:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:15:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677244', 'tblTempUsageDetail_20' ) start [2025-03-14 07:15:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677244', 'tblTempUsageDetail_20' ) end [2025-03-14 07:15:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 07:15:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 07:15:22] Production.INFO: ==15722== Releasing lock... [2025-03-14 07:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 07:15:22] Production.INFO: 29 MB #Memory Used# [2025-03-14 07:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 04:16:05 [end_date_ymd] => 2025-03-14 07:16:05 [RateCDR] => 1 ) [2025-03-14 07:16: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-03-14 04:16:05' and `end` < '2025-03-14 07:16: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-03-14 07:16:17] Production.INFO: count ==103 [2025-03-14 07:16:17] Production.ERROR: pbx CDR StartTime 2025-03-14 04:16:05 - End Time 2025-03-14 07:16:05 [2025-03-14 07:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 07:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677249', 'tblTempUsageDetail_20' ) start [2025-03-14 07:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677249', 'tblTempUsageDetail_20' ) end [2025-03-14 07:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677249', 'tblTempVendorCDR_20' ) start [2025-03-14 07:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677249', 'tblTempVendorCDR_20' ) end [2025-03-14 07:16:17] Production.INFO: ProcessCDR(1,14677249,1,1,2) [2025-03-14 07:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:16:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677249', 'tblTempUsageDetail_20' ) start [2025-03-14 07:16:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677249', 'tblTempUsageDetail_20' ) end [2025-03-14 07:16:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 07:16:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 07:16:20] Production.INFO: ==15795== Releasing lock... [2025-03-14 07:16:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 07:16:20] Production.INFO: 29 MB #Memory Used# [2025-03-14 07:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 04:17:05 [end_date_ymd] => 2025-03-14 07:17:05 [RateCDR] => 1 ) [2025-03-14 07:17: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-03-14 04:17:05' and `end` < '2025-03-14 07:17: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-03-14 07:17:18] Production.INFO: count ==103 [2025-03-14 07:17:18] Production.ERROR: pbx CDR StartTime 2025-03-14 04:17:05 - End Time 2025-03-14 07:17:05 [2025-03-14 07:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677254', 'tblTempUsageDetail_20' ) start [2025-03-14 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677254', 'tblTempUsageDetail_20' ) end [2025-03-14 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677254', 'tblTempVendorCDR_20' ) start [2025-03-14 07:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677254', 'tblTempVendorCDR_20' ) end [2025-03-14 07:17:18] Production.INFO: ProcessCDR(1,14677254,1,1,2) [2025-03-14 07:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677254', 'tblTempUsageDetail_20' ) start [2025-03-14 07:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677254', 'tblTempUsageDetail_20' ) end [2025-03-14 07:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 07:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 07:17:21] Production.INFO: ==15871== Releasing lock... [2025-03-14 07:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 07:17:21] Production.INFO: 29 MB #Memory Used# [2025-03-14 07:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 04:18:06 [end_date_ymd] => 2025-03-14 07:18:06 [RateCDR] => 1 ) [2025-03-14 07:18: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-03-14 04:18:06' and `end` < '2025-03-14 07:18: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-03-14 07:18:18] Production.INFO: count ==103 [2025-03-14 07:18:18] Production.ERROR: pbx CDR StartTime 2025-03-14 04:18:06 - End Time 2025-03-14 07:18:06 [2025-03-14 07:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677259', 'tblTempUsageDetail_20' ) start [2025-03-14 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677259', 'tblTempUsageDetail_20' ) end [2025-03-14 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677259', 'tblTempVendorCDR_20' ) start [2025-03-14 07:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677259', 'tblTempVendorCDR_20' ) end [2025-03-14 07:18:18] Production.INFO: ProcessCDR(1,14677259,1,1,2) [2025-03-14 07:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677259', 'tblTempUsageDetail_20' ) start [2025-03-14 07:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677259', 'tblTempUsageDetail_20' ) end [2025-03-14 07:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 07:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 07:18:22] Production.INFO: ==15943== Releasing lock... [2025-03-14 07:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 07:18:22] Production.INFO: 29 MB #Memory Used# [2025-03-14 07:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 04:19:06 [end_date_ymd] => 2025-03-14 07:19:06 [RateCDR] => 1 ) [2025-03-14 07:19: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-03-14 04:19:06' and `end` < '2025-03-14 07:19: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-03-14 07:19:19] Production.INFO: count ==103 [2025-03-14 07:19:19] Production.ERROR: pbx CDR StartTime 2025-03-14 04:19:06 - End Time 2025-03-14 07:19:06 [2025-03-14 07:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677264', 'tblTempUsageDetail_20' ) start [2025-03-14 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677264', 'tblTempUsageDetail_20' ) end [2025-03-14 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677264', 'tblTempVendorCDR_20' ) start [2025-03-14 07:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677264', 'tblTempVendorCDR_20' ) end [2025-03-14 07:19:19] Production.INFO: ProcessCDR(1,14677264,1,1,2) [2025-03-14 07:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677264', 'tblTempUsageDetail_20' ) start [2025-03-14 07:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677264', 'tblTempUsageDetail_20' ) end [2025-03-14 07:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 07:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 07:19:22] Production.INFO: ==16014== Releasing lock... [2025-03-14 07:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 07:19:22] Production.INFO: 29 MB #Memory Used# [2025-03-14 07:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 04:20:06 [end_date_ymd] => 2025-03-14 07:20:06 [RateCDR] => 1 ) [2025-03-14 07:20: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-03-14 04:20:06' and `end` < '2025-03-14 07:20: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-03-14 07:20:18] Production.INFO: count ==99 [2025-03-14 07:20:18] Production.ERROR: pbx CDR StartTime 2025-03-14 04:20:06 - End Time 2025-03-14 07:20:06 [2025-03-14 07:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677270', 'tblTempUsageDetail_20' ) start [2025-03-14 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677270', 'tblTempUsageDetail_20' ) end [2025-03-14 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677270', 'tblTempVendorCDR_20' ) start [2025-03-14 07:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677270', 'tblTempVendorCDR_20' ) end [2025-03-14 07:20:18] Production.INFO: ProcessCDR(1,14677270,1,1,2) [2025-03-14 07:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:20:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677270,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:20:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:20:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677270,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677270', 'tblTempUsageDetail_20' ) start [2025-03-14 07:20:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677270', 'tblTempUsageDetail_20' ) end [2025-03-14 07:20:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 07:20:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 07:20:22] Production.INFO: ==16129== Releasing lock... [2025-03-14 07:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 07:20:22] Production.INFO: 29 MB #Memory Used# [2025-03-14 07:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 04:21:06 [end_date_ymd] => 2025-03-14 07:21:06 [RateCDR] => 1 ) [2025-03-14 07:21: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-03-14 04:21:06' and `end` < '2025-03-14 07:21: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-03-14 07:21:18] Production.INFO: count ==99 [2025-03-14 07:21:18] Production.ERROR: pbx CDR StartTime 2025-03-14 04:21:06 - End Time 2025-03-14 07:21:06 [2025-03-14 07:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677275', 'tblTempUsageDetail_20' ) start [2025-03-14 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677275', 'tblTempUsageDetail_20' ) end [2025-03-14 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677275', 'tblTempVendorCDR_20' ) start [2025-03-14 07:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677275', 'tblTempVendorCDR_20' ) end [2025-03-14 07:21:18] Production.INFO: ProcessCDR(1,14677275,1,1,2) [2025-03-14 07:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677275,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677275,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677275', 'tblTempUsageDetail_20' ) start [2025-03-14 07:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677275', 'tblTempUsageDetail_20' ) end [2025-03-14 07:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 07:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 07:21:21] Production.INFO: ==16206== Releasing lock... [2025-03-14 07:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 07:21:21] Production.INFO: 29 MB #Memory Used# [2025-03-14 07:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 04:22:05 [end_date_ymd] => 2025-03-14 07:22:05 [RateCDR] => 1 ) [2025-03-14 07:22: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-03-14 04:22:05' and `end` < '2025-03-14 07:22: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-03-14 07:22:18] Production.INFO: count ==103 [2025-03-14 07:22:18] Production.ERROR: pbx CDR StartTime 2025-03-14 04:22:05 - End Time 2025-03-14 07:22:05 [2025-03-14 07:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677278', 'tblTempUsageDetail_20' ) start [2025-03-14 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677278', 'tblTempUsageDetail_20' ) end [2025-03-14 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677278', 'tblTempVendorCDR_20' ) start [2025-03-14 07:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677278', 'tblTempVendorCDR_20' ) end [2025-03-14 07:22:18] Production.INFO: ProcessCDR(1,14677278,1,1,2) [2025-03-14 07:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677278', 'tblTempUsageDetail_20' ) start [2025-03-14 07:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677278', 'tblTempUsageDetail_20' ) end [2025-03-14 07:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 07:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 07:22:21] Production.INFO: ==16279== Releasing lock... [2025-03-14 07:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 07:22:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-14 07:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 04:23:05 [end_date_ymd] => 2025-03-14 07:23:05 [RateCDR] => 1 ) [2025-03-14 07:23: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-03-14 04:23:05' and `end` < '2025-03-14 07:23: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-03-14 07:23:17] Production.INFO: count ==103 [2025-03-14 07:23:17] Production.ERROR: pbx CDR StartTime 2025-03-14 04:23:05 - End Time 2025-03-14 07:23:05 [2025-03-14 07:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677285', 'tblTempUsageDetail_20' ) start [2025-03-14 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677285', 'tblTempUsageDetail_20' ) end [2025-03-14 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677285', 'tblTempVendorCDR_20' ) start [2025-03-14 07:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677285', 'tblTempVendorCDR_20' ) end [2025-03-14 07:23:17] Production.INFO: ProcessCDR(1,14677285,1,1,2) [2025-03-14 07:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677285,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:23:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677285,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677285', 'tblTempUsageDetail_20' ) start [2025-03-14 07:23:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677285', 'tblTempUsageDetail_20' ) end [2025-03-14 07:23:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 07:23:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 07:23:20] Production.INFO: ==16352== Releasing lock... [2025-03-14 07:23:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 07:23:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-14 07:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 04:24:06 [end_date_ymd] => 2025-03-14 07:24:06 [RateCDR] => 1 ) [2025-03-14 07:24: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-03-14 04:24:06' and `end` < '2025-03-14 07:24: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-03-14 07:24:18] Production.INFO: count ==104 [2025-03-14 07:24:18] Production.ERROR: pbx CDR StartTime 2025-03-14 04:24:06 - End Time 2025-03-14 07:24:06 [2025-03-14 07:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677290', 'tblTempUsageDetail_20' ) start [2025-03-14 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677290', 'tblTempUsageDetail_20' ) end [2025-03-14 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677290', 'tblTempVendorCDR_20' ) start [2025-03-14 07:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677290', 'tblTempVendorCDR_20' ) end [2025-03-14 07:24:18] Production.INFO: ProcessCDR(1,14677290,1,1,2) [2025-03-14 07:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677290,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677290,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677290', 'tblTempUsageDetail_20' ) start [2025-03-14 07:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677290', 'tblTempUsageDetail_20' ) end [2025-03-14 07:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 07:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 07:24:21] Production.INFO: ==16430== Releasing lock... [2025-03-14 07:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 07:24:21] Production.INFO: 29 MB #Memory Used# [2025-03-14 07:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 04:25:05 [end_date_ymd] => 2025-03-14 07:25:05 [RateCDR] => 1 ) [2025-03-14 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-03-14 04:25:05' and `end` < '2025-03-14 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-03-14 07:25:17] Production.INFO: count ==104 [2025-03-14 07:25:17] Production.ERROR: pbx CDR StartTime 2025-03-14 04:25:05 - End Time 2025-03-14 07:25:05 [2025-03-14 07:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677295', 'tblTempUsageDetail_20' ) start [2025-03-14 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677295', 'tblTempUsageDetail_20' ) end [2025-03-14 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677295', 'tblTempVendorCDR_20' ) start [2025-03-14 07:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677295', 'tblTempVendorCDR_20' ) end [2025-03-14 07:25:17] Production.INFO: ProcessCDR(1,14677295,1,1,2) [2025-03-14 07:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:25:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677295', 'tblTempUsageDetail_20' ) start [2025-03-14 07:25:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677295', 'tblTempUsageDetail_20' ) end [2025-03-14 07:25:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 07:25:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 07:25:20] Production.INFO: ==16500== Releasing lock... [2025-03-14 07:25:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 07:25:20] Production.INFO: 29 MB #Memory Used# [2025-03-14 07:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 04:26:05 [end_date_ymd] => 2025-03-14 07:26:05 [RateCDR] => 1 ) [2025-03-14 07:26: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-03-14 04:26:05' and `end` < '2025-03-14 07:26: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-03-14 07:26:17] Production.INFO: count ==105 [2025-03-14 07:26:17] Production.ERROR: pbx CDR StartTime 2025-03-14 04:26:05 - End Time 2025-03-14 07:26:05 [2025-03-14 07:26:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677298', 'tblTempUsageDetail_20' ) start [2025-03-14 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677298', 'tblTempUsageDetail_20' ) end [2025-03-14 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677298', 'tblTempVendorCDR_20' ) start [2025-03-14 07:26:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677298', 'tblTempVendorCDR_20' ) end [2025-03-14 07:26:17] Production.INFO: ProcessCDR(1,14677298,1,1,2) [2025-03-14 07:26:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:26:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:26:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677298', 'tblTempUsageDetail_20' ) start [2025-03-14 07:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677298', 'tblTempUsageDetail_20' ) end [2025-03-14 07:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 07:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 07:26:21] Production.INFO: ==16576== Releasing lock... [2025-03-14 07:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 07:26:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-14 07:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 04:27:05 [end_date_ymd] => 2025-03-14 07:27:05 [RateCDR] => 1 ) [2025-03-14 07:27: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-03-14 04:27:05' and `end` < '2025-03-14 07:27: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-03-14 07:27:17] Production.INFO: count ==105 [2025-03-14 07:27:17] Production.ERROR: pbx CDR StartTime 2025-03-14 04:27:05 - End Time 2025-03-14 07:27:05 [2025-03-14 07:27:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677305', 'tblTempUsageDetail_20' ) start [2025-03-14 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677305', 'tblTempUsageDetail_20' ) end [2025-03-14 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677305', 'tblTempVendorCDR_20' ) start [2025-03-14 07:27:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677305', 'tblTempVendorCDR_20' ) end [2025-03-14 07:27:17] Production.INFO: ProcessCDR(1,14677305,1,1,2) [2025-03-14 07:27:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:27:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:27:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677305', 'tblTempUsageDetail_20' ) start [2025-03-14 07:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677305', 'tblTempUsageDetail_20' ) end [2025-03-14 07:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 07:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 07:27:21] Production.INFO: ==16653== Releasing lock... [2025-03-14 07:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 07:27:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-14 07:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 04:28:06 [end_date_ymd] => 2025-03-14 07:28:06 [RateCDR] => 1 ) [2025-03-14 07:28: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-03-14 04:28:06' and `end` < '2025-03-14 07:28: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-03-14 07:28:18] Production.INFO: count ==105 [2025-03-14 07:28:18] Production.ERROR: pbx CDR StartTime 2025-03-14 04:28:06 - End Time 2025-03-14 07:28:06 [2025-03-14 07:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677310', 'tblTempUsageDetail_20' ) start [2025-03-14 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677310', 'tblTempUsageDetail_20' ) end [2025-03-14 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677310', 'tblTempVendorCDR_20' ) start [2025-03-14 07:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677310', 'tblTempVendorCDR_20' ) end [2025-03-14 07:28:18] Production.INFO: ProcessCDR(1,14677310,1,1,2) [2025-03-14 07:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677310', 'tblTempUsageDetail_20' ) start [2025-03-14 07:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677310', 'tblTempUsageDetail_20' ) end [2025-03-14 07:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 07:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 07:28:21] Production.INFO: ==16725== Releasing lock... [2025-03-14 07:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 07:28:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-14 07:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 04:29:05 [end_date_ymd] => 2025-03-14 07:29:05 [RateCDR] => 1 ) [2025-03-14 07:29: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-03-14 04:29:05' and `end` < '2025-03-14 07:29: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-03-14 07:29:17] Production.INFO: count ==105 [2025-03-14 07:29:17] Production.ERROR: pbx CDR StartTime 2025-03-14 04:29:05 - End Time 2025-03-14 07:29:05 [2025-03-14 07:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677315', 'tblTempUsageDetail_20' ) start [2025-03-14 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677315', 'tblTempUsageDetail_20' ) end [2025-03-14 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677315', 'tblTempVendorCDR_20' ) start [2025-03-14 07:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677315', 'tblTempVendorCDR_20' ) end [2025-03-14 07:29:17] Production.INFO: ProcessCDR(1,14677315,1,1,2) [2025-03-14 07:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:29:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677315', 'tblTempUsageDetail_20' ) start [2025-03-14 07:29:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677315', 'tblTempUsageDetail_20' ) end [2025-03-14 07:29:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 07:29:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 07:29:20] Production.INFO: ==16797== Releasing lock... [2025-03-14 07:29:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 07:29:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-14 07:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 04:30:06 [end_date_ymd] => 2025-03-14 07:30:06 [RateCDR] => 1 ) [2025-03-14 07:30:07] 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-03-14 04:30:06' and `end` < '2025-03-14 07:30: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-03-14 07:30:19] Production.INFO: count ==107 [2025-03-14 07:30:19] Production.ERROR: pbx CDR StartTime 2025-03-14 04:30:06 - End Time 2025-03-14 07:30:06 [2025-03-14 07:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677320', 'tblTempUsageDetail_20' ) start [2025-03-14 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677320', 'tblTempUsageDetail_20' ) end [2025-03-14 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677320', 'tblTempVendorCDR_20' ) start [2025-03-14 07:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677320', 'tblTempVendorCDR_20' ) end [2025-03-14 07:30:19] Production.INFO: ProcessCDR(1,14677320,1,1,2) [2025-03-14 07:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677320', 'tblTempUsageDetail_20' ) start [2025-03-14 07:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677320', 'tblTempUsageDetail_20' ) end [2025-03-14 07:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 07:30:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 07:30:22] Production.INFO: ==16875== Releasing lock... [2025-03-14 07:30:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 07:30:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-14 07:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 04:31:05 [end_date_ymd] => 2025-03-14 07:31:05 [RateCDR] => 1 ) [2025-03-14 07:31: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-03-14 04:31:05' and `end` < '2025-03-14 07:31: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-03-14 07:31:17] Production.INFO: count ==107 [2025-03-14 07:31:17] Production.ERROR: pbx CDR StartTime 2025-03-14 04:31:05 - End Time 2025-03-14 07:31:05 [2025-03-14 07:31:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677326', 'tblTempUsageDetail_20' ) start [2025-03-14 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677326', 'tblTempUsageDetail_20' ) end [2025-03-14 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677326', 'tblTempVendorCDR_20' ) start [2025-03-14 07:31:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677326', 'tblTempVendorCDR_20' ) end [2025-03-14 07:31:17] Production.INFO: ProcessCDR(1,14677326,1,1,2) [2025-03-14 07:31:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:31:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677326,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:31:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677326,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677326', 'tblTempUsageDetail_20' ) start [2025-03-14 07:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677326', 'tblTempUsageDetail_20' ) end [2025-03-14 07:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 07:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 07:31:21] Production.INFO: ==16948== Releasing lock... [2025-03-14 07:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 07:31:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-14 07:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 04:32:05 [end_date_ymd] => 2025-03-14 07:32:05 [RateCDR] => 1 ) [2025-03-14 07:32: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-03-14 04:32:05' and `end` < '2025-03-14 07:32: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-03-14 07:32:17] Production.INFO: count ==107 [2025-03-14 07:32:17] Production.ERROR: pbx CDR StartTime 2025-03-14 04:32:05 - End Time 2025-03-14 07:32:05 [2025-03-14 07:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677331', 'tblTempUsageDetail_20' ) start [2025-03-14 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677331', 'tblTempUsageDetail_20' ) end [2025-03-14 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677331', 'tblTempVendorCDR_20' ) start [2025-03-14 07:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677331', 'tblTempVendorCDR_20' ) end [2025-03-14 07:32:17] Production.INFO: ProcessCDR(1,14677331,1,1,2) [2025-03-14 07:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677331,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677331,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677331', 'tblTempUsageDetail_20' ) start [2025-03-14 07:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677331', 'tblTempUsageDetail_20' ) end [2025-03-14 07:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 07:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 07:32:21] Production.INFO: ==17020== Releasing lock... [2025-03-14 07:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 07:32:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-14 07:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 04:33:05 [end_date_ymd] => 2025-03-14 07:33:05 [RateCDR] => 1 ) [2025-03-14 07:33: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-03-14 04:33:05' and `end` < '2025-03-14 07:33: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-03-14 07:33:17] Production.INFO: count ==112 [2025-03-14 07:33:17] Production.ERROR: pbx CDR StartTime 2025-03-14 04:33:05 - End Time 2025-03-14 07:33:05 [2025-03-14 07:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677336', 'tblTempUsageDetail_20' ) start [2025-03-14 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677336', 'tblTempUsageDetail_20' ) end [2025-03-14 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677336', 'tblTempVendorCDR_20' ) start [2025-03-14 07:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677336', 'tblTempVendorCDR_20' ) end [2025-03-14 07:33:17] Production.INFO: ProcessCDR(1,14677336,1,1,2) [2025-03-14 07:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677336,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:33:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677336,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677336', 'tblTempUsageDetail_20' ) start [2025-03-14 07:33:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677336', 'tblTempUsageDetail_20' ) end [2025-03-14 07:33:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 07:33:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 07:33:20] Production.INFO: ==17093== Releasing lock... [2025-03-14 07:33:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 07:33:20] Production.INFO: 29.5 MB #Memory Used# [2025-03-14 07:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 04:34:05 [end_date_ymd] => 2025-03-14 07:34:05 [RateCDR] => 1 ) [2025-03-14 07:34: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-03-14 04:34:05' and `end` < '2025-03-14 07:34: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-03-14 07:34:17] Production.INFO: count ==112 [2025-03-14 07:34:17] Production.ERROR: pbx CDR StartTime 2025-03-14 04:34:05 - End Time 2025-03-14 07:34:05 [2025-03-14 07:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677341', 'tblTempUsageDetail_20' ) start [2025-03-14 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677341', 'tblTempUsageDetail_20' ) end [2025-03-14 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677341', 'tblTempVendorCDR_20' ) start [2025-03-14 07:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677341', 'tblTempVendorCDR_20' ) end [2025-03-14 07:34:17] Production.INFO: ProcessCDR(1,14677341,1,1,2) [2025-03-14 07:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677341', 'tblTempUsageDetail_20' ) start [2025-03-14 07:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677341', 'tblTempUsageDetail_20' ) end [2025-03-14 07:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 07:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 07:34:21] Production.INFO: ==17173== Releasing lock... [2025-03-14 07:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 07:34:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-14 07:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 04:35:05 [end_date_ymd] => 2025-03-14 07:35:05 [RateCDR] => 1 ) [2025-03-14 07:35: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-03-14 04:35:05' and `end` < '2025-03-14 07:35: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-03-14 07:35:17] Production.INFO: count ==120 [2025-03-14 07:35:17] Production.ERROR: pbx CDR StartTime 2025-03-14 04:35:05 - End Time 2025-03-14 07:35:05 [2025-03-14 07:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677346', 'tblTempUsageDetail_20' ) start [2025-03-14 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677346', 'tblTempUsageDetail_20' ) end [2025-03-14 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677346', 'tblTempVendorCDR_20' ) start [2025-03-14 07:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677346', 'tblTempVendorCDR_20' ) end [2025-03-14 07:35:17] Production.INFO: ProcessCDR(1,14677346,1,1,2) [2025-03-14 07:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:35:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:35:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:35:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677346', 'tblTempUsageDetail_20' ) start [2025-03-14 07:35:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677346', 'tblTempUsageDetail_20' ) end [2025-03-14 07:35:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 07:35:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 07:35:20] Production.INFO: ==17251== Releasing lock... [2025-03-14 07:35:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 07:35:20] Production.INFO: 29.25 MB #Memory Used# [2025-03-14 07:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 04:36:05 [end_date_ymd] => 2025-03-14 07:36:05 [RateCDR] => 1 ) [2025-03-14 07:36: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-03-14 04:36:05' and `end` < '2025-03-14 07:36: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-03-14 07:36:18] Production.INFO: count ==120 [2025-03-14 07:36:18] Production.ERROR: pbx CDR StartTime 2025-03-14 04:36:05 - End Time 2025-03-14 07:36:05 [2025-03-14 07:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677351', 'tblTempUsageDetail_20' ) start [2025-03-14 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677351', 'tblTempUsageDetail_20' ) end [2025-03-14 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677351', 'tblTempVendorCDR_20' ) start [2025-03-14 07:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677351', 'tblTempVendorCDR_20' ) end [2025-03-14 07:36:18] Production.INFO: ProcessCDR(1,14677351,1,1,2) [2025-03-14 07:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677351', 'tblTempUsageDetail_20' ) start [2025-03-14 07:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677351', 'tblTempUsageDetail_20' ) end [2025-03-14 07:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 07:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 07:36:21] Production.INFO: ==17362== Releasing lock... [2025-03-14 07:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 07:36:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-14 07:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 04:37:06 [end_date_ymd] => 2025-03-14 07:37:06 [RateCDR] => 1 ) [2025-03-14 07:37: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-03-14 04:37:06' and `end` < '2025-03-14 07:37: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-03-14 07:37:18] Production.INFO: count ==120 [2025-03-14 07:37:18] Production.ERROR: pbx CDR StartTime 2025-03-14 04:37:06 - End Time 2025-03-14 07:37:06 [2025-03-14 07:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677356', 'tblTempUsageDetail_20' ) start [2025-03-14 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677356', 'tblTempUsageDetail_20' ) end [2025-03-14 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677356', 'tblTempVendorCDR_20' ) start [2025-03-14 07:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677356', 'tblTempVendorCDR_20' ) end [2025-03-14 07:37:18] Production.INFO: ProcessCDR(1,14677356,1,1,2) [2025-03-14 07:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:37:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677356', 'tblTempUsageDetail_20' ) start [2025-03-14 07:37:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677356', 'tblTempUsageDetail_20' ) end [2025-03-14 07:37:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 07:37:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 07:37:21] Production.INFO: ==17435== Releasing lock... [2025-03-14 07:37:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 07:37:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-14 07:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 04:38:06 [end_date_ymd] => 2025-03-14 07:38:06 [RateCDR] => 1 ) [2025-03-14 07:38: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-03-14 04:38:06' and `end` < '2025-03-14 07:38: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-03-14 07:38:18] Production.INFO: count ==120 [2025-03-14 07:38:18] Production.ERROR: pbx CDR StartTime 2025-03-14 04:38:06 - End Time 2025-03-14 07:38:06 [2025-03-14 07:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677361', 'tblTempUsageDetail_20' ) start [2025-03-14 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677361', 'tblTempUsageDetail_20' ) end [2025-03-14 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677361', 'tblTempVendorCDR_20' ) start [2025-03-14 07:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677361', 'tblTempVendorCDR_20' ) end [2025-03-14 07:38:18] Production.INFO: ProcessCDR(1,14677361,1,1,2) [2025-03-14 07:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:38:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:38:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:38:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677361', 'tblTempUsageDetail_20' ) start [2025-03-14 07:38:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677361', 'tblTempUsageDetail_20' ) end [2025-03-14 07:38:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 07:38:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 07:38:21] Production.INFO: ==17514== Releasing lock... [2025-03-14 07:38:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 07:38:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-14 07:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 04:39:06 [end_date_ymd] => 2025-03-14 07:39:06 [RateCDR] => 1 ) [2025-03-14 07:39: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-03-14 04:39:06' and `end` < '2025-03-14 07:39: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-03-14 07:39:18] Production.INFO: count ==120 [2025-03-14 07:39:18] Production.ERROR: pbx CDR StartTime 2025-03-14 04:39:06 - End Time 2025-03-14 07:39:06 [2025-03-14 07:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677366', 'tblTempUsageDetail_20' ) start [2025-03-14 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677366', 'tblTempUsageDetail_20' ) end [2025-03-14 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677366', 'tblTempVendorCDR_20' ) start [2025-03-14 07:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677366', 'tblTempVendorCDR_20' ) end [2025-03-14 07:39:18] Production.INFO: ProcessCDR(1,14677366,1,1,2) [2025-03-14 07:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677366', 'tblTempUsageDetail_20' ) start [2025-03-14 07:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677366', 'tblTempUsageDetail_20' ) end [2025-03-14 07:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 07:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 07:39:22] Production.INFO: ==17586== Releasing lock... [2025-03-14 07:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 07:39:22] Production.INFO: 29.25 MB #Memory Used# [2025-03-14 07:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 04:40:06 [end_date_ymd] => 2025-03-14 07:40:06 [RateCDR] => 1 ) [2025-03-14 07:40: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-03-14 04:40:06' and `end` < '2025-03-14 07:40: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-03-14 07:40:18] Production.INFO: count ==122 [2025-03-14 07:40:18] Production.ERROR: pbx CDR StartTime 2025-03-14 04:40:06 - End Time 2025-03-14 07:40:06 [2025-03-14 07:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677372', 'tblTempUsageDetail_20' ) start [2025-03-14 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677372', 'tblTempUsageDetail_20' ) end [2025-03-14 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677372', 'tblTempVendorCDR_20' ) start [2025-03-14 07:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677372', 'tblTempVendorCDR_20' ) end [2025-03-14 07:40:18] Production.INFO: ProcessCDR(1,14677372,1,1,2) [2025-03-14 07:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:40:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677372,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:40:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:40:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677372,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677372', 'tblTempUsageDetail_20' ) start [2025-03-14 07:40:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677372', 'tblTempUsageDetail_20' ) end [2025-03-14 07:40:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 07:40:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 07:40:21] Production.INFO: ==17664== Releasing lock... [2025-03-14 07:40:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 07:40:21] Production.INFO: 29.25 MB #Memory Used# [2025-03-14 07:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 04:41:05 [end_date_ymd] => 2025-03-14 07:41:05 [RateCDR] => 1 ) [2025-03-14 07:41: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-03-14 04:41:05' and `end` < '2025-03-14 07:41: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-03-14 07:41:17] Production.INFO: count ==127 [2025-03-14 07:41:17] Production.ERROR: pbx CDR StartTime 2025-03-14 04:41:05 - End Time 2025-03-14 07:41:05 [2025-03-14 07:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677377', 'tblTempUsageDetail_20' ) start [2025-03-14 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677377', 'tblTempUsageDetail_20' ) end [2025-03-14 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677377', 'tblTempVendorCDR_20' ) start [2025-03-14 07:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677377', 'tblTempVendorCDR_20' ) end [2025-03-14 07:41:17] Production.INFO: ProcessCDR(1,14677377,1,1,2) [2025-03-14 07:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:41:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677377,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:41:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:41:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677377,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677377', 'tblTempUsageDetail_20' ) start [2025-03-14 07:41:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677377', 'tblTempUsageDetail_20' ) end [2025-03-14 07:41:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 07:41:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 07:41:20] Production.INFO: ==17739== Releasing lock... [2025-03-14 07:41:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 07:41:20] Production.INFO: 29 MB #Memory Used# [2025-03-14 07:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 04:42:05 [end_date_ymd] => 2025-03-14 07:42:05 [RateCDR] => 1 ) [2025-03-14 07:42: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-03-14 04:42:05' and `end` < '2025-03-14 07:42: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-03-14 07:42:18] Production.INFO: count ==127 [2025-03-14 07:42:18] Production.ERROR: pbx CDR StartTime 2025-03-14 04:42:05 - End Time 2025-03-14 07:42:05 [2025-03-14 07:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677382', 'tblTempUsageDetail_20' ) start [2025-03-14 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677382', 'tblTempUsageDetail_20' ) end [2025-03-14 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677382', 'tblTempVendorCDR_20' ) start [2025-03-14 07:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677382', 'tblTempVendorCDR_20' ) end [2025-03-14 07:42:18] Production.INFO: ProcessCDR(1,14677382,1,1,2) [2025-03-14 07:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677382,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677382,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677382', 'tblTempUsageDetail_20' ) start [2025-03-14 07:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677382', 'tblTempUsageDetail_20' ) end [2025-03-14 07:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 07:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 07:42:21] Production.INFO: ==17811== Releasing lock... [2025-03-14 07:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 07:42:21] Production.INFO: 29 MB #Memory Used# [2025-03-14 07:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 04:43:06 [end_date_ymd] => 2025-03-14 07:43:06 [RateCDR] => 1 ) [2025-03-14 07:43: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-03-14 04:43:06' and `end` < '2025-03-14 07:43: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-03-14 07:43:18] Production.INFO: count ==127 [2025-03-14 07:43:18] Production.ERROR: pbx CDR StartTime 2025-03-14 04:43:06 - End Time 2025-03-14 07:43:06 [2025-03-14 07:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677387', 'tblTempUsageDetail_20' ) start [2025-03-14 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677387', 'tblTempUsageDetail_20' ) end [2025-03-14 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677387', 'tblTempVendorCDR_20' ) start [2025-03-14 07:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677387', 'tblTempVendorCDR_20' ) end [2025-03-14 07:43:18] Production.INFO: ProcessCDR(1,14677387,1,1,2) [2025-03-14 07:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677387,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677387,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677387', 'tblTempUsageDetail_20' ) start [2025-03-14 07:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677387', 'tblTempUsageDetail_20' ) end [2025-03-14 07:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 07:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 07:43:21] Production.INFO: ==17883== Releasing lock... [2025-03-14 07:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 07:43:21] Production.INFO: 29 MB #Memory Used# [2025-03-14 07:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 04:44:05 [end_date_ymd] => 2025-03-14 07:44:05 [RateCDR] => 1 ) [2025-03-14 07:44: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-03-14 04:44:05' and `end` < '2025-03-14 07:44: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-03-14 07:44:17] Production.INFO: count ==127 [2025-03-14 07:44:17] Production.ERROR: pbx CDR StartTime 2025-03-14 04:44:05 - End Time 2025-03-14 07:44:05 [2025-03-14 07:44:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677392', 'tblTempUsageDetail_20' ) start [2025-03-14 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677392', 'tblTempUsageDetail_20' ) end [2025-03-14 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677392', 'tblTempVendorCDR_20' ) start [2025-03-14 07:44:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677392', 'tblTempVendorCDR_20' ) end [2025-03-14 07:44:17] Production.INFO: ProcessCDR(1,14677392,1,1,2) [2025-03-14 07:44:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:44:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:44:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:44:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677392', 'tblTempUsageDetail_20' ) start [2025-03-14 07:44:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677392', 'tblTempUsageDetail_20' ) end [2025-03-14 07:44:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 07:44:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 07:44:20] Production.INFO: ==17956== Releasing lock... [2025-03-14 07:44:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 07:44:20] Production.INFO: 29 MB #Memory Used# [2025-03-14 07:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 04:45:06 [end_date_ymd] => 2025-03-14 07:45:06 [RateCDR] => 1 ) [2025-03-14 07:45: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-03-14 04:45:06' and `end` < '2025-03-14 07:45: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-03-14 07:45:18] Production.INFO: count ==127 [2025-03-14 07:45:18] Production.ERROR: pbx CDR StartTime 2025-03-14 04:45:06 - End Time 2025-03-14 07:45:06 [2025-03-14 07:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677397', 'tblTempUsageDetail_20' ) start [2025-03-14 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677397', 'tblTempUsageDetail_20' ) end [2025-03-14 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677397', 'tblTempVendorCDR_20' ) start [2025-03-14 07:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677397', 'tblTempVendorCDR_20' ) end [2025-03-14 07:45:18] Production.INFO: ProcessCDR(1,14677397,1,1,2) [2025-03-14 07:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677397', 'tblTempUsageDetail_20' ) start [2025-03-14 07:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677397', 'tblTempUsageDetail_20' ) end [2025-03-14 07:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 07:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 07:45:21] Production.INFO: ==18033== Releasing lock... [2025-03-14 07:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 07:45:21] Production.INFO: 29 MB #Memory Used# [2025-03-14 07:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 04:46:05 [end_date_ymd] => 2025-03-14 07:46:05 [RateCDR] => 1 ) [2025-03-14 07:46: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-03-14 04:46:05' and `end` < '2025-03-14 07:46: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-03-14 07:46:17] Production.INFO: count ==127 [2025-03-14 07:46:17] Production.ERROR: pbx CDR StartTime 2025-03-14 04:46:05 - End Time 2025-03-14 07:46:05 [2025-03-14 07:46:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677402', 'tblTempUsageDetail_20' ) start [2025-03-14 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677402', 'tblTempUsageDetail_20' ) end [2025-03-14 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677402', 'tblTempVendorCDR_20' ) start [2025-03-14 07:46:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677402', 'tblTempVendorCDR_20' ) end [2025-03-14 07:46:17] Production.INFO: ProcessCDR(1,14677402,1,1,2) [2025-03-14 07:46:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:46:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677402', 'tblTempUsageDetail_20' ) start [2025-03-14 07:46:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677402', 'tblTempUsageDetail_20' ) end [2025-03-14 07:46:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 07:46:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 07:46:20] Production.INFO: ==18107== Releasing lock... [2025-03-14 07:46:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 07:46:20] Production.INFO: 29 MB #Memory Used# [2025-03-14 07:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 04:47:05 [end_date_ymd] => 2025-03-14 07:47:05 [RateCDR] => 1 ) [2025-03-14 07:47: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-03-14 04:47:05' and `end` < '2025-03-14 07:47: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-03-14 07:47:17] Production.INFO: count ==127 [2025-03-14 07:47:17] Production.ERROR: pbx CDR StartTime 2025-03-14 04:47:05 - End Time 2025-03-14 07:47:05 [2025-03-14 07:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677407', 'tblTempUsageDetail_20' ) start [2025-03-14 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677407', 'tblTempUsageDetail_20' ) end [2025-03-14 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677407', 'tblTempVendorCDR_20' ) start [2025-03-14 07:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677407', 'tblTempVendorCDR_20' ) end [2025-03-14 07:47:17] Production.INFO: ProcessCDR(1,14677407,1,1,2) [2025-03-14 07:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677407', 'tblTempUsageDetail_20' ) start [2025-03-14 07:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677407', 'tblTempUsageDetail_20' ) end [2025-03-14 07:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 07:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 07:47:21] Production.INFO: ==18179== Releasing lock... [2025-03-14 07:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 07:47:21] Production.INFO: 29 MB #Memory Used# [2025-03-14 07:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 04:48:05 [end_date_ymd] => 2025-03-14 07:48:05 [RateCDR] => 1 ) [2025-03-14 07:48: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-03-14 04:48:05' and `end` < '2025-03-14 07:48: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-03-14 07:48:17] Production.INFO: count ==132 [2025-03-14 07:48:17] Production.ERROR: pbx CDR StartTime 2025-03-14 04:48:05 - End Time 2025-03-14 07:48:05 [2025-03-14 07:48:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 07:48:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677412', 'tblTempUsageDetail_20' ) start [2025-03-14 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677412', 'tblTempUsageDetail_20' ) end [2025-03-14 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677412', 'tblTempVendorCDR_20' ) start [2025-03-14 07:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677412', 'tblTempVendorCDR_20' ) end [2025-03-14 07:48:18] Production.INFO: ProcessCDR(1,14677412,1,1,2) [2025-03-14 07:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677412', 'tblTempUsageDetail_20' ) start [2025-03-14 07:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677412', 'tblTempUsageDetail_20' ) end [2025-03-14 07:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 07:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 07:48:21] Production.INFO: ==18251== Releasing lock... [2025-03-14 07:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 07:48:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-14 07:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 04:49:06 [end_date_ymd] => 2025-03-14 07:49:06 [RateCDR] => 1 ) [2025-03-14 07:49: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-03-14 04:49:06' and `end` < '2025-03-14 07:49: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-03-14 07:49:18] Production.INFO: count ==132 [2025-03-14 07:49:18] Production.ERROR: pbx CDR StartTime 2025-03-14 04:49:06 - End Time 2025-03-14 07:49:06 [2025-03-14 07:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677417', 'tblTempUsageDetail_20' ) start [2025-03-14 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677417', 'tblTempUsageDetail_20' ) end [2025-03-14 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677417', 'tblTempVendorCDR_20' ) start [2025-03-14 07:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677417', 'tblTempVendorCDR_20' ) end [2025-03-14 07:49:18] Production.INFO: ProcessCDR(1,14677417,1,1,2) [2025-03-14 07:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677417', 'tblTempUsageDetail_20' ) start [2025-03-14 07:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677417', 'tblTempUsageDetail_20' ) end [2025-03-14 07:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 07:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 07:49:21] Production.INFO: ==18328== Releasing lock... [2025-03-14 07:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 07:49:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-14 07:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 04:50:06 [end_date_ymd] => 2025-03-14 07:50:06 [RateCDR] => 1 ) [2025-03-14 07:50: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-03-14 04:50:06' and `end` < '2025-03-14 07:50: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-03-14 07:50:18] Production.INFO: count ==141 [2025-03-14 07:50:18] Production.ERROR: pbx CDR StartTime 2025-03-14 04:50:06 - End Time 2025-03-14 07:50:06 [2025-03-14 07:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677423', 'tblTempUsageDetail_20' ) start [2025-03-14 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677423', 'tblTempUsageDetail_20' ) end [2025-03-14 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677423', 'tblTempVendorCDR_20' ) start [2025-03-14 07:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677423', 'tblTempVendorCDR_20' ) end [2025-03-14 07:50:18] Production.INFO: ProcessCDR(1,14677423,1,1,2) [2025-03-14 07:50:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677423,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677423,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677423', 'tblTempUsageDetail_20' ) start [2025-03-14 07:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677423', 'tblTempUsageDetail_20' ) end [2025-03-14 07:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 07:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 07:50:23] Production.INFO: ==18406== Releasing lock... [2025-03-14 07:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 07:50:23] Production.INFO: 29.5 MB #Memory Used# [2025-03-14 07:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 04:51:06 [end_date_ymd] => 2025-03-14 07:51:06 [RateCDR] => 1 ) [2025-03-14 07:51: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-03-14 04:51:06' and `end` < '2025-03-14 07:51: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-03-14 07:51:18] Production.INFO: count ==141 [2025-03-14 07:51:18] Production.ERROR: pbx CDR StartTime 2025-03-14 04:51:06 - End Time 2025-03-14 07:51:06 [2025-03-14 07:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677428', 'tblTempUsageDetail_20' ) start [2025-03-14 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677428', 'tblTempUsageDetail_20' ) end [2025-03-14 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677428', 'tblTempVendorCDR_20' ) start [2025-03-14 07:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677428', 'tblTempVendorCDR_20' ) end [2025-03-14 07:51:18] Production.INFO: ProcessCDR(1,14677428,1,1,2) [2025-03-14 07:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677428,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677428,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677428', 'tblTempUsageDetail_20' ) start [2025-03-14 07:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677428', 'tblTempUsageDetail_20' ) end [2025-03-14 07:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 07:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 07:51:21] Production.INFO: ==18519== Releasing lock... [2025-03-14 07:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 07:51:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-14 07:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 04:52:05 [end_date_ymd] => 2025-03-14 07:52:05 [RateCDR] => 1 ) [2025-03-14 07:52: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-03-14 04:52:05' and `end` < '2025-03-14 07:52: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-03-14 07:52:17] Production.INFO: count ==141 [2025-03-14 07:52:17] Production.ERROR: pbx CDR StartTime 2025-03-14 04:52:05 - End Time 2025-03-14 07:52:05 [2025-03-14 07:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677433', 'tblTempUsageDetail_20' ) start [2025-03-14 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677433', 'tblTempUsageDetail_20' ) end [2025-03-14 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677433', 'tblTempVendorCDR_20' ) start [2025-03-14 07:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677433', 'tblTempVendorCDR_20' ) end [2025-03-14 07:52:17] Production.INFO: ProcessCDR(1,14677433,1,1,2) [2025-03-14 07:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677433,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677433,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677433', 'tblTempUsageDetail_20' ) start [2025-03-14 07:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677433', 'tblTempUsageDetail_20' ) end [2025-03-14 07:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 07:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 07:52:21] Production.INFO: ==18592== Releasing lock... [2025-03-14 07:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 07:52:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-14 07:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 04:53:05 [end_date_ymd] => 2025-03-14 07:53:05 [RateCDR] => 1 ) [2025-03-14 07:53: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-03-14 04:53:05' and `end` < '2025-03-14 07:53: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-03-14 07:53:17] Production.INFO: count ==145 [2025-03-14 07:53:17] Production.ERROR: pbx CDR StartTime 2025-03-14 04:53:05 - End Time 2025-03-14 07:53:05 [2025-03-14 07:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677438', 'tblTempUsageDetail_20' ) start [2025-03-14 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677438', 'tblTempUsageDetail_20' ) end [2025-03-14 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677438', 'tblTempVendorCDR_20' ) start [2025-03-14 07:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677438', 'tblTempVendorCDR_20' ) end [2025-03-14 07:53:17] Production.INFO: ProcessCDR(1,14677438,1,1,2) [2025-03-14 07:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677438,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677438,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677438', 'tblTempUsageDetail_20' ) start [2025-03-14 07:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677438', 'tblTempUsageDetail_20' ) end [2025-03-14 07:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 07:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 07:53:21] Production.INFO: ==18672== Releasing lock... [2025-03-14 07:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 07:53:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-14 07:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 04:54:05 [end_date_ymd] => 2025-03-14 07:54:05 [RateCDR] => 1 ) [2025-03-14 07:54: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-03-14 04:54:05' and `end` < '2025-03-14 07:54: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-03-14 07:54:17] Production.INFO: count ==146 [2025-03-14 07:54:17] Production.ERROR: pbx CDR StartTime 2025-03-14 04:54:05 - End Time 2025-03-14 07:54:05 [2025-03-14 07:54:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677443', 'tblTempUsageDetail_20' ) start [2025-03-14 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677443', 'tblTempUsageDetail_20' ) end [2025-03-14 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677443', 'tblTempVendorCDR_20' ) start [2025-03-14 07:54:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677443', 'tblTempVendorCDR_20' ) end [2025-03-14 07:54:17] Production.INFO: ProcessCDR(1,14677443,1,1,2) [2025-03-14 07:54:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677443,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677443,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677443', 'tblTempUsageDetail_20' ) start [2025-03-14 07:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677443', 'tblTempUsageDetail_20' ) end [2025-03-14 07:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 07:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 07:54:21] Production.INFO: ==18746== Releasing lock... [2025-03-14 07:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 07:54:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-14 07:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 04:55:05 [end_date_ymd] => 2025-03-14 07:55:05 [RateCDR] => 1 ) [2025-03-14 07:55: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-03-14 04:55:05' and `end` < '2025-03-14 07:55: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-03-14 07:55:18] Production.INFO: count ==146 [2025-03-14 07:55:18] Production.ERROR: pbx CDR StartTime 2025-03-14 04:55:05 - End Time 2025-03-14 07:55:05 [2025-03-14 07:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677448', 'tblTempUsageDetail_20' ) start [2025-03-14 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677448', 'tblTempUsageDetail_20' ) end [2025-03-14 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677448', 'tblTempVendorCDR_20' ) start [2025-03-14 07:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677448', 'tblTempVendorCDR_20' ) end [2025-03-14 07:55:18] Production.INFO: ProcessCDR(1,14677448,1,1,2) [2025-03-14 07:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677448', 'tblTempUsageDetail_20' ) start [2025-03-14 07:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677448', 'tblTempUsageDetail_20' ) end [2025-03-14 07:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 07:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 07:55:21] Production.INFO: ==18821== Releasing lock... [2025-03-14 07:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 07:55:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-14 07:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 04:56:05 [end_date_ymd] => 2025-03-14 07:56:05 [RateCDR] => 1 ) [2025-03-14 07:56: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-03-14 04:56:05' and `end` < '2025-03-14 07:56: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-03-14 07:56:18] Production.INFO: count ==153 [2025-03-14 07:56:18] Production.ERROR: pbx CDR StartTime 2025-03-14 04:56:05 - End Time 2025-03-14 07:56:05 [2025-03-14 07:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677453', 'tblTempUsageDetail_20' ) start [2025-03-14 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677453', 'tblTempUsageDetail_20' ) end [2025-03-14 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677453', 'tblTempVendorCDR_20' ) start [2025-03-14 07:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677453', 'tblTempVendorCDR_20' ) end [2025-03-14 07:56:18] Production.INFO: ProcessCDR(1,14677453,1,1,2) [2025-03-14 07:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:56:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677453', 'tblTempUsageDetail_20' ) start [2025-03-14 07:56:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677453', 'tblTempUsageDetail_20' ) end [2025-03-14 07:56:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 07:56:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 07:56:21] Production.INFO: ==18894== Releasing lock... [2025-03-14 07:56:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 07:56:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-14 07:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 04:57:06 [end_date_ymd] => 2025-03-14 07:57:06 [RateCDR] => 1 ) [2025-03-14 07:57: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-03-14 04:57:06' and `end` < '2025-03-14 07:57: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-03-14 07:57:18] Production.INFO: count ==155 [2025-03-14 07:57:18] Production.ERROR: pbx CDR StartTime 2025-03-14 04:57:06 - End Time 2025-03-14 07:57:06 [2025-03-14 07:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677458', 'tblTempUsageDetail_20' ) start [2025-03-14 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677458', 'tblTempUsageDetail_20' ) end [2025-03-14 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677458', 'tblTempVendorCDR_20' ) start [2025-03-14 07:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677458', 'tblTempVendorCDR_20' ) end [2025-03-14 07:57:18] Production.INFO: ProcessCDR(1,14677458,1,1,2) [2025-03-14 07:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677458', 'tblTempUsageDetail_20' ) start [2025-03-14 07:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677458', 'tblTempUsageDetail_20' ) end [2025-03-14 07:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 07:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 07:57:21] Production.INFO: ==18968== Releasing lock... [2025-03-14 07:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 07:57:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-14 07:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 04:58:05 [end_date_ymd] => 2025-03-14 07:58:05 [RateCDR] => 1 ) [2025-03-14 07:58: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-03-14 04:58:05' and `end` < '2025-03-14 07:58: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-03-14 07:58:17] Production.INFO: count ==155 [2025-03-14 07:58:17] Production.ERROR: pbx CDR StartTime 2025-03-14 04:58:05 - End Time 2025-03-14 07:58:05 [2025-03-14 07:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677463', 'tblTempUsageDetail_20' ) start [2025-03-14 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677463', 'tblTempUsageDetail_20' ) end [2025-03-14 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677463', 'tblTempVendorCDR_20' ) start [2025-03-14 07:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677463', 'tblTempVendorCDR_20' ) end [2025-03-14 07:58:17] Production.INFO: ProcessCDR(1,14677463,1,1,2) [2025-03-14 07:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677463', 'tblTempUsageDetail_20' ) start [2025-03-14 07:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677463', 'tblTempUsageDetail_20' ) end [2025-03-14 07:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 07:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 07:58:21] Production.INFO: ==19040== Releasing lock... [2025-03-14 07:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 07:58:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-14 07:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 04:59:05 [end_date_ymd] => 2025-03-14 07:59:05 [RateCDR] => 1 ) [2025-03-14 07:59: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-03-14 04:59:05' and `end` < '2025-03-14 07:59: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-03-14 07:59:18] Production.INFO: count ==155 [2025-03-14 07:59:18] Production.ERROR: pbx CDR StartTime 2025-03-14 04:59:05 - End Time 2025-03-14 07:59:05 [2025-03-14 07:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677468', 'tblTempUsageDetail_20' ) start [2025-03-14 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677468', 'tblTempUsageDetail_20' ) end [2025-03-14 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677468', 'tblTempVendorCDR_20' ) start [2025-03-14 07:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677468', 'tblTempVendorCDR_20' ) end [2025-03-14 07:59:18] Production.INFO: ProcessCDR(1,14677468,1,1,2) [2025-03-14 07:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 07:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677468', 'tblTempUsageDetail_20' ) start [2025-03-14 07:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677468', 'tblTempUsageDetail_20' ) end [2025-03-14 07:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 07:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 07:59:21] Production.INFO: ==19115== Releasing lock... [2025-03-14 07:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 07:59:21] Production.INFO: 29.75 MB #Memory Used# [2025-03-14 08:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 05:00:06 [end_date_ymd] => 2025-03-14 08:00:06 [RateCDR] => 1 ) [2025-03-14 08:00: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-03-14 05:00:06' and `end` < '2025-03-14 08:00: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-03-14 08:00:18] Production.INFO: count ==164 [2025-03-14 08:00:18] Production.ERROR: pbx CDR StartTime 2025-03-14 05:00:06 - End Time 2025-03-14 08:00:06 [2025-03-14 08:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677473', 'tblTempUsageDetail_20' ) start [2025-03-14 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677473', 'tblTempUsageDetail_20' ) end [2025-03-14 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677473', 'tblTempVendorCDR_20' ) start [2025-03-14 08:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677473', 'tblTempVendorCDR_20' ) end [2025-03-14 08:00:18] Production.INFO: ProcessCDR(1,14677473,1,1,2) [2025-03-14 08:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677473', 'tblTempUsageDetail_20' ) start [2025-03-14 08:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677473', 'tblTempUsageDetail_20' ) end [2025-03-14 08:00:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 08:00:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 08:00:23] Production.INFO: ==19193== Releasing lock... [2025-03-14 08:00:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 08:00:23] Production.INFO: 29.75 MB #Memory Used# [2025-03-14 08:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 05:01:06 [end_date_ymd] => 2025-03-14 08:01:06 [RateCDR] => 1 ) [2025-03-14 08:01: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-03-14 05:01:06' and `end` < '2025-03-14 08:01: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-03-14 08:01:18] Production.INFO: count ==169 [2025-03-14 08:01:18] Production.ERROR: pbx CDR StartTime 2025-03-14 05:01:06 - End Time 2025-03-14 08:01:06 [2025-03-14 08:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677479', 'tblTempUsageDetail_20' ) start [2025-03-14 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677479', 'tblTempUsageDetail_20' ) end [2025-03-14 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677479', 'tblTempVendorCDR_20' ) start [2025-03-14 08:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677479', 'tblTempVendorCDR_20' ) end [2025-03-14 08:01:18] Production.INFO: ProcessCDR(1,14677479,1,1,2) [2025-03-14 08:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677479,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677479,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677479', 'tblTempUsageDetail_20' ) start [2025-03-14 08:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677479', 'tblTempUsageDetail_20' ) end [2025-03-14 08:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 08:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 08:01:21] Production.INFO: ==19279== Releasing lock... [2025-03-14 08:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 08:01:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-14 08:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 05:02:05 [end_date_ymd] => 2025-03-14 08:02:05 [RateCDR] => 1 ) [2025-03-14 08:02: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-03-14 05:02:05' and `end` < '2025-03-14 08:02: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-03-14 08:02:17] Production.INFO: count ==170 [2025-03-14 08:02:17] Production.ERROR: pbx CDR StartTime 2025-03-14 05:02:05 - End Time 2025-03-14 08:02:05 [2025-03-14 08:02:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677484', 'tblTempUsageDetail_20' ) start [2025-03-14 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677484', 'tblTempUsageDetail_20' ) end [2025-03-14 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677484', 'tblTempVendorCDR_20' ) start [2025-03-14 08:02:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677484', 'tblTempVendorCDR_20' ) end [2025-03-14 08:02:17] Production.INFO: ProcessCDR(1,14677484,1,1,2) [2025-03-14 08:02:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677484,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677484,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677484', 'tblTempUsageDetail_20' ) start [2025-03-14 08:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677484', 'tblTempUsageDetail_20' ) end [2025-03-14 08:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 08:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 08:02:22] Production.INFO: ==19350== Releasing lock... [2025-03-14 08:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 08:02:22] Production.INFO: 29.75 MB #Memory Used# [2025-03-14 08:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 05:03:06 [end_date_ymd] => 2025-03-14 08:03:06 [RateCDR] => 1 ) [2025-03-14 08:03: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-03-14 05:03:06' and `end` < '2025-03-14 08:03: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-03-14 08:03:18] Production.INFO: count ==172 [2025-03-14 08:03:18] Production.ERROR: pbx CDR StartTime 2025-03-14 05:03:06 - End Time 2025-03-14 08:03:06 [2025-03-14 08:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677489', 'tblTempUsageDetail_20' ) start [2025-03-14 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677489', 'tblTempUsageDetail_20' ) end [2025-03-14 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677489', 'tblTempVendorCDR_20' ) start [2025-03-14 08:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677489', 'tblTempVendorCDR_20' ) end [2025-03-14 08:03:18] Production.INFO: ProcessCDR(1,14677489,1,1,2) [2025-03-14 08:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677489,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677489,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677489', 'tblTempUsageDetail_20' ) start [2025-03-14 08:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677489', 'tblTempUsageDetail_20' ) end [2025-03-14 08:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 08:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 08:03:22] Production.INFO: ==19422== Releasing lock... [2025-03-14 08:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 08:03:22] Production.INFO: 30 MB #Memory Used# [2025-03-14 08:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 05:04:05 [end_date_ymd] => 2025-03-14 08:04:05 [RateCDR] => 1 ) [2025-03-14 08:04: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-03-14 05:04:05' and `end` < '2025-03-14 08:04: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-03-14 08:04:18] Production.INFO: count ==168 [2025-03-14 08:04:18] Production.ERROR: pbx CDR StartTime 2025-03-14 05:04:05 - End Time 2025-03-14 08:04:05 [2025-03-14 08:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677494', 'tblTempUsageDetail_20' ) start [2025-03-14 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677494', 'tblTempUsageDetail_20' ) end [2025-03-14 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677494', 'tblTempVendorCDR_20' ) start [2025-03-14 08:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677494', 'tblTempVendorCDR_20' ) end [2025-03-14 08:04:18] Production.INFO: ProcessCDR(1,14677494,1,1,2) [2025-03-14 08:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677494', 'tblTempUsageDetail_20' ) start [2025-03-14 08:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677494', 'tblTempUsageDetail_20' ) end [2025-03-14 08:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 08:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 08:04:21] Production.INFO: ==19504== Releasing lock... [2025-03-14 08:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 08:04:21] Production.INFO: 29.5 MB #Memory Used# [2025-03-14 08:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 05:05:06 [end_date_ymd] => 2025-03-14 08:05:06 [RateCDR] => 1 ) [2025-03-14 08:05: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-03-14 05:05:06' and `end` < '2025-03-14 08:05: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-03-14 08:05:18] Production.INFO: count ==173 [2025-03-14 08:05:18] Production.ERROR: pbx CDR StartTime 2025-03-14 05:05:06 - End Time 2025-03-14 08:05:06 [2025-03-14 08:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677499', 'tblTempUsageDetail_20' ) start [2025-03-14 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677499', 'tblTempUsageDetail_20' ) end [2025-03-14 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677499', 'tblTempVendorCDR_20' ) start [2025-03-14 08:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677499', 'tblTempVendorCDR_20' ) end [2025-03-14 08:05:18] Production.INFO: ProcessCDR(1,14677499,1,1,2) [2025-03-14 08:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677499', 'tblTempUsageDetail_20' ) start [2025-03-14 08:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677499', 'tblTempUsageDetail_20' ) end [2025-03-14 08:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 08:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 08:05:22] Production.INFO: ==19574== Releasing lock... [2025-03-14 08:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 08:05:22] Production.INFO: 30 MB #Memory Used# [2025-03-14 08:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 05:06:05 [end_date_ymd] => 2025-03-14 08:06:05 [RateCDR] => 1 ) [2025-03-14 08:06: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-03-14 05:06:05' and `end` < '2025-03-14 08:06: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-03-14 08:06:17] Production.INFO: count ==181 [2025-03-14 08:06:17] Production.ERROR: pbx CDR StartTime 2025-03-14 05:06:05 - End Time 2025-03-14 08:06:05 [2025-03-14 08:06:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677504', 'tblTempUsageDetail_20' ) start [2025-03-14 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677504', 'tblTempUsageDetail_20' ) end [2025-03-14 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677504', 'tblTempVendorCDR_20' ) start [2025-03-14 08:06:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677504', 'tblTempVendorCDR_20' ) end [2025-03-14 08:06:17] Production.INFO: ProcessCDR(1,14677504,1,1,2) [2025-03-14 08:06:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:06:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:06:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677504', 'tblTempUsageDetail_20' ) start [2025-03-14 08:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677504', 'tblTempUsageDetail_20' ) end [2025-03-14 08:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 08:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 08:06:21] Production.INFO: ==19687== Releasing lock... [2025-03-14 08:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 08:06:21] Production.INFO: 30 MB #Memory Used# [2025-03-14 08:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 05:07:06 [end_date_ymd] => 2025-03-14 08:07:06 [RateCDR] => 1 ) [2025-03-14 08:07: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-03-14 05:07:06' and `end` < '2025-03-14 08:07: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-03-14 08:07:18] Production.INFO: count ==185 [2025-03-14 08:07:18] Production.ERROR: pbx CDR StartTime 2025-03-14 05:07:06 - End Time 2025-03-14 08:07:06 [2025-03-14 08:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677509', 'tblTempUsageDetail_20' ) start [2025-03-14 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677509', 'tblTempUsageDetail_20' ) end [2025-03-14 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677509', 'tblTempVendorCDR_20' ) start [2025-03-14 08:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677509', 'tblTempVendorCDR_20' ) end [2025-03-14 08:07:18] Production.INFO: ProcessCDR(1,14677509,1,1,2) [2025-03-14 08:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677509', 'tblTempUsageDetail_20' ) start [2025-03-14 08:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677509', 'tblTempUsageDetail_20' ) end [2025-03-14 08:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 08:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 08:07:21] Production.INFO: ==19762== Releasing lock... [2025-03-14 08:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 08:07:21] Production.INFO: 30.25 MB #Memory Used# [2025-03-14 08:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 05:08:05 [end_date_ymd] => 2025-03-14 08:08:05 [RateCDR] => 1 ) [2025-03-14 08:08: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-03-14 05:08:05' and `end` < '2025-03-14 08:08: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-03-14 08:08:17] Production.INFO: count ==192 [2025-03-14 08:08:17] Production.ERROR: pbx CDR StartTime 2025-03-14 05:08:05 - End Time 2025-03-14 08:08:05 [2025-03-14 08:08:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677514', 'tblTempUsageDetail_20' ) start [2025-03-14 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677514', 'tblTempUsageDetail_20' ) end [2025-03-14 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677514', 'tblTempVendorCDR_20' ) start [2025-03-14 08:08:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677514', 'tblTempVendorCDR_20' ) end [2025-03-14 08:08:17] Production.INFO: ProcessCDR(1,14677514,1,1,2) [2025-03-14 08:08:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677514', 'tblTempUsageDetail_20' ) start [2025-03-14 08:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677514', 'tblTempUsageDetail_20' ) end [2025-03-14 08:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 08:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 08:08:22] Production.INFO: ==19839== Releasing lock... [2025-03-14 08:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 08:08:22] Production.INFO: 30.25 MB #Memory Used# [2025-03-14 08:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 05:09:06 [end_date_ymd] => 2025-03-14 08:09:06 [RateCDR] => 1 ) [2025-03-14 08:09: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-03-14 05:09:06' and `end` < '2025-03-14 08:09: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-03-14 08:09:18] Production.INFO: count ==201 [2025-03-14 08:09:18] Production.ERROR: pbx CDR StartTime 2025-03-14 05:09:06 - End Time 2025-03-14 08:09:06 [2025-03-14 08:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677519', 'tblTempUsageDetail_20' ) start [2025-03-14 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677519', 'tblTempUsageDetail_20' ) end [2025-03-14 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677519', 'tblTempVendorCDR_20' ) start [2025-03-14 08:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677519', 'tblTempVendorCDR_20' ) end [2025-03-14 08:09:18] Production.INFO: ProcessCDR(1,14677519,1,1,2) [2025-03-14 08:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677519', 'tblTempUsageDetail_20' ) start [2025-03-14 08:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677519', 'tblTempUsageDetail_20' ) end [2025-03-14 08:09:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 08:09:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 08:09:23] Production.INFO: ==19914== Releasing lock... [2025-03-14 08:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 08:09:23] Production.INFO: 30 MB #Memory Used# [2025-03-14 08:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 05:10:06 [end_date_ymd] => 2025-03-14 08:10:06 [RateCDR] => 1 ) [2025-03-14 08:10: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-03-14 05:10:06' and `end` < '2025-03-14 08:10: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-03-14 08:10:18] Production.INFO: count ==220 [2025-03-14 08:10:18] Production.ERROR: pbx CDR StartTime 2025-03-14 05:10:06 - End Time 2025-03-14 08:10:06 [2025-03-14 08:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677524', 'tblTempUsageDetail_20' ) start [2025-03-14 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677524', 'tblTempUsageDetail_20' ) end [2025-03-14 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677524', 'tblTempVendorCDR_20' ) start [2025-03-14 08:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677524', 'tblTempVendorCDR_20' ) end [2025-03-14 08:10:18] Production.INFO: ProcessCDR(1,14677524,1,1,2) [2025-03-14 08:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677524', 'tblTempUsageDetail_20' ) start [2025-03-14 08:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677524', 'tblTempUsageDetail_20' ) end [2025-03-14 08:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 08:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 08:10:23] Production.INFO: ==19988== Releasing lock... [2025-03-14 08:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 08:10:23] Production.INFO: 30 MB #Memory Used# [2025-03-14 08:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 05:11:06 [end_date_ymd] => 2025-03-14 08:11:06 [RateCDR] => 1 ) [2025-03-14 08:11: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-03-14 05:11:06' and `end` < '2025-03-14 08:11: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-03-14 08:11:18] Production.INFO: count ==241 [2025-03-14 08:11:18] Production.ERROR: pbx CDR StartTime 2025-03-14 05:11:06 - End Time 2025-03-14 08:11:06 [2025-03-14 08:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677530', 'tblTempUsageDetail_20' ) start [2025-03-14 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677530', 'tblTempUsageDetail_20' ) end [2025-03-14 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677530', 'tblTempVendorCDR_20' ) start [2025-03-14 08:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677530', 'tblTempVendorCDR_20' ) end [2025-03-14 08:11:18] Production.INFO: ProcessCDR(1,14677530,1,1,2) [2025-03-14 08:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677530,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677530,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677530', 'tblTempUsageDetail_20' ) start [2025-03-14 08:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677530', 'tblTempUsageDetail_20' ) end [2025-03-14 08:11:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 08:11:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 08:11:23] Production.INFO: ==20066== Releasing lock... [2025-03-14 08:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 08:11:23] Production.INFO: 30.25 MB #Memory Used# [2025-03-14 08:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 05:12:05 [end_date_ymd] => 2025-03-14 08:12:05 [RateCDR] => 1 ) [2025-03-14 08:12: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-03-14 05:12:05' and `end` < '2025-03-14 08:12: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-03-14 08:12:17] Production.INFO: count ==245 [2025-03-14 08:12:17] Production.ERROR: pbx CDR StartTime 2025-03-14 05:12:05 - End Time 2025-03-14 08:12:05 [2025-03-14 08:12:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677535', 'tblTempUsageDetail_20' ) start [2025-03-14 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677535', 'tblTempUsageDetail_20' ) end [2025-03-14 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677535', 'tblTempVendorCDR_20' ) start [2025-03-14 08:12:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677535', 'tblTempVendorCDR_20' ) end [2025-03-14 08:12:17] Production.INFO: ProcessCDR(1,14677535,1,1,2) [2025-03-14 08:12:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677535,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677535,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677535', 'tblTempUsageDetail_20' ) start [2025-03-14 08:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677535', 'tblTempUsageDetail_20' ) end [2025-03-14 08:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 08:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 08:12:22] Production.INFO: ==20138== Releasing lock... [2025-03-14 08:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 08:12:22] Production.INFO: 30.5 MB #Memory Used# [2025-03-14 08:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 05:13:06 [end_date_ymd] => 2025-03-14 08:13:06 [RateCDR] => 1 ) [2025-03-14 08:13: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-03-14 05:13:06' and `end` < '2025-03-14 08:13: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-03-14 08:13:18] Production.INFO: count ==255 [2025-03-14 08:13:18] Production.ERROR: pbx CDR StartTime 2025-03-14 05:13:06 - End Time 2025-03-14 08:13:06 [2025-03-14 08:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677540', 'tblTempUsageDetail_20' ) start [2025-03-14 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677540', 'tblTempUsageDetail_20' ) end [2025-03-14 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677540', 'tblTempVendorCDR_20' ) start [2025-03-14 08:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677540', 'tblTempVendorCDR_20' ) end [2025-03-14 08:13:18] Production.INFO: ProcessCDR(1,14677540,1,1,2) [2025-03-14 08:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677540,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677540,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677540', 'tblTempUsageDetail_20' ) start [2025-03-14 08:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677540', 'tblTempUsageDetail_20' ) end [2025-03-14 08:13:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 08:13:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 08:13:23] Production.INFO: ==20219== Releasing lock... [2025-03-14 08:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 08:13:23] Production.INFO: 30.5 MB #Memory Used# [2025-03-14 08:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 05:14:05 [end_date_ymd] => 2025-03-14 08:14:05 [RateCDR] => 1 ) [2025-03-14 08:14: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-03-14 05:14:05' and `end` < '2025-03-14 08:14: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-03-14 08:14:17] Production.INFO: count ==270 [2025-03-14 08:14:18] Production.ERROR: pbx CDR StartTime 2025-03-14 05:14:05 - End Time 2025-03-14 08:14:05 [2025-03-14 08:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677545', 'tblTempUsageDetail_20' ) start [2025-03-14 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677545', 'tblTempUsageDetail_20' ) end [2025-03-14 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677545', 'tblTempVendorCDR_20' ) start [2025-03-14 08:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677545', 'tblTempVendorCDR_20' ) end [2025-03-14 08:14:18] Production.INFO: ProcessCDR(1,14677545,1,1,2) [2025-03-14 08:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677545', 'tblTempUsageDetail_20' ) start [2025-03-14 08:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677545', 'tblTempUsageDetail_20' ) end [2025-03-14 08:14:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 08:14:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 08:14:23] Production.INFO: ==20291== Releasing lock... [2025-03-14 08:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 08:14:23] Production.INFO: 30.75 MB #Memory Used# [2025-03-14 08:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 05:15:05 [end_date_ymd] => 2025-03-14 08:15:05 [RateCDR] => 1 ) [2025-03-14 08:15: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-03-14 05:15:05' and `end` < '2025-03-14 08:15: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-03-14 08:15:17] Production.INFO: count ==279 [2025-03-14 08:15:17] Production.ERROR: pbx CDR StartTime 2025-03-14 05:15:05 - End Time 2025-03-14 08:15:05 [2025-03-14 08:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677550', 'tblTempUsageDetail_20' ) start [2025-03-14 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677550', 'tblTempUsageDetail_20' ) end [2025-03-14 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677550', 'tblTempVendorCDR_20' ) start [2025-03-14 08:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677550', 'tblTempVendorCDR_20' ) end [2025-03-14 08:15:17] Production.INFO: ProcessCDR(1,14677550,1,1,2) [2025-03-14 08:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677550', 'tblTempUsageDetail_20' ) start [2025-03-14 08:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677550', 'tblTempUsageDetail_20' ) end [2025-03-14 08:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 08:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 08:15:21] Production.INFO: ==20367== Releasing lock... [2025-03-14 08:15:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 08:15:21] Production.INFO: 30 MB #Memory Used# [2025-03-14 08:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 05:16:05 [end_date_ymd] => 2025-03-14 08:16:05 [RateCDR] => 1 ) [2025-03-14 08:16: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-03-14 05:16:05' and `end` < '2025-03-14 08:16: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-03-14 08:16:17] Production.INFO: count ==291 [2025-03-14 08:16:17] Production.ERROR: pbx CDR StartTime 2025-03-14 05:16:05 - End Time 2025-03-14 08:16:05 [2025-03-14 08:16:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677555', 'tblTempUsageDetail_20' ) start [2025-03-14 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677555', 'tblTempUsageDetail_20' ) end [2025-03-14 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677555', 'tblTempVendorCDR_20' ) start [2025-03-14 08:16:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677555', 'tblTempVendorCDR_20' ) end [2025-03-14 08:16:17] Production.INFO: ProcessCDR(1,14677555,1,1,2) [2025-03-14 08:16:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:16:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:16:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677555', 'tblTempUsageDetail_20' ) start [2025-03-14 08:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677555', 'tblTempUsageDetail_20' ) end [2025-03-14 08:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 08:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 08:16:21] Production.INFO: ==20439== Releasing lock... [2025-03-14 08:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 08:16:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-14 08:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 05:17:06 [end_date_ymd] => 2025-03-14 08:17:06 [RateCDR] => 1 ) [2025-03-14 08:17: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-03-14 05:17:06' and `end` < '2025-03-14 08:17: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-03-14 08:17:18] Production.INFO: count ==292 [2025-03-14 08:17:18] Production.ERROR: pbx CDR StartTime 2025-03-14 05:17:06 - End Time 2025-03-14 08:17:06 [2025-03-14 08:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677560', 'tblTempUsageDetail_20' ) start [2025-03-14 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677560', 'tblTempUsageDetail_20' ) end [2025-03-14 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677560', 'tblTempVendorCDR_20' ) start [2025-03-14 08:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677560', 'tblTempVendorCDR_20' ) end [2025-03-14 08:17:18] Production.INFO: ProcessCDR(1,14677560,1,1,2) [2025-03-14 08:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677560', 'tblTempUsageDetail_20' ) start [2025-03-14 08:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677560', 'tblTempUsageDetail_20' ) end [2025-03-14 08:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 08:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 08:17:21] Production.INFO: ==20511== Releasing lock... [2025-03-14 08:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 08:17:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-14 08:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 05:18:05 [end_date_ymd] => 2025-03-14 08:18:05 [RateCDR] => 1 ) [2025-03-14 08:18: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-03-14 05:18:05' and `end` < '2025-03-14 08:18: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-03-14 08:18:18] Production.INFO: count ==292 [2025-03-14 08:18:18] Production.ERROR: pbx CDR StartTime 2025-03-14 05:18:05 - End Time 2025-03-14 08:18:05 [2025-03-14 08:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677565', 'tblTempUsageDetail_20' ) start [2025-03-14 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677565', 'tblTempUsageDetail_20' ) end [2025-03-14 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677565', 'tblTempVendorCDR_20' ) start [2025-03-14 08:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677565', 'tblTempVendorCDR_20' ) end [2025-03-14 08:18:18] Production.INFO: ProcessCDR(1,14677565,1,1,2) [2025-03-14 08:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677565', 'tblTempUsageDetail_20' ) start [2025-03-14 08:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677565', 'tblTempUsageDetail_20' ) end [2025-03-14 08:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 08:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 08:18:21] Production.INFO: ==20589== Releasing lock... [2025-03-14 08:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 08:18:21] Production.INFO: 30.75 MB #Memory Used# [2025-03-14 08:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 05:19:05 [end_date_ymd] => 2025-03-14 08:19:05 [RateCDR] => 1 ) [2025-03-14 08:19: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-03-14 05:19:05' and `end` < '2025-03-14 08:19: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-03-14 08:19:17] Production.INFO: count ==302 [2025-03-14 08:19:17] Production.ERROR: pbx CDR StartTime 2025-03-14 05:19:05 - End Time 2025-03-14 08:19:05 [2025-03-14 08:19:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677570', 'tblTempUsageDetail_20' ) start [2025-03-14 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677570', 'tblTempUsageDetail_20' ) end [2025-03-14 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677570', 'tblTempVendorCDR_20' ) start [2025-03-14 08:19:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677570', 'tblTempVendorCDR_20' ) end [2025-03-14 08:19:17] Production.INFO: ProcessCDR(1,14677570,1,1,2) [2025-03-14 08:19:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:19:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:19:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:19:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677570', 'tblTempUsageDetail_20' ) start [2025-03-14 08:19:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677570', 'tblTempUsageDetail_20' ) end [2025-03-14 08:19:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 08:19:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 08:19:22] Production.INFO: ==20667== Releasing lock... [2025-03-14 08:19:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 08:19:22] Production.INFO: 30.75 MB #Memory Used# [2025-03-14 08:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 05:20:06 [end_date_ymd] => 2025-03-14 08:20:06 [RateCDR] => 1 ) [2025-03-14 08:20: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-03-14 05:20:06' and `end` < '2025-03-14 08:20: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-03-14 08:20:18] Production.INFO: count ==313 [2025-03-14 08:20:18] Production.ERROR: pbx CDR StartTime 2025-03-14 05:20:06 - End Time 2025-03-14 08:20:06 [2025-03-14 08:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677576', 'tblTempUsageDetail_20' ) start [2025-03-14 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677576', 'tblTempUsageDetail_20' ) end [2025-03-14 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677576', 'tblTempVendorCDR_20' ) start [2025-03-14 08:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677576', 'tblTempVendorCDR_20' ) end [2025-03-14 08:20:18] Production.INFO: ProcessCDR(1,14677576,1,1,2) [2025-03-14 08:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677576,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677576,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677576', 'tblTempUsageDetail_20' ) start [2025-03-14 08:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677576', 'tblTempUsageDetail_20' ) end [2025-03-14 08:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 08:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 08:20:23] Production.INFO: ==20742== Releasing lock... [2025-03-14 08:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 08:20:23] Production.INFO: 30.75 MB #Memory Used# [2025-03-14 08:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 05:21:05 [end_date_ymd] => 2025-03-14 08:21:05 [RateCDR] => 1 ) [2025-03-14 08:21: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-03-14 05:21:05' and `end` < '2025-03-14 08:21: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-03-14 08:21:17] Production.INFO: count ==348 [2025-03-14 08:21:17] Production.ERROR: pbx CDR StartTime 2025-03-14 05:21:05 - End Time 2025-03-14 08:21:05 [2025-03-14 08:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677581', 'tblTempUsageDetail_20' ) start [2025-03-14 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677581', 'tblTempUsageDetail_20' ) end [2025-03-14 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677581', 'tblTempVendorCDR_20' ) start [2025-03-14 08:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677581', 'tblTempVendorCDR_20' ) end [2025-03-14 08:21:17] Production.INFO: ProcessCDR(1,14677581,1,1,2) [2025-03-14 08:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677581,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677581,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677581', 'tblTempUsageDetail_20' ) start [2025-03-14 08:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677581', 'tblTempUsageDetail_20' ) end [2025-03-14 08:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 08:21:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 08:21:23] Production.INFO: ==20817== Releasing lock... [2025-03-14 08:21:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 08:21:23] Production.INFO: 31.25 MB #Memory Used# [2025-03-14 08:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 05:22:05 [end_date_ymd] => 2025-03-14 08:22:05 [RateCDR] => 1 ) [2025-03-14 08:22: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-03-14 05:22:05' and `end` < '2025-03-14 08:22: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-03-14 08:22:17] Production.INFO: count ==358 [2025-03-14 08:22:18] Production.ERROR: pbx CDR StartTime 2025-03-14 05:22:05 - End Time 2025-03-14 08:22:05 [2025-03-14 08:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677586', 'tblTempUsageDetail_20' ) start [2025-03-14 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677586', 'tblTempUsageDetail_20' ) end [2025-03-14 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677586', 'tblTempVendorCDR_20' ) start [2025-03-14 08:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677586', 'tblTempVendorCDR_20' ) end [2025-03-14 08:22:18] Production.INFO: ProcessCDR(1,14677586,1,1,2) [2025-03-14 08:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677586,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677586,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677586', 'tblTempUsageDetail_20' ) start [2025-03-14 08:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677586', 'tblTempUsageDetail_20' ) end [2025-03-14 08:22:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 08:22:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 08:22:23] Production.INFO: ==20928== Releasing lock... [2025-03-14 08:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 08:22:23] Production.INFO: 31.25 MB #Memory Used# [2025-03-14 08:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 05:23:05 [end_date_ymd] => 2025-03-14 08:23:05 [RateCDR] => 1 ) [2025-03-14 08:23: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-03-14 05:23:05' and `end` < '2025-03-14 08:23: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-03-14 08:23:17] Production.INFO: count ==363 [2025-03-14 08:23:17] Production.ERROR: pbx CDR StartTime 2025-03-14 05:23:05 - End Time 2025-03-14 08:23:05 [2025-03-14 08:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677591', 'tblTempUsageDetail_20' ) start [2025-03-14 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677591', 'tblTempUsageDetail_20' ) end [2025-03-14 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677591', 'tblTempVendorCDR_20' ) start [2025-03-14 08:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677591', 'tblTempVendorCDR_20' ) end [2025-03-14 08:23:17] Production.INFO: ProcessCDR(1,14677591,1,1,2) [2025-03-14 08:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:23:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677591,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:23:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677591,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677591', 'tblTempUsageDetail_20' ) start [2025-03-14 08:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677591', 'tblTempUsageDetail_20' ) end [2025-03-14 08:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 08:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 08:23:21] Production.INFO: ==21001== Releasing lock... [2025-03-14 08:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 08:23:21] Production.INFO: 31.25 MB #Memory Used# [2025-03-14 08:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 05:24:06 [end_date_ymd] => 2025-03-14 08:24:06 [RateCDR] => 1 ) [2025-03-14 08:24: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-03-14 05:24:06' and `end` < '2025-03-14 08:24: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-03-14 08:24:18] Production.INFO: count ==373 [2025-03-14 08:24:18] Production.ERROR: pbx CDR StartTime 2025-03-14 05:24:06 - End Time 2025-03-14 08:24:06 [2025-03-14 08:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677596', 'tblTempUsageDetail_20' ) start [2025-03-14 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677596', 'tblTempUsageDetail_20' ) end [2025-03-14 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677596', 'tblTempVendorCDR_20' ) start [2025-03-14 08:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677596', 'tblTempVendorCDR_20' ) end [2025-03-14 08:24:18] Production.INFO: ProcessCDR(1,14677596,1,1,2) [2025-03-14 08:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677596', 'tblTempUsageDetail_20' ) start [2025-03-14 08:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677596', 'tblTempUsageDetail_20' ) end [2025-03-14 08:24:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 08:24:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 08:24:22] Production.INFO: ==21077== Releasing lock... [2025-03-14 08:24:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 08:24:22] Production.INFO: 31 MB #Memory Used# [2025-03-14 08:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 05:25:05 [end_date_ymd] => 2025-03-14 08:25:05 [RateCDR] => 1 ) [2025-03-14 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-03-14 05:25:05' and `end` < '2025-03-14 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-03-14 08:25:17] Production.INFO: count ==375 [2025-03-14 08:25:17] Production.ERROR: pbx CDR StartTime 2025-03-14 05:25:05 - End Time 2025-03-14 08:25:05 [2025-03-14 08:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677601', 'tblTempUsageDetail_20' ) start [2025-03-14 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677601', 'tblTempUsageDetail_20' ) end [2025-03-14 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677601', 'tblTempVendorCDR_20' ) start [2025-03-14 08:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677601', 'tblTempVendorCDR_20' ) end [2025-03-14 08:25:17] Production.INFO: ProcessCDR(1,14677601,1,1,2) [2025-03-14 08:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677601', 'tblTempUsageDetail_20' ) start [2025-03-14 08:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677601', 'tblTempUsageDetail_20' ) end [2025-03-14 08:25:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 08:25:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 08:25:22] Production.INFO: ==21152== Releasing lock... [2025-03-14 08:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 08:25:22] Production.INFO: 31.25 MB #Memory Used# [2025-03-14 08:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 05:26:06 [end_date_ymd] => 2025-03-14 08:26:06 [RateCDR] => 1 ) [2025-03-14 08:26: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-03-14 05:26:06' and `end` < '2025-03-14 08:26: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-03-14 08:26:18] Production.INFO: count ==389 [2025-03-14 08:26:18] Production.ERROR: pbx CDR StartTime 2025-03-14 05:26:06 - End Time 2025-03-14 08:26:06 [2025-03-14 08:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677606', 'tblTempUsageDetail_20' ) start [2025-03-14 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677606', 'tblTempUsageDetail_20' ) end [2025-03-14 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677606', 'tblTempVendorCDR_20' ) start [2025-03-14 08:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677606', 'tblTempVendorCDR_20' ) end [2025-03-14 08:26:18] Production.INFO: ProcessCDR(1,14677606,1,1,2) [2025-03-14 08:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677606', 'tblTempUsageDetail_20' ) start [2025-03-14 08:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677606', 'tblTempUsageDetail_20' ) end [2025-03-14 08:26:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 08:26:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 08:26:23] Production.INFO: ==21225== Releasing lock... [2025-03-14 08:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 08:26:23] Production.INFO: 31.75 MB #Memory Used# [2025-03-14 08:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 05:27:06 [end_date_ymd] => 2025-03-14 08:27:06 [RateCDR] => 1 ) [2025-03-14 08:27: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-03-14 05:27:06' and `end` < '2025-03-14 08:27: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-03-14 08:27:18] Production.INFO: count ==389 [2025-03-14 08:27:18] Production.ERROR: pbx CDR StartTime 2025-03-14 05:27:06 - End Time 2025-03-14 08:27:06 [2025-03-14 08:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677611', 'tblTempUsageDetail_20' ) start [2025-03-14 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677611', 'tblTempUsageDetail_20' ) end [2025-03-14 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677611', 'tblTempVendorCDR_20' ) start [2025-03-14 08:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677611', 'tblTempVendorCDR_20' ) end [2025-03-14 08:27:18] Production.INFO: ProcessCDR(1,14677611,1,1,2) [2025-03-14 08:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677611', 'tblTempUsageDetail_20' ) start [2025-03-14 08:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677611', 'tblTempUsageDetail_20' ) end [2025-03-14 08:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 08:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 08:27:21] Production.INFO: ==21298== Releasing lock... [2025-03-14 08:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 08:27:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-14 08:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 05:28:05 [end_date_ymd] => 2025-03-14 08:28:05 [RateCDR] => 1 ) [2025-03-14 08:28: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-03-14 05:28:05' and `end` < '2025-03-14 08:28: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-03-14 08:28:17] Production.INFO: count ==397 [2025-03-14 08:28:17] Production.ERROR: pbx CDR StartTime 2025-03-14 05:28:05 - End Time 2025-03-14 08:28:05 [2025-03-14 08:28:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677616', 'tblTempUsageDetail_20' ) start [2025-03-14 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677616', 'tblTempUsageDetail_20' ) end [2025-03-14 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677616', 'tblTempVendorCDR_20' ) start [2025-03-14 08:28:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677616', 'tblTempVendorCDR_20' ) end [2025-03-14 08:28:17] Production.INFO: ProcessCDR(1,14677616,1,1,2) [2025-03-14 08:28:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:28:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:28:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:28:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677616', 'tblTempUsageDetail_20' ) start [2025-03-14 08:28:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677616', 'tblTempUsageDetail_20' ) end [2025-03-14 08:28:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 08:28:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 08:28:23] Production.INFO: ==21372== Releasing lock... [2025-03-14 08:28:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 08:28:23] Production.INFO: 31.75 MB #Memory Used# [2025-03-14 08:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 05:29:05 [end_date_ymd] => 2025-03-14 08:29:05 [RateCDR] => 1 ) [2025-03-14 08:29: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-03-14 05:29:05' and `end` < '2025-03-14 08:29: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-03-14 08:29:17] Production.INFO: count ==397 [2025-03-14 08:29:17] Production.ERROR: pbx CDR StartTime 2025-03-14 05:29:05 - End Time 2025-03-14 08:29:05 [2025-03-14 08:29:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677621', 'tblTempUsageDetail_20' ) start [2025-03-14 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677621', 'tblTempUsageDetail_20' ) end [2025-03-14 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677621', 'tblTempVendorCDR_20' ) start [2025-03-14 08:29:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677621', 'tblTempVendorCDR_20' ) end [2025-03-14 08:29:17] Production.INFO: ProcessCDR(1,14677621,1,1,2) [2025-03-14 08:29:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:29:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:29:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677621', 'tblTempUsageDetail_20' ) start [2025-03-14 08:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677621', 'tblTempUsageDetail_20' ) end [2025-03-14 08:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 08:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 08:29:21] Production.INFO: ==21445== Releasing lock... [2025-03-14 08:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 08:29:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-14 08:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 05:30:06 [end_date_ymd] => 2025-03-14 08:30:06 [RateCDR] => 1 ) [2025-03-14 08:30: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-03-14 05:30:06' and `end` < '2025-03-14 08:30: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-03-14 08:30:18] Production.INFO: count ==407 [2025-03-14 08:30:18] Production.ERROR: pbx CDR StartTime 2025-03-14 05:30:06 - End Time 2025-03-14 08:30:06 [2025-03-14 08:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677627', 'tblTempUsageDetail_20' ) start [2025-03-14 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677627', 'tblTempUsageDetail_20' ) end [2025-03-14 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677627', 'tblTempVendorCDR_20' ) start [2025-03-14 08:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677627', 'tblTempVendorCDR_20' ) end [2025-03-14 08:30:18] Production.INFO: ProcessCDR(1,14677627,1,1,2) [2025-03-14 08:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:30:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677627,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:30:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:30:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677627,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677627', 'tblTempUsageDetail_20' ) start [2025-03-14 08:30:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677627', 'tblTempUsageDetail_20' ) end [2025-03-14 08:30:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 08:30:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 08:30:21] Production.INFO: ==21519== Releasing lock... [2025-03-14 08:30:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 08:30:21] Production.INFO: 31.75 MB #Memory Used# [2025-03-14 08:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 05:31:05 [end_date_ymd] => 2025-03-14 08:31:05 [RateCDR] => 1 ) [2025-03-14 08:31: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-03-14 05:31:05' and `end` < '2025-03-14 08:31: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-03-14 08:31:17] Production.INFO: count ==429 [2025-03-14 08:31:18] Production.ERROR: pbx CDR StartTime 2025-03-14 05:31:05 - End Time 2025-03-14 08:31:05 [2025-03-14 08:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677632', 'tblTempUsageDetail_20' ) start [2025-03-14 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677632', 'tblTempUsageDetail_20' ) end [2025-03-14 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677632', 'tblTempVendorCDR_20' ) start [2025-03-14 08:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677632', 'tblTempVendorCDR_20' ) end [2025-03-14 08:31:18] Production.INFO: ProcessCDR(1,14677632,1,1,2) [2025-03-14 08:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677632,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:31:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677632,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677632', 'tblTempUsageDetail_20' ) start [2025-03-14 08:31:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677632', 'tblTempUsageDetail_20' ) end [2025-03-14 08:31:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 08:31:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 08:31:23] Production.INFO: ==21594== Releasing lock... [2025-03-14 08:31:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 08:31:23] Production.INFO: 31.75 MB #Memory Used# [2025-03-14 08:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 05:32:06 [end_date_ymd] => 2025-03-14 08:32:06 [RateCDR] => 1 ) [2025-03-14 08:32: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-03-14 05:32:06' and `end` < '2025-03-14 08:32: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-03-14 08:32:18] Production.INFO: count ==436 [2025-03-14 08:32:18] Production.ERROR: pbx CDR StartTime 2025-03-14 05:32:06 - End Time 2025-03-14 08:32:06 [2025-03-14 08:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677637', 'tblTempUsageDetail_20' ) start [2025-03-14 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677637', 'tblTempUsageDetail_20' ) end [2025-03-14 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677637', 'tblTempVendorCDR_20' ) start [2025-03-14 08:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677637', 'tblTempVendorCDR_20' ) end [2025-03-14 08:32:18] Production.INFO: ProcessCDR(1,14677637,1,1,2) [2025-03-14 08:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677637,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677637,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677637', 'tblTempUsageDetail_20' ) start [2025-03-14 08:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677637', 'tblTempUsageDetail_20' ) end [2025-03-14 08:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 08:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 08:32:21] Production.INFO: ==21675== Releasing lock... [2025-03-14 08:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 08:32:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-14 08:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 05:33:05 [end_date_ymd] => 2025-03-14 08:33:05 [RateCDR] => 1 ) [2025-03-14 08:33: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-03-14 05:33:05' and `end` < '2025-03-14 08:33: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-03-14 08:33:17] Production.INFO: count ==439 [2025-03-14 08:33:17] Production.ERROR: pbx CDR StartTime 2025-03-14 05:33:05 - End Time 2025-03-14 08:33:05 [2025-03-14 08:33:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677642', 'tblTempUsageDetail_20' ) start [2025-03-14 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677642', 'tblTempUsageDetail_20' ) end [2025-03-14 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677642', 'tblTempVendorCDR_20' ) start [2025-03-14 08:33:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677642', 'tblTempVendorCDR_20' ) end [2025-03-14 08:33:17] Production.INFO: ProcessCDR(1,14677642,1,1,2) [2025-03-14 08:33:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:33:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677642,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:33:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677642,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677642', 'tblTempUsageDetail_20' ) start [2025-03-14 08:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677642', 'tblTempUsageDetail_20' ) end [2025-03-14 08:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 08:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 08:33:21] Production.INFO: ==21750== Releasing lock... [2025-03-14 08:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 08:33:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-14 08:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 05:34:05 [end_date_ymd] => 2025-03-14 08:34:05 [RateCDR] => 1 ) [2025-03-14 08:34: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-03-14 05:34:05' and `end` < '2025-03-14 08:34: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-03-14 08:34:17] Production.INFO: count ==439 [2025-03-14 08:34:18] Production.ERROR: pbx CDR StartTime 2025-03-14 05:34:05 - End Time 2025-03-14 08:34:05 [2025-03-14 08:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677647', 'tblTempUsageDetail_20' ) start [2025-03-14 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677647', 'tblTempUsageDetail_20' ) end [2025-03-14 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677647', 'tblTempVendorCDR_20' ) start [2025-03-14 08:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677647', 'tblTempVendorCDR_20' ) end [2025-03-14 08:34:18] Production.INFO: ProcessCDR(1,14677647,1,1,2) [2025-03-14 08:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677647', 'tblTempUsageDetail_20' ) start [2025-03-14 08:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677647', 'tblTempUsageDetail_20' ) end [2025-03-14 08:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 08:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 08:34:21] Production.INFO: ==21826== Releasing lock... [2025-03-14 08:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 08:34:21] Production.INFO: 32.5 MB #Memory Used# [2025-03-14 08:35:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 05:35:04 [end_date_ymd] => 2025-03-14 08:35:04 [RateCDR] => 1 ) [2025-03-14 08:35: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-03-14 05:35:04' and `end` < '2025-03-14 08:35: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-03-14 08:35:16] Production.INFO: count ==442 [2025-03-14 08:35:17] Production.ERROR: pbx CDR StartTime 2025-03-14 05:35:04 - End Time 2025-03-14 08:35:04 [2025-03-14 08:35:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677652', 'tblTempUsageDetail_20' ) start [2025-03-14 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677652', 'tblTempUsageDetail_20' ) end [2025-03-14 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677652', 'tblTempVendorCDR_20' ) start [2025-03-14 08:35:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677652', 'tblTempVendorCDR_20' ) end [2025-03-14 08:35:17] Production.INFO: ProcessCDR(1,14677652,1,1,2) [2025-03-14 08:35:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677652', 'tblTempUsageDetail_20' ) start [2025-03-14 08:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677652', 'tblTempUsageDetail_20' ) end [2025-03-14 08:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 08:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 08:35:21] Production.INFO: ==21896== Releasing lock... [2025-03-14 08:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 08:35:21] Production.INFO: 32.25 MB #Memory Used# [2025-03-14 08:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 05:36:05 [end_date_ymd] => 2025-03-14 08:36:05 [RateCDR] => 1 ) [2025-03-14 08:36: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-03-14 05:36:05' and `end` < '2025-03-14 08:36: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-03-14 08:36:18] Production.INFO: count ==457 [2025-03-14 08:36:18] Production.ERROR: pbx CDR StartTime 2025-03-14 05:36:05 - End Time 2025-03-14 08:36:05 [2025-03-14 08:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677657', 'tblTempUsageDetail_20' ) start [2025-03-14 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677657', 'tblTempUsageDetail_20' ) end [2025-03-14 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677657', 'tblTempVendorCDR_20' ) start [2025-03-14 08:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677657', 'tblTempVendorCDR_20' ) end [2025-03-14 08:36:18] Production.INFO: ProcessCDR(1,14677657,1,1,2) [2025-03-14 08:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677657', 'tblTempUsageDetail_20' ) start [2025-03-14 08:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677657', 'tblTempUsageDetail_20' ) end [2025-03-14 08:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 08:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 08:36:22] Production.INFO: ==21969== Releasing lock... [2025-03-14 08:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 08:36:22] Production.INFO: 32.25 MB #Memory Used# [2025-03-14 08:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 05:37:05 [end_date_ymd] => 2025-03-14 08:37:05 [RateCDR] => 1 ) [2025-03-14 08:37: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-03-14 05:37:05' and `end` < '2025-03-14 08:37: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-03-14 08:37:17] Production.INFO: count ==470 [2025-03-14 08:37:17] Production.ERROR: pbx CDR StartTime 2025-03-14 05:37:05 - End Time 2025-03-14 08:37:05 [2025-03-14 08:37:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677662', 'tblTempUsageDetail_20' ) start [2025-03-14 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677662', 'tblTempUsageDetail_20' ) end [2025-03-14 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677662', 'tblTempVendorCDR_20' ) start [2025-03-14 08:37:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677662', 'tblTempVendorCDR_20' ) end [2025-03-14 08:37:17] Production.INFO: ProcessCDR(1,14677662,1,1,2) [2025-03-14 08:37:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677662', 'tblTempUsageDetail_20' ) start [2025-03-14 08:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677662', 'tblTempUsageDetail_20' ) end [2025-03-14 08:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 08:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 08:37:22] Production.INFO: ==22084== Releasing lock... [2025-03-14 08:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 08:37:22] Production.INFO: 31.75 MB #Memory Used# [2025-03-14 08:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 05:38:05 [end_date_ymd] => 2025-03-14 08:38:05 [RateCDR] => 1 ) [2025-03-14 08:38: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-03-14 05:38:05' and `end` < '2025-03-14 08:38: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-03-14 08:38:17] Production.INFO: count ==483 [2025-03-14 08:38:17] Production.ERROR: pbx CDR StartTime 2025-03-14 05:38:05 - End Time 2025-03-14 08:38:05 [2025-03-14 08:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 08:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677667', 'tblTempUsageDetail_20' ) start [2025-03-14 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677667', 'tblTempUsageDetail_20' ) end [2025-03-14 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677667', 'tblTempVendorCDR_20' ) start [2025-03-14 08:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677667', 'tblTempVendorCDR_20' ) end [2025-03-14 08:38:18] Production.INFO: ProcessCDR(1,14677667,1,1,2) [2025-03-14 08:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677667', 'tblTempUsageDetail_20' ) start [2025-03-14 08:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677667', 'tblTempUsageDetail_20' ) end [2025-03-14 08:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 08:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 08:38:22] Production.INFO: ==22167== Releasing lock... [2025-03-14 08:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 08:38:22] Production.INFO: 32.5 MB #Memory Used# [2025-03-14 08:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 05:39:05 [end_date_ymd] => 2025-03-14 08:39:05 [RateCDR] => 1 ) [2025-03-14 08:39: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-03-14 05:39:05' and `end` < '2025-03-14 08:39: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-03-14 08:39:17] Production.INFO: count ==487 [2025-03-14 08:39:17] Production.ERROR: pbx CDR StartTime 2025-03-14 05:39:05 - End Time 2025-03-14 08:39:05 [2025-03-14 08:39:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677672', 'tblTempUsageDetail_20' ) start [2025-03-14 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677672', 'tblTempUsageDetail_20' ) end [2025-03-14 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677672', 'tblTempVendorCDR_20' ) start [2025-03-14 08:39:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677672', 'tblTempVendorCDR_20' ) end [2025-03-14 08:39:17] Production.INFO: ProcessCDR(1,14677672,1,1,2) [2025-03-14 08:39:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677672', 'tblTempUsageDetail_20' ) start [2025-03-14 08:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677672', 'tblTempUsageDetail_20' ) end [2025-03-14 08:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 08:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 08:39:22] Production.INFO: ==22241== Releasing lock... [2025-03-14 08:39:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 08:39:22] Production.INFO: 32 MB #Memory Used# [2025-03-14 08:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 05:40:06 [end_date_ymd] => 2025-03-14 08:40:06 [RateCDR] => 1 ) [2025-03-14 08:40: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-03-14 05:40:06' and `end` < '2025-03-14 08:40: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-03-14 08:40:18] Production.INFO: count ==504 [2025-03-14 08:40:18] Production.ERROR: pbx CDR StartTime 2025-03-14 05:40:06 - End Time 2025-03-14 08:40:06 [2025-03-14 08:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677678', 'tblTempUsageDetail_20' ) start [2025-03-14 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677678', 'tblTempUsageDetail_20' ) end [2025-03-14 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677678', 'tblTempVendorCDR_20' ) start [2025-03-14 08:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677678', 'tblTempVendorCDR_20' ) end [2025-03-14 08:40:18] Production.INFO: ProcessCDR(1,14677678,1,1,2) [2025-03-14 08:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677678,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677678,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677678', 'tblTempUsageDetail_20' ) start [2025-03-14 08:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677678', 'tblTempUsageDetail_20' ) end [2025-03-14 08:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 08:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 08:40:23] Production.INFO: ==22317== Releasing lock... [2025-03-14 08:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 08:40:23] Production.INFO: 32.5 MB #Memory Used# [2025-03-14 08:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 05:41:05 [end_date_ymd] => 2025-03-14 08:41:05 [RateCDR] => 1 ) [2025-03-14 08:41: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-03-14 05:41:05' and `end` < '2025-03-14 08:41: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-03-14 08:41:17] Production.INFO: count ==526 [2025-03-14 08:41:17] Production.ERROR: pbx CDR StartTime 2025-03-14 05:41:05 - End Time 2025-03-14 08:41:05 [2025-03-14 08:41:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677683', 'tblTempUsageDetail_20' ) start [2025-03-14 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677683', 'tblTempUsageDetail_20' ) end [2025-03-14 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677683', 'tblTempVendorCDR_20' ) start [2025-03-14 08:41:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677683', 'tblTempVendorCDR_20' ) end [2025-03-14 08:41:17] Production.INFO: ProcessCDR(1,14677683,1,1,2) [2025-03-14 08:41:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677683,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:41:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677683,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677683', 'tblTempUsageDetail_20' ) start [2025-03-14 08:41:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677683', 'tblTempUsageDetail_20' ) end [2025-03-14 08:41:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 08:41:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 08:41:22] Production.INFO: ==22394== Releasing lock... [2025-03-14 08:41:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 08:41:22] Production.INFO: 32 MB #Memory Used# [2025-03-14 08:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 05:42:05 [end_date_ymd] => 2025-03-14 08:42:05 [RateCDR] => 1 ) [2025-03-14 08:42: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-03-14 05:42:05' and `end` < '2025-03-14 08:42: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-03-14 08:42:18] Production.INFO: count ==534 [2025-03-14 08:42:18] Production.ERROR: pbx CDR StartTime 2025-03-14 05:42:05 - End Time 2025-03-14 08:42:05 [2025-03-14 08:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677688', 'tblTempUsageDetail_20' ) start [2025-03-14 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677688', 'tblTempUsageDetail_20' ) end [2025-03-14 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677688', 'tblTempVendorCDR_20' ) start [2025-03-14 08:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677688', 'tblTempVendorCDR_20' ) end [2025-03-14 08:42:18] Production.INFO: ProcessCDR(1,14677688,1,1,2) [2025-03-14 08:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677688,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:42:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677688,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:42:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677688', 'tblTempUsageDetail_20' ) start [2025-03-14 08:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677688', 'tblTempUsageDetail_20' ) end [2025-03-14 08:42:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 08:42:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 08:42:23] Production.INFO: ==22466== Releasing lock... [2025-03-14 08:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 08:42:23] Production.INFO: 32.75 MB #Memory Used# [2025-03-14 08:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 05:43:05 [end_date_ymd] => 2025-03-14 08:43:05 [RateCDR] => 1 ) [2025-03-14 08:43: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-03-14 05:43:05' and `end` < '2025-03-14 08:43: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-03-14 08:43:17] Production.INFO: count ==553 [2025-03-14 08:43:17] Production.ERROR: pbx CDR StartTime 2025-03-14 05:43:05 - End Time 2025-03-14 08:43:05 [2025-03-14 08:43:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677693', 'tblTempUsageDetail_20' ) start [2025-03-14 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677693', 'tblTempUsageDetail_20' ) end [2025-03-14 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677693', 'tblTempVendorCDR_20' ) start [2025-03-14 08:43:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677693', 'tblTempVendorCDR_20' ) end [2025-03-14 08:43:17] Production.INFO: ProcessCDR(1,14677693,1,1,2) [2025-03-14 08:43:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:43:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677693,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:43:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:43:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677693,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677693', 'tblTempUsageDetail_20' ) start [2025-03-14 08:43:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677693', 'tblTempUsageDetail_20' ) end [2025-03-14 08:43:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 08:43:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 08:43:21] Production.INFO: ==22545== Releasing lock... [2025-03-14 08:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 08:43:21] Production.INFO: 32.75 MB #Memory Used# [2025-03-14 08:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 05:44:05 [end_date_ymd] => 2025-03-14 08:44:05 [RateCDR] => 1 ) [2025-03-14 08:44: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-03-14 05:44:05' and `end` < '2025-03-14 08:44: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-03-14 08:44:18] Production.INFO: count ==572 [2025-03-14 08:44:18] Production.ERROR: pbx CDR StartTime 2025-03-14 05:44:05 - End Time 2025-03-14 08:44:05 [2025-03-14 08:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677698', 'tblTempUsageDetail_20' ) start [2025-03-14 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677698', 'tblTempUsageDetail_20' ) end [2025-03-14 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677698', 'tblTempVendorCDR_20' ) start [2025-03-14 08:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677698', 'tblTempVendorCDR_20' ) end [2025-03-14 08:44:18] Production.INFO: ProcessCDR(1,14677698,1,1,2) [2025-03-14 08:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677698,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677698,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677698', 'tblTempUsageDetail_20' ) start [2025-03-14 08:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677698', 'tblTempUsageDetail_20' ) end [2025-03-14 08:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 08:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 08:44:21] Production.INFO: ==22621== Releasing lock... [2025-03-14 08:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 08:44:21] Production.INFO: 33 MB #Memory Used# [2025-03-14 08:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 05:45:06 [end_date_ymd] => 2025-03-14 08:45:06 [RateCDR] => 1 ) [2025-03-14 08:45: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-03-14 05:45:06' and `end` < '2025-03-14 08:45: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-03-14 08:45:18] Production.INFO: count ==580 [2025-03-14 08:45:18] Production.ERROR: pbx CDR StartTime 2025-03-14 05:45:06 - End Time 2025-03-14 08:45:06 [2025-03-14 08:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677703', 'tblTempUsageDetail_20' ) start [2025-03-14 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677703', 'tblTempUsageDetail_20' ) end [2025-03-14 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677703', 'tblTempVendorCDR_20' ) start [2025-03-14 08:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677703', 'tblTempVendorCDR_20' ) end [2025-03-14 08:45:18] Production.INFO: ProcessCDR(1,14677703,1,1,2) [2025-03-14 08:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677703', 'tblTempUsageDetail_20' ) start [2025-03-14 08:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677703', 'tblTempUsageDetail_20' ) end [2025-03-14 08:45:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 08:45:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 08:45:23] Production.INFO: ==22698== Releasing lock... [2025-03-14 08:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 08:45:23] Production.INFO: 33 MB #Memory Used# [2025-03-14 08:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 05:46:05 [end_date_ymd] => 2025-03-14 08:46:05 [RateCDR] => 1 ) [2025-03-14 08:46: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-03-14 05:46:05' and `end` < '2025-03-14 08:46: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-03-14 08:46:17] Production.INFO: count ==606 [2025-03-14 08:46:18] Production.ERROR: pbx CDR StartTime 2025-03-14 05:46:05 - End Time 2025-03-14 08:46:05 [2025-03-14 08:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677708', 'tblTempUsageDetail_20' ) start [2025-03-14 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677708', 'tblTempUsageDetail_20' ) end [2025-03-14 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677708', 'tblTempVendorCDR_20' ) start [2025-03-14 08:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677708', 'tblTempVendorCDR_20' ) end [2025-03-14 08:46:18] Production.INFO: ProcessCDR(1,14677708,1,1,2) [2025-03-14 08:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:46:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:46:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677708', 'tblTempUsageDetail_20' ) start [2025-03-14 08:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677708', 'tblTempUsageDetail_20' ) end [2025-03-14 08:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 08:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 08:46:21] Production.INFO: ==22777== Releasing lock... [2025-03-14 08:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 08:46:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-14 08:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 05:47:05 [end_date_ymd] => 2025-03-14 08:47:05 [RateCDR] => 1 ) [2025-03-14 08:47: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-03-14 05:47:05' and `end` < '2025-03-14 08:47: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-03-14 08:47:17] Production.INFO: count ==610 [2025-03-14 08:47:17] Production.ERROR: pbx CDR StartTime 2025-03-14 05:47:05 - End Time 2025-03-14 08:47:05 [2025-03-14 08:47:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677713', 'tblTempUsageDetail_20' ) start [2025-03-14 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677713', 'tblTempUsageDetail_20' ) end [2025-03-14 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677713', 'tblTempVendorCDR_20' ) start [2025-03-14 08:47:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677713', 'tblTempVendorCDR_20' ) end [2025-03-14 08:47:17] Production.INFO: ProcessCDR(1,14677713,1,1,2) [2025-03-14 08:47:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677713', 'tblTempUsageDetail_20' ) start [2025-03-14 08:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677713', 'tblTempUsageDetail_20' ) end [2025-03-14 08:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 08:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 08:47:22] Production.INFO: ==22854== Releasing lock... [2025-03-14 08:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 08:47:22] Production.INFO: 33.25 MB #Memory Used# [2025-03-14 08:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 05:48:05 [end_date_ymd] => 2025-03-14 08:48:05 [RateCDR] => 1 ) [2025-03-14 08:48: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-03-14 05:48:05' and `end` < '2025-03-14 08:48: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-03-14 08:48:17] Production.INFO: count ==611 [2025-03-14 08:48:18] Production.ERROR: pbx CDR StartTime 2025-03-14 05:48:05 - End Time 2025-03-14 08:48:05 [2025-03-14 08:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677718', 'tblTempUsageDetail_20' ) start [2025-03-14 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677718', 'tblTempUsageDetail_20' ) end [2025-03-14 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677718', 'tblTempVendorCDR_20' ) start [2025-03-14 08:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677718', 'tblTempVendorCDR_20' ) end [2025-03-14 08:48:18] Production.INFO: ProcessCDR(1,14677718,1,1,2) [2025-03-14 08:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677718', 'tblTempUsageDetail_20' ) start [2025-03-14 08:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677718', 'tblTempUsageDetail_20' ) end [2025-03-14 08:48:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 08:48:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 08:48:23] Production.INFO: ==22928== Releasing lock... [2025-03-14 08:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 08:48:23] Production.INFO: 33.25 MB #Memory Used# [2025-03-14 08:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 05:49:06 [end_date_ymd] => 2025-03-14 08:49:06 [RateCDR] => 1 ) [2025-03-14 08:49: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-03-14 05:49:06' and `end` < '2025-03-14 08:49: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-03-14 08:49:18] Production.INFO: count ==614 [2025-03-14 08:49:18] Production.ERROR: pbx CDR StartTime 2025-03-14 05:49:06 - End Time 2025-03-14 08:49:06 [2025-03-14 08:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677723', 'tblTempUsageDetail_20' ) start [2025-03-14 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677723', 'tblTempUsageDetail_20' ) end [2025-03-14 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677723', 'tblTempVendorCDR_20' ) start [2025-03-14 08:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677723', 'tblTempVendorCDR_20' ) end [2025-03-14 08:49:18] Production.INFO: ProcessCDR(1,14677723,1,1,2) [2025-03-14 08:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677723', 'tblTempUsageDetail_20' ) start [2025-03-14 08:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677723', 'tblTempUsageDetail_20' ) end [2025-03-14 08:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 08:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 08:49:21] Production.INFO: ==23010== Releasing lock... [2025-03-14 08:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 08:49:21] Production.INFO: 33 MB #Memory Used# [2025-03-14 08:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 05:50:06 [end_date_ymd] => 2025-03-14 08:50:06 [RateCDR] => 1 ) [2025-03-14 08:50: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-03-14 05:50:06' and `end` < '2025-03-14 08:50: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-03-14 08:50:18] Production.INFO: count ==628 [2025-03-14 08:50:19] Production.ERROR: pbx CDR StartTime 2025-03-14 05:50:06 - End Time 2025-03-14 08:50:06 [2025-03-14 08:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677729', 'tblTempUsageDetail_20' ) start [2025-03-14 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677729', 'tblTempUsageDetail_20' ) end [2025-03-14 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677729', 'tblTempVendorCDR_20' ) start [2025-03-14 08:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677729', 'tblTempVendorCDR_20' ) end [2025-03-14 08:50:19] Production.INFO: ProcessCDR(1,14677729,1,1,2) [2025-03-14 08:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677729,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677729,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677729', 'tblTempUsageDetail_20' ) start [2025-03-14 08:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677729', 'tblTempUsageDetail_20' ) end [2025-03-14 08:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 08:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 08:50:22] Production.INFO: ==23088== Releasing lock... [2025-03-14 08:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 08:50:22] Production.INFO: 33.5 MB #Memory Used# [2025-03-14 08:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 05:51:05 [end_date_ymd] => 2025-03-14 08:51:05 [RateCDR] => 1 ) [2025-03-14 08:51: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-03-14 05:51:05' and `end` < '2025-03-14 08:51: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-03-14 08:51:18] Production.INFO: count ==663 [2025-03-14 08:51:18] Production.ERROR: pbx CDR StartTime 2025-03-14 05:51:05 - End Time 2025-03-14 08:51:05 [2025-03-14 08:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677734', 'tblTempUsageDetail_20' ) start [2025-03-14 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677734', 'tblTempUsageDetail_20' ) end [2025-03-14 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677734', 'tblTempVendorCDR_20' ) start [2025-03-14 08:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677734', 'tblTempVendorCDR_20' ) end [2025-03-14 08:51:18] Production.INFO: ProcessCDR(1,14677734,1,1,2) [2025-03-14 08:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677734,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677734,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677734', 'tblTempUsageDetail_20' ) start [2025-03-14 08:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677734', 'tblTempUsageDetail_20' ) end [2025-03-14 08:51:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 08:51:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 08:51:23] Production.INFO: ==23171== Releasing lock... [2025-03-14 08:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 08:51:23] Production.INFO: 33.5 MB #Memory Used# [2025-03-14 08:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 05:52:05 [end_date_ymd] => 2025-03-14 08:52:05 [RateCDR] => 1 ) [2025-03-14 08:52: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-03-14 05:52:05' and `end` < '2025-03-14 08:52: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-03-14 08:52:17] Production.INFO: count ==671 [2025-03-14 08:52:17] Production.ERROR: pbx CDR StartTime 2025-03-14 05:52:05 - End Time 2025-03-14 08:52:05 [2025-03-14 08:52:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 08:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677739', 'tblTempUsageDetail_20' ) start [2025-03-14 08:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677739', 'tblTempUsageDetail_20' ) end [2025-03-14 08:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677739', 'tblTempVendorCDR_20' ) start [2025-03-14 08:52:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677739', 'tblTempVendorCDR_20' ) end [2025-03-14 08:52:17] Production.INFO: ProcessCDR(1,14677739,1,1,2) [2025-03-14 08:52:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:52:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677739,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:52:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677739,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677739', 'tblTempUsageDetail_20' ) start [2025-03-14 08:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677739', 'tblTempUsageDetail_20' ) end [2025-03-14 08:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 08:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 08:52:21] Production.INFO: ==23245== Releasing lock... [2025-03-14 08:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 08:52:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-14 08:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 05:53:05 [end_date_ymd] => 2025-03-14 08:53:05 [RateCDR] => 1 ) [2025-03-14 08:53: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-03-14 05:53:05' and `end` < '2025-03-14 08:53: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-03-14 08:53:18] Production.INFO: count ==683 [2025-03-14 08:53:18] Production.ERROR: pbx CDR StartTime 2025-03-14 05:53:05 - End Time 2025-03-14 08:53:05 [2025-03-14 08:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677744', 'tblTempUsageDetail_20' ) start [2025-03-14 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677744', 'tblTempUsageDetail_20' ) end [2025-03-14 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677744', 'tblTempVendorCDR_20' ) start [2025-03-14 08:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677744', 'tblTempVendorCDR_20' ) end [2025-03-14 08:53:18] Production.INFO: ProcessCDR(1,14677744,1,1,2) [2025-03-14 08:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677744,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677744,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677744', 'tblTempUsageDetail_20' ) start [2025-03-14 08:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677744', 'tblTempUsageDetail_20' ) end [2025-03-14 08:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 08:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 08:53:21] Production.INFO: ==23363== Releasing lock... [2025-03-14 08:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 08:53:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-14 08:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 05:54:05 [end_date_ymd] => 2025-03-14 08:54:05 [RateCDR] => 1 ) [2025-03-14 08:54: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-03-14 05:54:05' and `end` < '2025-03-14 08:54: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-03-14 08:54:18] Production.INFO: count ==689 [2025-03-14 08:54:18] Production.ERROR: pbx CDR StartTime 2025-03-14 05:54:05 - End Time 2025-03-14 08:54:05 [2025-03-14 08:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677749', 'tblTempUsageDetail_20' ) start [2025-03-14 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677749', 'tblTempUsageDetail_20' ) end [2025-03-14 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677749', 'tblTempVendorCDR_20' ) start [2025-03-14 08:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677749', 'tblTempVendorCDR_20' ) end [2025-03-14 08:54:18] Production.INFO: ProcessCDR(1,14677749,1,1,2) [2025-03-14 08:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677749,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677749,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677749', 'tblTempUsageDetail_20' ) start [2025-03-14 08:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677749', 'tblTempUsageDetail_20' ) end [2025-03-14 08:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 08:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 08:54:21] Production.INFO: ==23432== Releasing lock... [2025-03-14 08:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 08:54:21] Production.INFO: 33.5 MB #Memory Used# [2025-03-14 08:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 05:55:06 [end_date_ymd] => 2025-03-14 08:55:06 [RateCDR] => 1 ) [2025-03-14 08:55: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-03-14 05:55:06' and `end` < '2025-03-14 08:55: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-03-14 08:55:18] Production.INFO: count ==710 [2025-03-14 08:55:19] Production.ERROR: pbx CDR StartTime 2025-03-14 05:55:06 - End Time 2025-03-14 08:55:06 [2025-03-14 08:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 08:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677754', 'tblTempUsageDetail_20' ) start [2025-03-14 08:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677754', 'tblTempUsageDetail_20' ) end [2025-03-14 08:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677754', 'tblTempVendorCDR_20' ) start [2025-03-14 08:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677754', 'tblTempVendorCDR_20' ) end [2025-03-14 08:55:19] Production.INFO: ProcessCDR(1,14677754,1,1,2) [2025-03-14 08:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:55:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:55:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677754', 'tblTempUsageDetail_20' ) start [2025-03-14 08:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677754', 'tblTempUsageDetail_20' ) end [2025-03-14 08:55:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 08:55:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 08:55:24] Production.INFO: ==23510== Releasing lock... [2025-03-14 08:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 08:55:24] Production.INFO: 33.5 MB #Memory Used# [2025-03-14 08:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 05:56:05 [end_date_ymd] => 2025-03-14 08:56:05 [RateCDR] => 1 ) [2025-03-14 08:56: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-03-14 05:56:05' and `end` < '2025-03-14 08:56: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-03-14 08:56:17] Production.INFO: count ==732 [2025-03-14 08:56:18] Production.ERROR: pbx CDR StartTime 2025-03-14 05:56:05 - End Time 2025-03-14 08:56:05 [2025-03-14 08:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677759', 'tblTempUsageDetail_20' ) start [2025-03-14 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677759', 'tblTempUsageDetail_20' ) end [2025-03-14 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677759', 'tblTempVendorCDR_20' ) start [2025-03-14 08:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677759', 'tblTempVendorCDR_20' ) end [2025-03-14 08:56:18] Production.INFO: ProcessCDR(1,14677759,1,1,2) [2025-03-14 08:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:56:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:56:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677759', 'tblTempUsageDetail_20' ) start [2025-03-14 08:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677759', 'tblTempUsageDetail_20' ) end [2025-03-14 08:56:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 08:56:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 08:56:23] Production.INFO: ==23587== Releasing lock... [2025-03-14 08:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 08:56:23] Production.INFO: 33.5 MB #Memory Used# [2025-03-14 08:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 05:57:06 [end_date_ymd] => 2025-03-14 08:57:06 [RateCDR] => 1 ) [2025-03-14 08:57: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-03-14 05:57:06' and `end` < '2025-03-14 08:57: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-03-14 08:57:18] Production.INFO: count ==734 [2025-03-14 08:57:18] Production.ERROR: pbx CDR StartTime 2025-03-14 05:57:06 - End Time 2025-03-14 08:57:06 [2025-03-14 08:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677764', 'tblTempUsageDetail_20' ) start [2025-03-14 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677764', 'tblTempUsageDetail_20' ) end [2025-03-14 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677764', 'tblTempVendorCDR_20' ) start [2025-03-14 08:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677764', 'tblTempVendorCDR_20' ) end [2025-03-14 08:57:18] Production.INFO: ProcessCDR(1,14677764,1,1,2) [2025-03-14 08:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677764', 'tblTempUsageDetail_20' ) start [2025-03-14 08:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677764', 'tblTempUsageDetail_20' ) end [2025-03-14 08:57:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 08:57:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 08:57:23] Production.INFO: ==23662== Releasing lock... [2025-03-14 08:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 08:57:23] Production.INFO: 33.75 MB #Memory Used# [2025-03-14 08:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 05:58:05 [end_date_ymd] => 2025-03-14 08:58:05 [RateCDR] => 1 ) [2025-03-14 08:58: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-03-14 05:58:05' and `end` < '2025-03-14 08:58: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-03-14 08:58:18] Production.INFO: count ==740 [2025-03-14 08:58:18] Production.ERROR: pbx CDR StartTime 2025-03-14 05:58:05 - End Time 2025-03-14 08:58:05 [2025-03-14 08:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677769', 'tblTempUsageDetail_20' ) start [2025-03-14 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677769', 'tblTempUsageDetail_20' ) end [2025-03-14 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677769', 'tblTempVendorCDR_20' ) start [2025-03-14 08:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677769', 'tblTempVendorCDR_20' ) end [2025-03-14 08:58:18] Production.INFO: ProcessCDR(1,14677769,1,1,2) [2025-03-14 08:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677769', 'tblTempUsageDetail_20' ) start [2025-03-14 08:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677769', 'tblTempUsageDetail_20' ) end [2025-03-14 08:58:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 08:58:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 08:58:23] Production.INFO: ==23740== Releasing lock... [2025-03-14 08:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 08:58:23] Production.INFO: 34 MB #Memory Used# [2025-03-14 08:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 05:59:06 [end_date_ymd] => 2025-03-14 08:59:06 [RateCDR] => 1 ) [2025-03-14 08:59: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-03-14 05:59:06' and `end` < '2025-03-14 08:59: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-03-14 08:59:18] Production.INFO: count ==753 [2025-03-14 08:59:18] Production.ERROR: pbx CDR StartTime 2025-03-14 05:59:06 - End Time 2025-03-14 08:59:06 [2025-03-14 08:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677774', 'tblTempUsageDetail_20' ) start [2025-03-14 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677774', 'tblTempUsageDetail_20' ) end [2025-03-14 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677774', 'tblTempVendorCDR_20' ) start [2025-03-14 08:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677774', 'tblTempVendorCDR_20' ) end [2025-03-14 08:59:18] Production.INFO: ProcessCDR(1,14677774,1,1,2) [2025-03-14 08:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 08:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 08:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677774', 'tblTempUsageDetail_20' ) start [2025-03-14 08:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677774', 'tblTempUsageDetail_20' ) end [2025-03-14 08:59:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 08:59:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 08:59:24] Production.INFO: ==23823== Releasing lock... [2025-03-14 08:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 08:59:24] Production.INFO: 33.75 MB #Memory Used# [2025-03-14 09:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 06:00:05 [end_date_ymd] => 2025-03-14 09:00:05 [RateCDR] => 1 ) [2025-03-14 09:00: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-03-14 06:00:05' and `end` < '2025-03-14 09:00: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-03-14 09:00:18] Production.INFO: count ==762 [2025-03-14 09:00:18] Production.ERROR: pbx CDR StartTime 2025-03-14 06:00:05 - End Time 2025-03-14 09:00:05 [2025-03-14 09:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677780', 'tblTempUsageDetail_20' ) start [2025-03-14 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677780', 'tblTempUsageDetail_20' ) end [2025-03-14 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677780', 'tblTempVendorCDR_20' ) start [2025-03-14 09:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677780', 'tblTempVendorCDR_20' ) end [2025-03-14 09:00:18] Production.INFO: ProcessCDR(1,14677780,1,1,2) [2025-03-14 09:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677780,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677780,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677780', 'tblTempUsageDetail_20' ) start [2025-03-14 09:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677780', 'tblTempUsageDetail_20' ) end [2025-03-14 09:00:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 09:00:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 09:00:24] Production.INFO: ==23899== Releasing lock... [2025-03-14 09:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 09:00:24] Production.INFO: 34.25 MB #Memory Used# [2025-03-14 09:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 06:01:05 [end_date_ymd] => 2025-03-14 09:01:05 [RateCDR] => 1 ) [2025-03-14 09:01: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-03-14 06:01:05' and `end` < '2025-03-14 09:01: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-03-14 09:01:18] Production.INFO: count ==821 [2025-03-14 09:01:18] Production.ERROR: pbx CDR StartTime 2025-03-14 06:01:05 - End Time 2025-03-14 09:01:05 [2025-03-14 09:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677785', 'tblTempUsageDetail_20' ) start [2025-03-14 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677785', 'tblTempUsageDetail_20' ) end [2025-03-14 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677785', 'tblTempVendorCDR_20' ) start [2025-03-14 09:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677785', 'tblTempVendorCDR_20' ) end [2025-03-14 09:01:18] Production.INFO: ProcessCDR(1,14677785,1,1,2) [2025-03-14 09:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:01:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677785,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:01:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:01:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677785,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677785', 'tblTempUsageDetail_20' ) start [2025-03-14 09:01:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677785', 'tblTempUsageDetail_20' ) end [2025-03-14 09:01:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 09:01:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 09:01:24] Production.INFO: ==23995== Releasing lock... [2025-03-14 09:01:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 09:01:24] Production.INFO: 34.75 MB #Memory Used# [2025-03-14 09:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 06:02:05 [end_date_ymd] => 2025-03-14 09:02:05 [RateCDR] => 1 ) [2025-03-14 09:02: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-03-14 06:02:05' and `end` < '2025-03-14 09:02: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-03-14 09:02:17] Production.INFO: count ==849 [2025-03-14 09:02:18] Production.ERROR: pbx CDR StartTime 2025-03-14 06:02:05 - End Time 2025-03-14 09:02:05 [2025-03-14 09:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677790', 'tblTempUsageDetail_20' ) start [2025-03-14 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677790', 'tblTempUsageDetail_20' ) end [2025-03-14 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677790', 'tblTempVendorCDR_20' ) start [2025-03-14 09:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677790', 'tblTempVendorCDR_20' ) end [2025-03-14 09:02:18] Production.INFO: ProcessCDR(1,14677790,1,1,2) [2025-03-14 09:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677790,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677790,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677790', 'tblTempUsageDetail_20' ) start [2025-03-14 09:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677790', 'tblTempUsageDetail_20' ) end [2025-03-14 09:02:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 09:02:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 09:02:23] Production.INFO: ==24072== Releasing lock... [2025-03-14 09:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 09:02:23] Production.INFO: 34.25 MB #Memory Used# [2025-03-14 09:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 06:03:05 [end_date_ymd] => 2025-03-14 09:03:05 [RateCDR] => 1 ) [2025-03-14 09:03: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-03-14 06:03:05' and `end` < '2025-03-14 09:03: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-03-14 09:03:18] Production.INFO: count ==876 [2025-03-14 09:03:18] Production.ERROR: pbx CDR StartTime 2025-03-14 06:03:05 - End Time 2025-03-14 09:03:05 [2025-03-14 09:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677795', 'tblTempUsageDetail_20' ) start [2025-03-14 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677795', 'tblTempUsageDetail_20' ) end [2025-03-14 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677795', 'tblTempVendorCDR_20' ) start [2025-03-14 09:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677795', 'tblTempVendorCDR_20' ) end [2025-03-14 09:03:18] Production.INFO: ProcessCDR(1,14677795,1,1,2) [2025-03-14 09:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677795,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677795,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677795', 'tblTempUsageDetail_20' ) start [2025-03-14 09:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677795', 'tblTempUsageDetail_20' ) end [2025-03-14 09:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 09:03:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 09:03:23] Production.INFO: ==24150== Releasing lock... [2025-03-14 09:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 09:03:23] Production.INFO: 34.75 MB #Memory Used# [2025-03-14 09:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 06:04:05 [end_date_ymd] => 2025-03-14 09:04:05 [RateCDR] => 1 ) [2025-03-14 09:04: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-03-14 06:04:05' and `end` < '2025-03-14 09:04: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-03-14 09:04:17] Production.INFO: count ==898 [2025-03-14 09:04:18] Production.ERROR: pbx CDR StartTime 2025-03-14 06:04:05 - End Time 2025-03-14 09:04:05 [2025-03-14 09:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677800', 'tblTempUsageDetail_20' ) start [2025-03-14 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677800', 'tblTempUsageDetail_20' ) end [2025-03-14 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677800', 'tblTempVendorCDR_20' ) start [2025-03-14 09:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677800', 'tblTempVendorCDR_20' ) end [2025-03-14 09:04:18] Production.INFO: ProcessCDR(1,14677800,1,1,2) [2025-03-14 09:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677800', 'tblTempUsageDetail_20' ) start [2025-03-14 09:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677800', 'tblTempUsageDetail_20' ) end [2025-03-14 09:04:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 09:04:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 09:04:23] Production.INFO: ==24229== Releasing lock... [2025-03-14 09:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 09:04:23] Production.INFO: 35 MB #Memory Used# [2025-03-14 09:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 06:05:05 [end_date_ymd] => 2025-03-14 09:05:05 [RateCDR] => 1 ) [2025-03-14 09:05: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-03-14 06:05:05' and `end` < '2025-03-14 09:05: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-03-14 09:05:18] Production.INFO: count ==905 [2025-03-14 09:05:18] Production.ERROR: pbx CDR StartTime 2025-03-14 06:05:05 - End Time 2025-03-14 09:05:05 [2025-03-14 09:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677805', 'tblTempUsageDetail_20' ) start [2025-03-14 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677805', 'tblTempUsageDetail_20' ) end [2025-03-14 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677805', 'tblTempVendorCDR_20' ) start [2025-03-14 09:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677805', 'tblTempVendorCDR_20' ) end [2025-03-14 09:05:18] Production.INFO: ProcessCDR(1,14677805,1,1,2) [2025-03-14 09:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:05:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677805', 'tblTempUsageDetail_20' ) start [2025-03-14 09:05:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677805', 'tblTempUsageDetail_20' ) end [2025-03-14 09:05:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 09:05:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 09:05:23] Production.INFO: ==24311== Releasing lock... [2025-03-14 09:05:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 09:05:23] Production.INFO: 34.5 MB #Memory Used# [2025-03-14 09:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 06:06:05 [end_date_ymd] => 2025-03-14 09:06:05 [RateCDR] => 1 ) [2025-03-14 09:06: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-03-14 06:06:05' and `end` < '2025-03-14 09:06: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-03-14 09:06:18] Production.INFO: count ==922 [2025-03-14 09:06:18] Production.ERROR: pbx CDR StartTime 2025-03-14 06:06:05 - End Time 2025-03-14 09:06:05 [2025-03-14 09:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677810', 'tblTempUsageDetail_20' ) start [2025-03-14 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677810', 'tblTempUsageDetail_20' ) end [2025-03-14 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677810', 'tblTempVendorCDR_20' ) start [2025-03-14 09:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677810', 'tblTempVendorCDR_20' ) end [2025-03-14 09:06:18] Production.INFO: ProcessCDR(1,14677810,1,1,2) [2025-03-14 09:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677810', 'tblTempUsageDetail_20' ) start [2025-03-14 09:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677810', 'tblTempUsageDetail_20' ) end [2025-03-14 09:06:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 09:06:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 09:06:23] Production.INFO: ==24388== Releasing lock... [2025-03-14 09:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 09:06:23] Production.INFO: 35 MB #Memory Used# [2025-03-14 09:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 06:07:06 [end_date_ymd] => 2025-03-14 09:07:06 [RateCDR] => 1 ) [2025-03-14 09:07: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-03-14 06:07:06' and `end` < '2025-03-14 09:07: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-03-14 09:07:18] Production.INFO: count ==936 [2025-03-14 09:07:18] Production.ERROR: pbx CDR StartTime 2025-03-14 06:07:06 - End Time 2025-03-14 09:07:06 [2025-03-14 09:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677815', 'tblTempUsageDetail_20' ) start [2025-03-14 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677815', 'tblTempUsageDetail_20' ) end [2025-03-14 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677815', 'tblTempVendorCDR_20' ) start [2025-03-14 09:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677815', 'tblTempVendorCDR_20' ) end [2025-03-14 09:07:18] Production.INFO: ProcessCDR(1,14677815,1,1,2) [2025-03-14 09:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677815', 'tblTempUsageDetail_20' ) start [2025-03-14 09:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677815', 'tblTempUsageDetail_20' ) end [2025-03-14 09:07:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 09:07:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 09:07:24] Production.INFO: ==24462== Releasing lock... [2025-03-14 09:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 09:07:24] Production.INFO: 35.5 MB #Memory Used# [2025-03-14 09:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 06:08:05 [end_date_ymd] => 2025-03-14 09:08:05 [RateCDR] => 1 ) [2025-03-14 09:08: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-03-14 06:08:05' and `end` < '2025-03-14 09:08: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-03-14 09:08:18] Production.INFO: count ==958 [2025-03-14 09:08:18] Production.ERROR: pbx CDR StartTime 2025-03-14 06:08:05 - End Time 2025-03-14 09:08:05 [2025-03-14 09:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677820', 'tblTempUsageDetail_20' ) start [2025-03-14 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677820', 'tblTempUsageDetail_20' ) end [2025-03-14 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677820', 'tblTempVendorCDR_20' ) start [2025-03-14 09:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677820', 'tblTempVendorCDR_20' ) end [2025-03-14 09:08:18] Production.INFO: ProcessCDR(1,14677820,1,1,2) [2025-03-14 09:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677820', 'tblTempUsageDetail_20' ) start [2025-03-14 09:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677820', 'tblTempUsageDetail_20' ) end [2025-03-14 09:08:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 09:08:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 09:08:23] Production.INFO: ==24582== Releasing lock... [2025-03-14 09:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 09:08:23] Production.INFO: 35.75 MB #Memory Used# [2025-03-14 09:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 06:09:06 [end_date_ymd] => 2025-03-14 09:09:06 [RateCDR] => 1 ) [2025-03-14 09:09: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-03-14 06:09:06' and `end` < '2025-03-14 09:09: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-03-14 09:09:18] Production.INFO: count ==987 [2025-03-14 09:09:19] Production.ERROR: pbx CDR StartTime 2025-03-14 06:09:06 - End Time 2025-03-14 09:09:06 [2025-03-14 09:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677825', 'tblTempUsageDetail_20' ) start [2025-03-14 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677825', 'tblTempUsageDetail_20' ) end [2025-03-14 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677825', 'tblTempVendorCDR_20' ) start [2025-03-14 09:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677825', 'tblTempVendorCDR_20' ) end [2025-03-14 09:09:19] Production.INFO: ProcessCDR(1,14677825,1,1,2) [2025-03-14 09:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:09:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677825', 'tblTempUsageDetail_20' ) start [2025-03-14 09:09:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677825', 'tblTempUsageDetail_20' ) end [2025-03-14 09:09:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 09:09:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 09:09:24] Production.INFO: ==24661== Releasing lock... [2025-03-14 09:09:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 09:09:24] Production.INFO: 35.5 MB #Memory Used# [2025-03-14 09:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 06:10:06 [end_date_ymd] => 2025-03-14 09:10:06 [RateCDR] => 1 ) [2025-03-14 09:10: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-03-14 06:10:06' and `end` < '2025-03-14 09:10: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-03-14 09:10:18] Production.INFO: count ==1010 [2025-03-14 09:10:19] Production.ERROR: pbx CDR StartTime 2025-03-14 06:10:06 - End Time 2025-03-14 09:10:06 [2025-03-14 09:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677831', 'tblTempUsageDetail_20' ) start [2025-03-14 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677831', 'tblTempUsageDetail_20' ) end [2025-03-14 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677831', 'tblTempVendorCDR_20' ) start [2025-03-14 09:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677831', 'tblTempVendorCDR_20' ) end [2025-03-14 09:10:19] Production.INFO: ProcessCDR(1,14677831,1,1,2) [2025-03-14 09:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677831,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:10:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677831,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677831', 'tblTempUsageDetail_20' ) start [2025-03-14 09:10:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677831', 'tblTempUsageDetail_20' ) end [2025-03-14 09:10:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 09:10:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 09:10:22] Production.INFO: ==24744== Releasing lock... [2025-03-14 09:10:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 09:10:22] Production.INFO: 35.75 MB #Memory Used# [2025-03-14 09:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 06:11:05 [end_date_ymd] => 2025-03-14 09:11:05 [RateCDR] => 1 ) [2025-03-14 09:11: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-03-14 06:11:05' and `end` < '2025-03-14 09:11: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-03-14 09:11:18] Production.INFO: count ==1084 [2025-03-14 09:11:18] Production.ERROR: pbx CDR StartTime 2025-03-14 06:11:05 - End Time 2025-03-14 09:11:05 [2025-03-14 09:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677836', 'tblTempUsageDetail_20' ) start [2025-03-14 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677836', 'tblTempUsageDetail_20' ) end [2025-03-14 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677836', 'tblTempVendorCDR_20' ) start [2025-03-14 09:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677836', 'tblTempVendorCDR_20' ) end [2025-03-14 09:11:18] Production.INFO: ProcessCDR(1,14677836,1,1,2) [2025-03-14 09:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677836,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677836,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677836', 'tblTempUsageDetail_20' ) start [2025-03-14 09:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677836', 'tblTempUsageDetail_20' ) end [2025-03-14 09:11:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 09:11:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 09:11:23] Production.INFO: ==24832== Releasing lock... [2025-03-14 09:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 09:11:23] Production.INFO: 36 MB #Memory Used# [2025-03-14 09:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 06:12:05 [end_date_ymd] => 2025-03-14 09:12:05 [RateCDR] => 1 ) [2025-03-14 09:12: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-03-14 06:12:05' and `end` < '2025-03-14 09:12: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-03-14 09:12:17] Production.INFO: count ==1105 [2025-03-14 09:12:18] Production.ERROR: pbx CDR StartTime 2025-03-14 06:12:05 - End Time 2025-03-14 09:12:05 [2025-03-14 09:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677841', 'tblTempUsageDetail_20' ) start [2025-03-14 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677841', 'tblTempUsageDetail_20' ) end [2025-03-14 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677841', 'tblTempVendorCDR_20' ) start [2025-03-14 09:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677841', 'tblTempVendorCDR_20' ) end [2025-03-14 09:12:18] Production.INFO: ProcessCDR(1,14677841,1,1,2) [2025-03-14 09:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677841,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677841,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677841', 'tblTempUsageDetail_20' ) start [2025-03-14 09:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677841', 'tblTempUsageDetail_20' ) end [2025-03-14 09:12:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 09:12:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 09:12:23] Production.INFO: ==24915== Releasing lock... [2025-03-14 09:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 09:12:23] Production.INFO: 36.75 MB #Memory Used# [2025-03-14 09:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 06:13:06 [end_date_ymd] => 2025-03-14 09:13:06 [RateCDR] => 1 ) [2025-03-14 09:13: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-03-14 06:13:06' and `end` < '2025-03-14 09:13: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-03-14 09:13:18] Production.INFO: count ==1122 [2025-03-14 09:13:18] Production.ERROR: pbx CDR StartTime 2025-03-14 06:13:06 - End Time 2025-03-14 09:13:06 [2025-03-14 09:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677846', 'tblTempUsageDetail_20' ) start [2025-03-14 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677846', 'tblTempUsageDetail_20' ) end [2025-03-14 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677846', 'tblTempVendorCDR_20' ) start [2025-03-14 09:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677846', 'tblTempVendorCDR_20' ) end [2025-03-14 09:13:18] Production.INFO: ProcessCDR(1,14677846,1,1,2) [2025-03-14 09:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677846,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677846,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677846', 'tblTempUsageDetail_20' ) start [2025-03-14 09:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677846', 'tblTempUsageDetail_20' ) end [2025-03-14 09:13:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 09:13:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 09:13:23] Production.INFO: ==24994== Releasing lock... [2025-03-14 09:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 09:13:23] Production.INFO: 36.25 MB #Memory Used# [2025-03-14 09:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 06:14:05 [end_date_ymd] => 2025-03-14 09:14:05 [RateCDR] => 1 ) [2025-03-14 09:14: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-03-14 06:14:05' and `end` < '2025-03-14 09:14: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-03-14 09:14:17] Production.INFO: count ==1126 [2025-03-14 09:14:17] Production.ERROR: pbx CDR StartTime 2025-03-14 06:14:05 - End Time 2025-03-14 09:14:05 [2025-03-14 09:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 09:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677851', 'tblTempUsageDetail_20' ) start [2025-03-14 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677851', 'tblTempUsageDetail_20' ) end [2025-03-14 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677851', 'tblTempVendorCDR_20' ) start [2025-03-14 09:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677851', 'tblTempVendorCDR_20' ) end [2025-03-14 09:14:18] Production.INFO: ProcessCDR(1,14677851,1,1,2) [2025-03-14 09:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677851', 'tblTempUsageDetail_20' ) start [2025-03-14 09:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677851', 'tblTempUsageDetail_20' ) end [2025-03-14 09:14:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 09:14:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 09:14:23] Production.INFO: ==25070== Releasing lock... [2025-03-14 09:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 09:14:23] Production.INFO: 37 MB #Memory Used# [2025-03-14 09:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 06:15:05 [end_date_ymd] => 2025-03-14 09:15:05 [RateCDR] => 1 ) [2025-03-14 09:15: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-03-14 06:15:05' and `end` < '2025-03-14 09:15: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-03-14 09:15:18] Production.INFO: count ==1142 [2025-03-14 09:15:18] Production.ERROR: pbx CDR StartTime 2025-03-14 06:15:05 - End Time 2025-03-14 09:15:05 [2025-03-14 09:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677856', 'tblTempUsageDetail_20' ) start [2025-03-14 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677856', 'tblTempUsageDetail_20' ) end [2025-03-14 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677856', 'tblTempVendorCDR_20' ) start [2025-03-14 09:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677856', 'tblTempVendorCDR_20' ) end [2025-03-14 09:15:18] Production.INFO: ProcessCDR(1,14677856,1,1,2) [2025-03-14 09:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677856', 'tblTempUsageDetail_20' ) start [2025-03-14 09:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677856', 'tblTempUsageDetail_20' ) end [2025-03-14 09:15:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 09:15:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 09:15:23] Production.INFO: ==25153== Releasing lock... [2025-03-14 09:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 09:15:23] Production.INFO: 36.75 MB #Memory Used# [2025-03-14 09:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 06:16:05 [end_date_ymd] => 2025-03-14 09:16:05 [RateCDR] => 1 ) [2025-03-14 09:16: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-03-14 06:16:05' and `end` < '2025-03-14 09:16: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-03-14 09:16:17] Production.INFO: count ==1150 [2025-03-14 09:16:18] Production.ERROR: pbx CDR StartTime 2025-03-14 06:16:05 - End Time 2025-03-14 09:16:05 [2025-03-14 09:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677861', 'tblTempUsageDetail_20' ) start [2025-03-14 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677861', 'tblTempUsageDetail_20' ) end [2025-03-14 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677861', 'tblTempVendorCDR_20' ) start [2025-03-14 09:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677861', 'tblTempVendorCDR_20' ) end [2025-03-14 09:16:18] Production.INFO: ProcessCDR(1,14677861,1,1,2) [2025-03-14 09:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677861', 'tblTempUsageDetail_20' ) start [2025-03-14 09:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677861', 'tblTempUsageDetail_20' ) end [2025-03-14 09:16:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 09:16:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 09:16:23] Production.INFO: ==25240== Releasing lock... [2025-03-14 09:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 09:16:23] Production.INFO: 37 MB #Memory Used# [2025-03-14 09:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 06:17:05 [end_date_ymd] => 2025-03-14 09:17:05 [RateCDR] => 1 ) [2025-03-14 09:17: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-03-14 06:17:05' and `end` < '2025-03-14 09:17: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-03-14 09:17:18] Production.INFO: count ==1150 [2025-03-14 09:17:18] Production.ERROR: pbx CDR StartTime 2025-03-14 06:17:05 - End Time 2025-03-14 09:17:05 [2025-03-14 09:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677866', 'tblTempUsageDetail_20' ) start [2025-03-14 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677866', 'tblTempUsageDetail_20' ) end [2025-03-14 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677866', 'tblTempVendorCDR_20' ) start [2025-03-14 09:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677866', 'tblTempVendorCDR_20' ) end [2025-03-14 09:17:18] Production.INFO: ProcessCDR(1,14677866,1,1,2) [2025-03-14 09:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677866', 'tblTempUsageDetail_20' ) start [2025-03-14 09:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677866', 'tblTempUsageDetail_20' ) end [2025-03-14 09:17:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 09:17:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 09:17:23] Production.INFO: ==25320== Releasing lock... [2025-03-14 09:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 09:17:23] Production.INFO: 37.25 MB #Memory Used# [2025-03-14 09:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 06:18:05 [end_date_ymd] => 2025-03-14 09:18:05 [RateCDR] => 1 ) [2025-03-14 09:18: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-03-14 06:18:05' and `end` < '2025-03-14 09:18: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-03-14 09:18:18] Production.INFO: count ==1151 [2025-03-14 09:18:18] Production.ERROR: pbx CDR StartTime 2025-03-14 06:18:05 - End Time 2025-03-14 09:18:05 [2025-03-14 09:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677871', 'tblTempUsageDetail_20' ) start [2025-03-14 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677871', 'tblTempUsageDetail_20' ) end [2025-03-14 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677871', 'tblTempVendorCDR_20' ) start [2025-03-14 09:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677871', 'tblTempVendorCDR_20' ) end [2025-03-14 09:18:18] Production.INFO: ProcessCDR(1,14677871,1,1,2) [2025-03-14 09:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677871', 'tblTempUsageDetail_20' ) start [2025-03-14 09:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677871', 'tblTempUsageDetail_20' ) end [2025-03-14 09:18:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 09:18:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 09:18:24] Production.INFO: ==25410== Releasing lock... [2025-03-14 09:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 09:18:24] Production.INFO: 36.75 MB #Memory Used# [2025-03-14 09:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 06:19:05 [end_date_ymd] => 2025-03-14 09:19:05 [RateCDR] => 1 ) [2025-03-14 09:19: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-03-14 06:19:05' and `end` < '2025-03-14 09:19: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-03-14 09:19:18] Production.INFO: count ==1149 [2025-03-14 09:19:18] Production.ERROR: pbx CDR StartTime 2025-03-14 06:19:05 - End Time 2025-03-14 09:19:05 [2025-03-14 09:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677876', 'tblTempUsageDetail_20' ) start [2025-03-14 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677876', 'tblTempUsageDetail_20' ) end [2025-03-14 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677876', 'tblTempVendorCDR_20' ) start [2025-03-14 09:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677876', 'tblTempVendorCDR_20' ) end [2025-03-14 09:19:18] Production.INFO: ProcessCDR(1,14677876,1,1,2) [2025-03-14 09:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677876', 'tblTempUsageDetail_20' ) start [2025-03-14 09:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677876', 'tblTempUsageDetail_20' ) end [2025-03-14 09:19:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 09:19:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 09:19:23] Production.INFO: ==25493== Releasing lock... [2025-03-14 09:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 09:19:23] Production.INFO: 37.25 MB #Memory Used# [2025-03-14 09:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 06:20:07 [end_date_ymd] => 2025-03-14 09:20:07 [RateCDR] => 1 ) [2025-03-14 09:20:07] 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-03-14 06:20:07' and `end` < '2025-03-14 09:20:07' 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-03-14 09:20:20] Production.INFO: count ==1174 [2025-03-14 09:20:20] Production.ERROR: pbx CDR StartTime 2025-03-14 06:20:07 - End Time 2025-03-14 09:20:07 [2025-03-14 09:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677882', 'tblTempUsageDetail_20' ) start [2025-03-14 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677882', 'tblTempUsageDetail_20' ) end [2025-03-14 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677882', 'tblTempVendorCDR_20' ) start [2025-03-14 09:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677882', 'tblTempVendorCDR_20' ) end [2025-03-14 09:20:20] Production.INFO: ProcessCDR(1,14677882,1,1,2) [2025-03-14 09:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677882,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677882,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677882', 'tblTempUsageDetail_20' ) start [2025-03-14 09:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677882', 'tblTempUsageDetail_20' ) end [2025-03-14 09:20:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 09:20:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 09:20:26] Production.INFO: ==25588== Releasing lock... [2025-03-14 09:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 09:20:26] Production.INFO: 37 MB #Memory Used# [2025-03-14 09:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 06:21:05 [end_date_ymd] => 2025-03-14 09:21:05 [RateCDR] => 1 ) [2025-03-14 09:21: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-03-14 06:21:05' and `end` < '2025-03-14 09:21: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-03-14 09:21:18] Production.INFO: count ==1251 [2025-03-14 09:21:18] Production.ERROR: pbx CDR StartTime 2025-03-14 06:21:05 - End Time 2025-03-14 09:21:05 [2025-03-14 09:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677887', 'tblTempUsageDetail_20' ) start [2025-03-14 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677887', 'tblTempUsageDetail_20' ) end [2025-03-14 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677887', 'tblTempVendorCDR_20' ) start [2025-03-14 09:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677887', 'tblTempVendorCDR_20' ) end [2025-03-14 09:21:18] Production.INFO: ProcessCDR(1,14677887,1,1,2) [2025-03-14 09:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677887,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677887,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677887', 'tblTempUsageDetail_20' ) start [2025-03-14 09:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677887', 'tblTempUsageDetail_20' ) end [2025-03-14 09:21:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 09:21:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 09:21:24] Production.INFO: ==25697== Releasing lock... [2025-03-14 09:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 09:21:24] Production.INFO: 37.5 MB #Memory Used# [2025-03-14 09:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 06:22:06 [end_date_ymd] => 2025-03-14 09:22:06 [RateCDR] => 1 ) [2025-03-14 09:22: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-03-14 06:22:06' and `end` < '2025-03-14 09:22: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-03-14 09:22:18] Production.INFO: count ==1262 [2025-03-14 09:22:19] Production.ERROR: pbx CDR StartTime 2025-03-14 06:22:06 - End Time 2025-03-14 09:22:06 [2025-03-14 09:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677892', 'tblTempUsageDetail_20' ) start [2025-03-14 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677892', 'tblTempUsageDetail_20' ) end [2025-03-14 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677892', 'tblTempVendorCDR_20' ) start [2025-03-14 09:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677892', 'tblTempVendorCDR_20' ) end [2025-03-14 09:22:19] Production.INFO: ProcessCDR(1,14677892,1,1,2) [2025-03-14 09:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677892,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677892,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677892', 'tblTempUsageDetail_20' ) start [2025-03-14 09:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677892', 'tblTempUsageDetail_20' ) end [2025-03-14 09:22:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 09:22:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 09:22:23] Production.INFO: ==25803== Releasing lock... [2025-03-14 09:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 09:22:23] Production.INFO: 37.75 MB #Memory Used# [2025-03-14 09:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 06:23:06 [end_date_ymd] => 2025-03-14 09:23:06 [RateCDR] => 1 ) [2025-03-14 09:23: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-03-14 06:23:06' and `end` < '2025-03-14 09:23: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-03-14 09:23:18] Production.INFO: count ==1276 [2025-03-14 09:23:19] Production.ERROR: pbx CDR StartTime 2025-03-14 06:23:06 - End Time 2025-03-14 09:23:06 [2025-03-14 09:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677897', 'tblTempUsageDetail_20' ) start [2025-03-14 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677897', 'tblTempUsageDetail_20' ) end [2025-03-14 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677897', 'tblTempVendorCDR_20' ) start [2025-03-14 09:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677897', 'tblTempVendorCDR_20' ) end [2025-03-14 09:23:19] Production.INFO: ProcessCDR(1,14677897,1,1,2) [2025-03-14 09:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677897,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677897,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677897', 'tblTempUsageDetail_20' ) start [2025-03-14 09:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677897', 'tblTempUsageDetail_20' ) end [2025-03-14 09:23:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 09:23:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 09:23:24] Production.INFO: ==25911== Releasing lock... [2025-03-14 09:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 09:23:24] Production.INFO: 37.5 MB #Memory Used# [2025-03-14 09:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 06:24:05 [end_date_ymd] => 2025-03-14 09:24:05 [RateCDR] => 1 ) [2025-03-14 09:24: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-03-14 06:24:05' and `end` < '2025-03-14 09:24: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-03-14 09:24:17] Production.INFO: count ==1286 [2025-03-14 09:24:18] Production.ERROR: pbx CDR StartTime 2025-03-14 06:24:05 - End Time 2025-03-14 09:24:05 [2025-03-14 09:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677902', 'tblTempUsageDetail_20' ) start [2025-03-14 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677902', 'tblTempUsageDetail_20' ) end [2025-03-14 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677902', 'tblTempVendorCDR_20' ) start [2025-03-14 09:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677902', 'tblTempVendorCDR_20' ) end [2025-03-14 09:24:18] Production.INFO: ProcessCDR(1,14677902,1,1,2) [2025-03-14 09:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:24:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677902', 'tblTempUsageDetail_20' ) start [2025-03-14 09:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677902', 'tblTempUsageDetail_20' ) end [2025-03-14 09:24:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 09:24:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 09:24:24] Production.INFO: ==26053== Releasing lock... [2025-03-14 09:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 09:24:24] Production.INFO: 37.75 MB #Memory Used# [2025-03-14 09:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 06:25:06 [end_date_ymd] => 2025-03-14 09:25:06 [RateCDR] => 1 ) [2025-03-14 09:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-14 06:25:06' and `end` < '2025-03-14 09:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-14 09:25:18] Production.INFO: count ==1293 [2025-03-14 09:25:19] Production.ERROR: pbx CDR StartTime 2025-03-14 06:25:06 - End Time 2025-03-14 09:25:06 [2025-03-14 09:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677907', 'tblTempUsageDetail_20' ) start [2025-03-14 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677907', 'tblTempUsageDetail_20' ) end [2025-03-14 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677907', 'tblTempVendorCDR_20' ) start [2025-03-14 09:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677907', 'tblTempVendorCDR_20' ) end [2025-03-14 09:25:19] Production.INFO: ProcessCDR(1,14677907,1,1,2) [2025-03-14 09:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:25:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:25:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677907', 'tblTempUsageDetail_20' ) start [2025-03-14 09:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677907', 'tblTempUsageDetail_20' ) end [2025-03-14 09:25:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 09:25:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 09:25:24] Production.INFO: ==26159== Releasing lock... [2025-03-14 09:25:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 09:25:24] Production.INFO: 37.75 MB #Memory Used# [2025-03-14 09:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 06:26:05 [end_date_ymd] => 2025-03-14 09:26:05 [RateCDR] => 1 ) [2025-03-14 09:26: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-03-14 06:26:05' and `end` < '2025-03-14 09:26: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-03-14 09:26:18] Production.INFO: count ==1301 [2025-03-14 09:26:18] Production.ERROR: pbx CDR StartTime 2025-03-14 06:26:05 - End Time 2025-03-14 09:26:05 [2025-03-14 09:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677912', 'tblTempUsageDetail_20' ) start [2025-03-14 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677912', 'tblTempUsageDetail_20' ) end [2025-03-14 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677912', 'tblTempVendorCDR_20' ) start [2025-03-14 09:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677912', 'tblTempVendorCDR_20' ) end [2025-03-14 09:26:18] Production.INFO: ProcessCDR(1,14677912,1,1,2) [2025-03-14 09:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:26:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677912', 'tblTempUsageDetail_20' ) start [2025-03-14 09:26:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677912', 'tblTempUsageDetail_20' ) end [2025-03-14 09:26:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 09:26:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 09:26:24] Production.INFO: ==26268== Releasing lock... [2025-03-14 09:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 09:26:24] Production.INFO: 37.75 MB #Memory Used# [2025-03-14 09:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 06:27:06 [end_date_ymd] => 2025-03-14 09:27:06 [RateCDR] => 1 ) [2025-03-14 09:27: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-03-14 06:27:06' and `end` < '2025-03-14 09:27: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-03-14 09:27:18] Production.INFO: count ==1314 [2025-03-14 09:27:19] Production.ERROR: pbx CDR StartTime 2025-03-14 06:27:06 - End Time 2025-03-14 09:27:06 [2025-03-14 09:27:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677917', 'tblTempUsageDetail_20' ) start [2025-03-14 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677917', 'tblTempUsageDetail_20' ) end [2025-03-14 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677917', 'tblTempVendorCDR_20' ) start [2025-03-14 09:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677917', 'tblTempVendorCDR_20' ) end [2025-03-14 09:27:19] Production.INFO: ProcessCDR(1,14677917,1,1,2) [2025-03-14 09:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677917', 'tblTempUsageDetail_20' ) start [2025-03-14 09:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677917', 'tblTempUsageDetail_20' ) end [2025-03-14 09:27:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 09:27:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 09:27:23] Production.INFO: ==26376== Releasing lock... [2025-03-14 09:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 09:27:23] Production.INFO: 38 MB #Memory Used# [2025-03-14 09:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 06:28:05 [end_date_ymd] => 2025-03-14 09:28:05 [RateCDR] => 1 ) [2025-03-14 09:28: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-03-14 06:28:05' and `end` < '2025-03-14 09:28: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-03-14 09:28:17] Production.INFO: count ==1319 [2025-03-14 09:28:18] Production.ERROR: pbx CDR StartTime 2025-03-14 06:28:05 - End Time 2025-03-14 09:28:05 [2025-03-14 09:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677922', 'tblTempUsageDetail_20' ) start [2025-03-14 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677922', 'tblTempUsageDetail_20' ) end [2025-03-14 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677922', 'tblTempVendorCDR_20' ) start [2025-03-14 09:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677922', 'tblTempVendorCDR_20' ) end [2025-03-14 09:28:18] Production.INFO: ProcessCDR(1,14677922,1,1,2) [2025-03-14 09:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677922', 'tblTempUsageDetail_20' ) start [2025-03-14 09:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677922', 'tblTempUsageDetail_20' ) end [2025-03-14 09:28:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 09:28:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 09:28:24] Production.INFO: ==26477== Releasing lock... [2025-03-14 09:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 09:28:24] Production.INFO: 38 MB #Memory Used# [2025-03-14 09:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 06:29:06 [end_date_ymd] => 2025-03-14 09:29:06 [RateCDR] => 1 ) [2025-03-14 09:29: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-03-14 06:29:06' and `end` < '2025-03-14 09:29: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-03-14 09:29:18] Production.INFO: count ==1337 [2025-03-14 09:29:19] Production.ERROR: pbx CDR StartTime 2025-03-14 06:29:06 - End Time 2025-03-14 09:29:06 [2025-03-14 09:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677927', 'tblTempUsageDetail_20' ) start [2025-03-14 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677927', 'tblTempUsageDetail_20' ) end [2025-03-14 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677927', 'tblTempVendorCDR_20' ) start [2025-03-14 09:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677927', 'tblTempVendorCDR_20' ) end [2025-03-14 09:29:19] Production.INFO: ProcessCDR(1,14677927,1,1,2) [2025-03-14 09:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677927', 'tblTempUsageDetail_20' ) start [2025-03-14 09:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677927', 'tblTempUsageDetail_20' ) end [2025-03-14 09:29:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 09:29:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 09:29:25] Production.INFO: ==26582== Releasing lock... [2025-03-14 09:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 09:29:25] Production.INFO: 38 MB #Memory Used# [2025-03-14 09:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 06:30:06 [end_date_ymd] => 2025-03-14 09:30:06 [RateCDR] => 1 ) [2025-03-14 09:30: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-03-14 06:30:06' and `end` < '2025-03-14 09:30: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-03-14 09:30:19] Production.INFO: count ==1348 [2025-03-14 09:30:19] Production.ERROR: pbx CDR StartTime 2025-03-14 06:30:06 - End Time 2025-03-14 09:30:06 [2025-03-14 09:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677932', 'tblTempUsageDetail_20' ) start [2025-03-14 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677932', 'tblTempUsageDetail_20' ) end [2025-03-14 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677932', 'tblTempVendorCDR_20' ) start [2025-03-14 09:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677932', 'tblTempVendorCDR_20' ) end [2025-03-14 09:30:19] Production.INFO: ProcessCDR(1,14677932,1,1,2) [2025-03-14 09:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677932', 'tblTempUsageDetail_20' ) start [2025-03-14 09:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677932', 'tblTempUsageDetail_20' ) end [2025-03-14 09:30:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 09:30:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 09:30:25] Production.INFO: ==26701== Releasing lock... [2025-03-14 09:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 09:30:25] Production.INFO: 38.25 MB #Memory Used# [2025-03-14 09:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 06:31:06 [end_date_ymd] => 2025-03-14 09:31:06 [RateCDR] => 1 ) [2025-03-14 09:31: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-03-14 06:31:06' and `end` < '2025-03-14 09:31: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-03-14 09:31:18] Production.INFO: count ==1405 [2025-03-14 09:31:19] Production.ERROR: pbx CDR StartTime 2025-03-14 06:31:06 - End Time 2025-03-14 09:31:06 [2025-03-14 09:31:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677938', 'tblTempUsageDetail_20' ) start [2025-03-14 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677938', 'tblTempUsageDetail_20' ) end [2025-03-14 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677938', 'tblTempVendorCDR_20' ) start [2025-03-14 09:31:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677938', 'tblTempVendorCDR_20' ) end [2025-03-14 09:31:19] Production.INFO: ProcessCDR(1,14677938,1,1,2) [2025-03-14 09:31:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677938,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677938,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677938', 'tblTempUsageDetail_20' ) start [2025-03-14 09:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677938', 'tblTempUsageDetail_20' ) end [2025-03-14 09:31:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 09:31:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 09:31:25] Production.INFO: ==26809== Releasing lock... [2025-03-14 09:31:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 09:31:25] Production.INFO: 38.75 MB #Memory Used# [2025-03-14 09:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 06:32:05 [end_date_ymd] => 2025-03-14 09:32:05 [RateCDR] => 1 ) [2025-03-14 09:32: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-03-14 06:32:05' and `end` < '2025-03-14 09:32: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-03-14 09:32:18] Production.INFO: count ==1430 [2025-03-14 09:32:18] Production.ERROR: pbx CDR StartTime 2025-03-14 06:32:05 - End Time 2025-03-14 09:32:05 [2025-03-14 09:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677943', 'tblTempUsageDetail_20' ) start [2025-03-14 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677943', 'tblTempUsageDetail_20' ) end [2025-03-14 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677943', 'tblTempVendorCDR_20' ) start [2025-03-14 09:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677943', 'tblTempVendorCDR_20' ) end [2025-03-14 09:32:18] Production.INFO: ProcessCDR(1,14677943,1,1,2) [2025-03-14 09:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:32:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677943,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:32:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677943,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677943', 'tblTempUsageDetail_20' ) start [2025-03-14 09:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677943', 'tblTempUsageDetail_20' ) end [2025-03-14 09:32:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 09:32:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 09:32:24] Production.INFO: ==26914== Releasing lock... [2025-03-14 09:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 09:32:24] Production.INFO: 39 MB #Memory Used# [2025-03-14 09:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 06:33:05 [end_date_ymd] => 2025-03-14 09:33:05 [RateCDR] => 1 ) [2025-03-14 09:33: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-03-14 06:33:05' and `end` < '2025-03-14 09:33: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-03-14 09:33:18] Production.INFO: count ==1439 [2025-03-14 09:33:18] Production.ERROR: pbx CDR StartTime 2025-03-14 06:33:05 - End Time 2025-03-14 09:33:05 [2025-03-14 09:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677948', 'tblTempUsageDetail_20' ) start [2025-03-14 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677948', 'tblTempUsageDetail_20' ) end [2025-03-14 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677948', 'tblTempVendorCDR_20' ) start [2025-03-14 09:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677948', 'tblTempVendorCDR_20' ) end [2025-03-14 09:33:18] Production.INFO: ProcessCDR(1,14677948,1,1,2) [2025-03-14 09:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677948,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677948,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677948', 'tblTempUsageDetail_20' ) start [2025-03-14 09:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677948', 'tblTempUsageDetail_20' ) end [2025-03-14 09:33:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 09:33:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 09:33:24] Production.INFO: ==27024== Releasing lock... [2025-03-14 09:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 09:33:24] Production.INFO: 39.25 MB #Memory Used# [2025-03-14 09:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 06:34:05 [end_date_ymd] => 2025-03-14 09:34:05 [RateCDR] => 1 ) [2025-03-14 09:34: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-03-14 06:34:05' and `end` < '2025-03-14 09:34: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-03-14 09:34:17] Production.INFO: count ==1455 [2025-03-14 09:34:18] Production.ERROR: pbx CDR StartTime 2025-03-14 06:34:05 - End Time 2025-03-14 09:34:05 [2025-03-14 09:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677953', 'tblTempUsageDetail_20' ) start [2025-03-14 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677953', 'tblTempUsageDetail_20' ) end [2025-03-14 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677953', 'tblTempVendorCDR_20' ) start [2025-03-14 09:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677953', 'tblTempVendorCDR_20' ) end [2025-03-14 09:34:18] Production.INFO: ProcessCDR(1,14677953,1,1,2) [2025-03-14 09:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:34:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:34:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677953', 'tblTempUsageDetail_20' ) start [2025-03-14 09:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677953', 'tblTempUsageDetail_20' ) end [2025-03-14 09:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 09:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 09:34:22] Production.INFO: ==27128== Releasing lock... [2025-03-14 09:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 09:34:22] Production.INFO: 39 MB #Memory Used# [2025-03-14 09:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 06:35:06 [end_date_ymd] => 2025-03-14 09:35:06 [RateCDR] => 1 ) [2025-03-14 09:35: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-03-14 06:35:06' and `end` < '2025-03-14 09:35: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-03-14 09:35:18] Production.INFO: count ==1470 [2025-03-14 09:35:19] Production.ERROR: pbx CDR StartTime 2025-03-14 06:35:06 - End Time 2025-03-14 09:35:06 [2025-03-14 09:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677957', 'tblTempUsageDetail_20' ) start [2025-03-14 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677957', 'tblTempUsageDetail_20' ) end [2025-03-14 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677957', 'tblTempVendorCDR_20' ) start [2025-03-14 09:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677957', 'tblTempVendorCDR_20' ) end [2025-03-14 09:35:19] Production.INFO: ProcessCDR(1,14677957,1,1,2) [2025-03-14 09:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:35:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:35:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677957', 'tblTempUsageDetail_20' ) start [2025-03-14 09:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677957', 'tblTempUsageDetail_20' ) end [2025-03-14 09:35:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 09:35:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 09:35:25] Production.INFO: ==27238== Releasing lock... [2025-03-14 09:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 09:35:25] Production.INFO: 39.25 MB #Memory Used# [2025-03-14 09:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 06:36:05 [end_date_ymd] => 2025-03-14 09:36:05 [RateCDR] => 1 ) [2025-03-14 09:36: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-03-14 06:36:05' and `end` < '2025-03-14 09:36: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-03-14 09:36:18] Production.INFO: count ==1501 [2025-03-14 09:36:18] Production.ERROR: pbx CDR StartTime 2025-03-14 06:36:05 - End Time 2025-03-14 09:36:05 [2025-03-14 09:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677963', 'tblTempUsageDetail_20' ) start [2025-03-14 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677963', 'tblTempUsageDetail_20' ) end [2025-03-14 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677963', 'tblTempVendorCDR_20' ) start [2025-03-14 09:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677963', 'tblTempVendorCDR_20' ) end [2025-03-14 09:36:18] Production.INFO: ProcessCDR(1,14677963,1,1,2) [2025-03-14 09:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677963', 'tblTempUsageDetail_20' ) start [2025-03-14 09:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677963', 'tblTempUsageDetail_20' ) end [2025-03-14 09:36:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 09:36:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 09:36:23] Production.INFO: ==27343== Releasing lock... [2025-03-14 09:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 09:36:23] Production.INFO: 39.25 MB #Memory Used# [2025-03-14 09:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 06:37:06 [end_date_ymd] => 2025-03-14 09:37:06 [RateCDR] => 1 ) [2025-03-14 09:37: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-03-14 06:37:06' and `end` < '2025-03-14 09:37: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-03-14 09:37:18] Production.INFO: count ==1528 [2025-03-14 09:37:19] Production.ERROR: pbx CDR StartTime 2025-03-14 06:37:06 - End Time 2025-03-14 09:37:06 [2025-03-14 09:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677968', 'tblTempUsageDetail_20' ) start [2025-03-14 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677968', 'tblTempUsageDetail_20' ) end [2025-03-14 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677968', 'tblTempVendorCDR_20' ) start [2025-03-14 09:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677968', 'tblTempVendorCDR_20' ) end [2025-03-14 09:37:19] Production.INFO: ProcessCDR(1,14677968,1,1,2) [2025-03-14 09:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677968', 'tblTempUsageDetail_20' ) start [2025-03-14 09:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677968', 'tblTempUsageDetail_20' ) end [2025-03-14 09:37:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 09:37:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 09:37:25] Production.INFO: ==27476== Releasing lock... [2025-03-14 09:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 09:37:25] Production.INFO: 39.75 MB #Memory Used# [2025-03-14 09:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 06:38:05 [end_date_ymd] => 2025-03-14 09:38:05 [RateCDR] => 1 ) [2025-03-14 09:38: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-03-14 06:38:05' and `end` < '2025-03-14 09:38: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-03-14 09:38:18] Production.INFO: count ==1545 [2025-03-14 09:38:18] Production.ERROR: pbx CDR StartTime 2025-03-14 06:38:05 - End Time 2025-03-14 09:38:05 [2025-03-14 09:38:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677973', 'tblTempUsageDetail_20' ) start [2025-03-14 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677973', 'tblTempUsageDetail_20' ) end [2025-03-14 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677973', 'tblTempVendorCDR_20' ) start [2025-03-14 09:38:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677973', 'tblTempVendorCDR_20' ) end [2025-03-14 09:38:18] Production.INFO: ProcessCDR(1,14677973,1,1,2) [2025-03-14 09:38:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677973', 'tblTempUsageDetail_20' ) start [2025-03-14 09:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677973', 'tblTempUsageDetail_20' ) end [2025-03-14 09:38:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 09:38:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 09:38:24] Production.INFO: ==27582== Releasing lock... [2025-03-14 09:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 09:38:24] Production.INFO: 39.75 MB #Memory Used# [2025-03-14 09:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 06:39:06 [end_date_ymd] => 2025-03-14 09:39:06 [RateCDR] => 1 ) [2025-03-14 09:39: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-03-14 06:39:06' and `end` < '2025-03-14 09:39: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-03-14 09:39:18] Production.INFO: count ==1556 [2025-03-14 09:39:19] Production.ERROR: pbx CDR StartTime 2025-03-14 06:39:06 - End Time 2025-03-14 09:39:06 [2025-03-14 09:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677978', 'tblTempUsageDetail_20' ) start [2025-03-14 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677978', 'tblTempUsageDetail_20' ) end [2025-03-14 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677978', 'tblTempVendorCDR_20' ) start [2025-03-14 09:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677978', 'tblTempVendorCDR_20' ) end [2025-03-14 09:39:19] Production.INFO: ProcessCDR(1,14677978,1,1,2) [2025-03-14 09:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677978', 'tblTempUsageDetail_20' ) start [2025-03-14 09:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677978', 'tblTempUsageDetail_20' ) end [2025-03-14 09:39:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 09:39:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 09:39:25] Production.INFO: ==27701== Releasing lock... [2025-03-14 09:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 09:39:25] Production.INFO: 39.75 MB #Memory Used# [2025-03-14 09:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 06:40:06 [end_date_ymd] => 2025-03-14 09:40:06 [RateCDR] => 1 ) [2025-03-14 09:40: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-03-14 06:40:06' and `end` < '2025-03-14 09:40: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-03-14 09:40:19] Production.INFO: count ==1594 [2025-03-14 09:40:20] Production.ERROR: pbx CDR StartTime 2025-03-14 06:40:06 - End Time 2025-03-14 09:40:06 [2025-03-14 09:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677984', 'tblTempUsageDetail_20' ) start [2025-03-14 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677984', 'tblTempUsageDetail_20' ) end [2025-03-14 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677984', 'tblTempVendorCDR_20' ) start [2025-03-14 09:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677984', 'tblTempVendorCDR_20' ) end [2025-03-14 09:40:20] Production.INFO: ProcessCDR(1,14677984,1,1,2) [2025-03-14 09:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677984,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677984,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677984', 'tblTempUsageDetail_20' ) start [2025-03-14 09:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677984', 'tblTempUsageDetail_20' ) end [2025-03-14 09:40:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 09:40:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 09:40:26] Production.INFO: ==27780== Releasing lock... [2025-03-14 09:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 09:40:26] Production.INFO: 40 MB #Memory Used# [2025-03-14 09:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 06:41:05 [end_date_ymd] => 2025-03-14 09:41:05 [RateCDR] => 1 ) [2025-03-14 09:41: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-03-14 06:41:05' and `end` < '2025-03-14 09:41: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-03-14 09:41:18] Production.INFO: count ==1690 [2025-03-14 09:41:19] Production.ERROR: pbx CDR StartTime 2025-03-14 06:41:05 - End Time 2025-03-14 09:41:05 [2025-03-14 09:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677989', 'tblTempUsageDetail_20' ) start [2025-03-14 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677989', 'tblTempUsageDetail_20' ) end [2025-03-14 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677989', 'tblTempVendorCDR_20' ) start [2025-03-14 09:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677989', 'tblTempVendorCDR_20' ) end [2025-03-14 09:41:19] Production.INFO: ProcessCDR(1,14677989,1,1,2) [2025-03-14 09:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677989,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677989,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677989', 'tblTempUsageDetail_20' ) start [2025-03-14 09:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677989', 'tblTempUsageDetail_20' ) end [2025-03-14 09:41:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 09:41:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 09:41:24] Production.INFO: ==27859== Releasing lock... [2025-03-14 09:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 09:41:24] Production.INFO: 40.75 MB #Memory Used# [2025-03-14 09:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 06:42:05 [end_date_ymd] => 2025-03-14 09:42:05 [RateCDR] => 1 ) [2025-03-14 09:42: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-03-14 06:42:05' and `end` < '2025-03-14 09:42: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-03-14 09:42:18] Production.INFO: count ==1705 [2025-03-14 09:42:19] Production.ERROR: pbx CDR StartTime 2025-03-14 06:42:05 - End Time 2025-03-14 09:42:05 [2025-03-14 09:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677994', 'tblTempUsageDetail_20' ) start [2025-03-14 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677994', 'tblTempUsageDetail_20' ) end [2025-03-14 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677994', 'tblTempVendorCDR_20' ) start [2025-03-14 09:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677994', 'tblTempVendorCDR_20' ) end [2025-03-14 09:42:19] Production.INFO: ProcessCDR(1,14677994,1,1,2) [2025-03-14 09:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677994,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677994,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677994', 'tblTempUsageDetail_20' ) start [2025-03-14 09:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677994', 'tblTempUsageDetail_20' ) end [2025-03-14 09:42:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 09:42:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 09:42:24] Production.INFO: ==27940== Releasing lock... [2025-03-14 09:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 09:42:24] Production.INFO: 41 MB #Memory Used# [2025-03-14 09:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 06:43:06 [end_date_ymd] => 2025-03-14 09:43:06 [RateCDR] => 1 ) [2025-03-14 09:43: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-03-14 06:43:06' and `end` < '2025-03-14 09:43: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-03-14 09:43:18] Production.INFO: count ==1726 [2025-03-14 09:43:19] Production.ERROR: pbx CDR StartTime 2025-03-14 06:43:06 - End Time 2025-03-14 09:43:06 [2025-03-14 09:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677999', 'tblTempUsageDetail_20' ) start [2025-03-14 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14677999', 'tblTempUsageDetail_20' ) end [2025-03-14 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677999', 'tblTempVendorCDR_20' ) start [2025-03-14 09:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14677999', 'tblTempVendorCDR_20' ) end [2025-03-14 09:43:19] Production.INFO: ProcessCDR(1,14677999,1,1,2) [2025-03-14 09:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14677999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14677999,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14677999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14677999,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677999', 'tblTempUsageDetail_20' ) start [2025-03-14 09:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14677999', 'tblTempUsageDetail_20' ) end [2025-03-14 09:43:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 09:43:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 09:43:25] Production.INFO: ==28020== Releasing lock... [2025-03-14 09:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 09:43:25] Production.INFO: 41.5 MB #Memory Used# [2025-03-14 09:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 06:44:05 [end_date_ymd] => 2025-03-14 09:44:05 [RateCDR] => 1 ) [2025-03-14 09:44: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-03-14 06:44:05' and `end` < '2025-03-14 09:44: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-03-14 09:44:18] Production.INFO: count ==1749 [2025-03-14 09:44:18] Production.ERROR: pbx CDR StartTime 2025-03-14 06:44:05 - End Time 2025-03-14 09:44:05 [2025-03-14 09:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 09:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678004', 'tblTempUsageDetail_20' ) start [2025-03-14 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678004', 'tblTempUsageDetail_20' ) end [2025-03-14 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678004', 'tblTempVendorCDR_20' ) start [2025-03-14 09:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678004', 'tblTempVendorCDR_20' ) end [2025-03-14 09:44:19] Production.INFO: ProcessCDR(1,14678004,1,1,2) [2025-03-14 09:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678004', 'tblTempUsageDetail_20' ) start [2025-03-14 09:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678004', 'tblTempUsageDetail_20' ) end [2025-03-14 09:44:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 09:44:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 09:44:24] Production.INFO: ==28092== Releasing lock... [2025-03-14 09:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 09:44:24] Production.INFO: 41.25 MB #Memory Used# [2025-03-14 09:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 06:45:06 [end_date_ymd] => 2025-03-14 09:45:06 [RateCDR] => 1 ) [2025-03-14 09:45: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-03-14 06:45:06' and `end` < '2025-03-14 09:45: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-03-14 09:45:18] Production.INFO: count ==1789 [2025-03-14 09:45:19] Production.ERROR: pbx CDR StartTime 2025-03-14 06:45:06 - End Time 2025-03-14 09:45:06 [2025-03-14 09:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678009', 'tblTempUsageDetail_20' ) start [2025-03-14 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678009', 'tblTempUsageDetail_20' ) end [2025-03-14 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678009', 'tblTempVendorCDR_20' ) start [2025-03-14 09:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678009', 'tblTempVendorCDR_20' ) end [2025-03-14 09:45:19] Production.INFO: ProcessCDR(1,14678009,1,1,2) [2025-03-14 09:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:45:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:45:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678009', 'tblTempUsageDetail_20' ) start [2025-03-14 09:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678009', 'tblTempUsageDetail_20' ) end [2025-03-14 09:45:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 09:45:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 09:45:25] Production.INFO: ==28170== Releasing lock... [2025-03-14 09:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 09:45:25] Production.INFO: 41.5 MB #Memory Used# [2025-03-14 09:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 06:46:05 [end_date_ymd] => 2025-03-14 09:46:05 [RateCDR] => 1 ) [2025-03-14 09:46: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-03-14 06:46:05' and `end` < '2025-03-14 09:46: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-03-14 09:46:18] Production.INFO: count ==1839 [2025-03-14 09:46:19] Production.ERROR: pbx CDR StartTime 2025-03-14 06:46:05 - End Time 2025-03-14 09:46:05 [2025-03-14 09:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678014', 'tblTempUsageDetail_20' ) start [2025-03-14 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678014', 'tblTempUsageDetail_20' ) end [2025-03-14 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678014', 'tblTempVendorCDR_20' ) start [2025-03-14 09:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678014', 'tblTempVendorCDR_20' ) end [2025-03-14 09:46:19] Production.INFO: ProcessCDR(1,14678014,1,1,2) [2025-03-14 09:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:46:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:46:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678014', 'tblTempUsageDetail_20' ) start [2025-03-14 09:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678014', 'tblTempUsageDetail_20' ) end [2025-03-14 09:46:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 09:46:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 09:46:25] Production.INFO: ==28249== Releasing lock... [2025-03-14 09:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 09:46:25] Production.INFO: 41.75 MB #Memory Used# [2025-03-14 09:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 06:47:06 [end_date_ymd] => 2025-03-14 09:47:06 [RateCDR] => 1 ) [2025-03-14 09:47: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-03-14 06:47:06' and `end` < '2025-03-14 09:47: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-03-14 09:47:18] Production.INFO: count ==1861 [2025-03-14 09:47:19] Production.ERROR: pbx CDR StartTime 2025-03-14 06:47:06 - End Time 2025-03-14 09:47:06 [2025-03-14 09:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678019', 'tblTempUsageDetail_20' ) start [2025-03-14 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678019', 'tblTempUsageDetail_20' ) end [2025-03-14 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678019', 'tblTempVendorCDR_20' ) start [2025-03-14 09:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678019', 'tblTempVendorCDR_20' ) end [2025-03-14 09:47:19] Production.INFO: ProcessCDR(1,14678019,1,1,2) [2025-03-14 09:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678019', 'tblTempUsageDetail_20' ) start [2025-03-14 09:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678019', 'tblTempUsageDetail_20' ) end [2025-03-14 09:47:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 09:47:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 09:47:25] Production.INFO: ==28319== Releasing lock... [2025-03-14 09:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 09:47:25] Production.INFO: 42 MB #Memory Used# [2025-03-14 09:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 06:48:05 [end_date_ymd] => 2025-03-14 09:48:05 [RateCDR] => 1 ) [2025-03-14 09:48: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-03-14 06:48:05' and `end` < '2025-03-14 09:48: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-03-14 09:48:18] Production.INFO: count ==1950 [2025-03-14 09:48:19] Production.ERROR: pbx CDR StartTime 2025-03-14 06:48:05 - End Time 2025-03-14 09:48:05 [2025-03-14 09:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678024', 'tblTempUsageDetail_20' ) start [2025-03-14 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678024', 'tblTempUsageDetail_20' ) end [2025-03-14 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678024', 'tblTempVendorCDR_20' ) start [2025-03-14 09:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678024', 'tblTempVendorCDR_20' ) end [2025-03-14 09:48:19] Production.INFO: ProcessCDR(1,14678024,1,1,2) [2025-03-14 09:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678024', 'tblTempUsageDetail_20' ) start [2025-03-14 09:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678024', 'tblTempUsageDetail_20' ) end [2025-03-14 09:48:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 09:48:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 09:48:25] Production.INFO: ==28400== Releasing lock... [2025-03-14 09:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 09:48:25] Production.INFO: 42.75 MB #Memory Used# [2025-03-14 09:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 06:49:06 [end_date_ymd] => 2025-03-14 09:49:06 [RateCDR] => 1 ) [2025-03-14 09:49: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-03-14 06:49:06' and `end` < '2025-03-14 09:49: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-03-14 09:49:19] Production.INFO: count ==1992 [2025-03-14 09:49:19] Production.ERROR: pbx CDR StartTime 2025-03-14 06:49:06 - End Time 2025-03-14 09:49:06 [2025-03-14 09:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 09:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678029', 'tblTempUsageDetail_20' ) start [2025-03-14 09:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678029', 'tblTempUsageDetail_20' ) end [2025-03-14 09:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678029', 'tblTempVendorCDR_20' ) start [2025-03-14 09:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678029', 'tblTempVendorCDR_20' ) end [2025-03-14 09:49:20] Production.INFO: ProcessCDR(1,14678029,1,1,2) [2025-03-14 09:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678029', 'tblTempUsageDetail_20' ) start [2025-03-14 09:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678029', 'tblTempUsageDetail_20' ) end [2025-03-14 09:49:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 09:49:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 09:49:25] Production.INFO: ==28486== Releasing lock... [2025-03-14 09:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 09:49:25] Production.INFO: 43 MB #Memory Used# [2025-03-14 09:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 06:50:06 [end_date_ymd] => 2025-03-14 09:50:06 [RateCDR] => 1 ) [2025-03-14 09:50: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-03-14 06:50:06' and `end` < '2025-03-14 09:50: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-03-14 09:50:19] Production.INFO: count ==2022 [2025-03-14 09:50:20] Production.ERROR: pbx CDR StartTime 2025-03-14 06:50:06 - End Time 2025-03-14 09:50:06 [2025-03-14 09:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678035', 'tblTempUsageDetail_20' ) start [2025-03-14 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678035', 'tblTempUsageDetail_20' ) end [2025-03-14 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678035', 'tblTempVendorCDR_20' ) start [2025-03-14 09:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678035', 'tblTempVendorCDR_20' ) end [2025-03-14 09:50:20] Production.INFO: ProcessCDR(1,14678035,1,1,2) [2025-03-14 09:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678035,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678035,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678035', 'tblTempUsageDetail_20' ) start [2025-03-14 09:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678035', 'tblTempUsageDetail_20' ) end [2025-03-14 09:50:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 09:50:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 09:50:26] Production.INFO: ==28558== Releasing lock... [2025-03-14 09:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 09:50:26] Production.INFO: 43.25 MB #Memory Used# [2025-03-14 09:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 06:51:06 [end_date_ymd] => 2025-03-14 09:51:06 [RateCDR] => 1 ) [2025-03-14 09:51: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-03-14 06:51:06' and `end` < '2025-03-14 09:51: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-03-14 09:51:19] Production.INFO: count ==2128 [2025-03-14 09:51:19] Production.ERROR: pbx CDR StartTime 2025-03-14 06:51:06 - End Time 2025-03-14 09:51:06 [2025-03-14 09:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678040', 'tblTempUsageDetail_20' ) start [2025-03-14 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678040', 'tblTempUsageDetail_20' ) end [2025-03-14 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678040', 'tblTempVendorCDR_20' ) start [2025-03-14 09:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678040', 'tblTempVendorCDR_20' ) end [2025-03-14 09:51:19] Production.INFO: ProcessCDR(1,14678040,1,1,2) [2025-03-14 09:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678040,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678040,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678040', 'tblTempUsageDetail_20' ) start [2025-03-14 09:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678040', 'tblTempUsageDetail_20' ) end [2025-03-14 09:51:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 09:51:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 09:51:25] Production.INFO: ==28636== Releasing lock... [2025-03-14 09:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 09:51:25] Production.INFO: 44 MB #Memory Used# [2025-03-14 09:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 06:52:05 [end_date_ymd] => 2025-03-14 09:52:05 [RateCDR] => 1 ) [2025-03-14 09:52: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-03-14 06:52:05' and `end` < '2025-03-14 09:52: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-03-14 09:52:18] Production.INFO: count ==2147 [2025-03-14 09:52:19] Production.ERROR: pbx CDR StartTime 2025-03-14 06:52:05 - End Time 2025-03-14 09:52:05 [2025-03-14 09:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678045', 'tblTempUsageDetail_20' ) start [2025-03-14 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678045', 'tblTempUsageDetail_20' ) end [2025-03-14 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678045', 'tblTempVendorCDR_20' ) start [2025-03-14 09:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678045', 'tblTempVendorCDR_20' ) end [2025-03-14 09:52:19] Production.INFO: ProcessCDR(1,14678045,1,1,2) [2025-03-14 09:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:52:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678045,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:52:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678045,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678045', 'tblTempUsageDetail_20' ) start [2025-03-14 09:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678045', 'tblTempUsageDetail_20' ) end [2025-03-14 09:52:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 09:52:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 09:52:25] Production.INFO: ==28714== Releasing lock... [2025-03-14 09:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 09:52:25] Production.INFO: 44.25 MB #Memory Used# [2025-03-14 09:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 06:53:05 [end_date_ymd] => 2025-03-14 09:53:05 [RateCDR] => 1 ) [2025-03-14 09:53: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-03-14 06:53:05' and `end` < '2025-03-14 09:53: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-03-14 09:53:18] Production.INFO: count ==2152 [2025-03-14 09:53:19] Production.ERROR: pbx CDR StartTime 2025-03-14 06:53:05 - End Time 2025-03-14 09:53:05 [2025-03-14 09:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678050', 'tblTempUsageDetail_20' ) start [2025-03-14 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678050', 'tblTempUsageDetail_20' ) end [2025-03-14 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678050', 'tblTempVendorCDR_20' ) start [2025-03-14 09:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678050', 'tblTempVendorCDR_20' ) end [2025-03-14 09:53:19] Production.INFO: ProcessCDR(1,14678050,1,1,2) [2025-03-14 09:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678050,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678050,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678050', 'tblTempUsageDetail_20' ) start [2025-03-14 09:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678050', 'tblTempUsageDetail_20' ) end [2025-03-14 09:53:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 09:53:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 09:53:25] Production.INFO: ==28788== Releasing lock... [2025-03-14 09:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 09:53:25] Production.INFO: 44.5 MB #Memory Used# [2025-03-14 09:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 06:54:05 [end_date_ymd] => 2025-03-14 09:54:05 [RateCDR] => 1 ) [2025-03-14 09:54: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-03-14 06:54:05' and `end` < '2025-03-14 09:54: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-03-14 09:54:18] Production.INFO: count ==2175 [2025-03-14 09:54:19] Production.ERROR: pbx CDR StartTime 2025-03-14 06:54:05 - End Time 2025-03-14 09:54:05 [2025-03-14 09:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678055', 'tblTempUsageDetail_20' ) start [2025-03-14 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678055', 'tblTempUsageDetail_20' ) end [2025-03-14 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678055', 'tblTempVendorCDR_20' ) start [2025-03-14 09:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678055', 'tblTempVendorCDR_20' ) end [2025-03-14 09:54:19] Production.INFO: ProcessCDR(1,14678055,1,1,2) [2025-03-14 09:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:54:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:54:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678055', 'tblTempUsageDetail_20' ) start [2025-03-14 09:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678055', 'tblTempUsageDetail_20' ) end [2025-03-14 09:54:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 09:54:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 09:54:25] Production.INFO: ==28862== Releasing lock... [2025-03-14 09:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 09:54:25] Production.INFO: 44.5 MB #Memory Used# [2025-03-14 09:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 06:55:06 [end_date_ymd] => 2025-03-14 09:55:06 [RateCDR] => 1 ) [2025-03-14 09:55: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-03-14 06:55:06' and `end` < '2025-03-14 09:55: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-03-14 09:55:18] Production.INFO: count ==2185 [2025-03-14 09:55:19] Production.ERROR: pbx CDR StartTime 2025-03-14 06:55:06 - End Time 2025-03-14 09:55:06 [2025-03-14 09:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678060', 'tblTempUsageDetail_20' ) start [2025-03-14 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678060', 'tblTempUsageDetail_20' ) end [2025-03-14 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678060', 'tblTempVendorCDR_20' ) start [2025-03-14 09:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678060', 'tblTempVendorCDR_20' ) end [2025-03-14 09:55:19] Production.INFO: ProcessCDR(1,14678060,1,1,2) [2025-03-14 09:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678060', 'tblTempUsageDetail_20' ) start [2025-03-14 09:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678060', 'tblTempUsageDetail_20' ) end [2025-03-14 09:55:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 09:55:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 09:55:25] Production.INFO: ==28976== Releasing lock... [2025-03-14 09:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 09:55:25] Production.INFO: 44.5 MB #Memory Used# [2025-03-14 09:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 06:56:05 [end_date_ymd] => 2025-03-14 09:56:05 [RateCDR] => 1 ) [2025-03-14 09:56: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-03-14 06:56:05' and `end` < '2025-03-14 09:56: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-03-14 09:56:18] Production.INFO: count ==2219 [2025-03-14 09:56:19] Production.ERROR: pbx CDR StartTime 2025-03-14 06:56:05 - End Time 2025-03-14 09:56:05 [2025-03-14 09:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678065', 'tblTempUsageDetail_20' ) start [2025-03-14 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678065', 'tblTempUsageDetail_20' ) end [2025-03-14 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678065', 'tblTempVendorCDR_20' ) start [2025-03-14 09:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678065', 'tblTempVendorCDR_20' ) end [2025-03-14 09:56:19] Production.INFO: ProcessCDR(1,14678065,1,1,2) [2025-03-14 09:56:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678065', 'tblTempUsageDetail_20' ) start [2025-03-14 09:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678065', 'tblTempUsageDetail_20' ) end [2025-03-14 09:56:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 09:56:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 09:56:25] Production.INFO: ==29049== Releasing lock... [2025-03-14 09:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 09:56:25] Production.INFO: 44.75 MB #Memory Used# [2025-03-14 09:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 06:57:06 [end_date_ymd] => 2025-03-14 09:57:06 [RateCDR] => 1 ) [2025-03-14 09:57: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-03-14 06:57:06' and `end` < '2025-03-14 09:57: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-03-14 09:57:18] Production.INFO: count ==2231 [2025-03-14 09:57:19] Production.ERROR: pbx CDR StartTime 2025-03-14 06:57:06 - End Time 2025-03-14 09:57:06 [2025-03-14 09:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 09:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678070', 'tblTempUsageDetail_20' ) start [2025-03-14 09:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678070', 'tblTempUsageDetail_20' ) end [2025-03-14 09:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678070', 'tblTempVendorCDR_20' ) start [2025-03-14 09:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678070', 'tblTempVendorCDR_20' ) end [2025-03-14 09:57:20] Production.INFO: ProcessCDR(1,14678070,1,1,2) [2025-03-14 09:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678070', 'tblTempUsageDetail_20' ) start [2025-03-14 09:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678070', 'tblTempUsageDetail_20' ) end [2025-03-14 09:57:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 09:57:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 09:57:25] Production.INFO: ==29127== Releasing lock... [2025-03-14 09:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 09:57:25] Production.INFO: 44.75 MB #Memory Used# [2025-03-14 09:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 06:58:05 [end_date_ymd] => 2025-03-14 09:58:05 [RateCDR] => 1 ) [2025-03-14 09:58: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-03-14 06:58:05' and `end` < '2025-03-14 09:58: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-03-14 09:58:18] Production.INFO: count ==2236 [2025-03-14 09:58:19] Production.ERROR: pbx CDR StartTime 2025-03-14 06:58:05 - End Time 2025-03-14 09:58:05 [2025-03-14 09:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678075', 'tblTempUsageDetail_20' ) start [2025-03-14 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678075', 'tblTempUsageDetail_20' ) end [2025-03-14 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678075', 'tblTempVendorCDR_20' ) start [2025-03-14 09:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678075', 'tblTempVendorCDR_20' ) end [2025-03-14 09:58:19] Production.INFO: ProcessCDR(1,14678075,1,1,2) [2025-03-14 09:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678075', 'tblTempUsageDetail_20' ) start [2025-03-14 09:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678075', 'tblTempUsageDetail_20' ) end [2025-03-14 09:58:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 09:58:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 09:58:25] Production.INFO: ==29200== Releasing lock... [2025-03-14 09:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 09:58:25] Production.INFO: 44.75 MB #Memory Used# [2025-03-14 09:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 06:59:06 [end_date_ymd] => 2025-03-14 09:59:06 [RateCDR] => 1 ) [2025-03-14 09:59: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-03-14 06:59:06' and `end` < '2025-03-14 09:59: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-03-14 09:59:19] Production.INFO: count ==2246 [2025-03-14 09:59:20] Production.ERROR: pbx CDR StartTime 2025-03-14 06:59:06 - End Time 2025-03-14 09:59:06 [2025-03-14 09:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 09:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678080', 'tblTempUsageDetail_20' ) start [2025-03-14 09:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678080', 'tblTempUsageDetail_20' ) end [2025-03-14 09:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678080', 'tblTempVendorCDR_20' ) start [2025-03-14 09:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678080', 'tblTempVendorCDR_20' ) end [2025-03-14 09:59:20] Production.INFO: ProcessCDR(1,14678080,1,1,2) [2025-03-14 09:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 09:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 09:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678080', 'tblTempUsageDetail_20' ) start [2025-03-14 09:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678080', 'tblTempUsageDetail_20' ) end [2025-03-14 09:59:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 09:59:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 09:59:25] Production.INFO: ==29274== Releasing lock... [2025-03-14 09:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 09:59:25] Production.INFO: 45 MB #Memory Used# [2025-03-14 10:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 07:00:06 [end_date_ymd] => 2025-03-14 10:00:06 [RateCDR] => 1 ) [2025-03-14 10:00: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-03-14 07:00:06' and `end` < '2025-03-14 10:00: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-03-14 10:00:19] Production.INFO: count ==2262 [2025-03-14 10:00:20] Production.ERROR: pbx CDR StartTime 2025-03-14 07:00:06 - End Time 2025-03-14 10:00:06 [2025-03-14 10:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678086', 'tblTempUsageDetail_20' ) start [2025-03-14 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678086', 'tblTempUsageDetail_20' ) end [2025-03-14 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678086', 'tblTempVendorCDR_20' ) start [2025-03-14 10:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678086', 'tblTempVendorCDR_20' ) end [2025-03-14 10:00:20] Production.INFO: ProcessCDR(1,14678086,1,1,2) [2025-03-14 10:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678086,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678086,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678086', 'tblTempUsageDetail_20' ) start [2025-03-14 10:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678086', 'tblTempUsageDetail_20' ) end [2025-03-14 10:00:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 10:00:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 10:00:26] Production.INFO: ==29353== Releasing lock... [2025-03-14 10:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 10:00:26] Production.INFO: 45.25 MB #Memory Used# [2025-03-14 10:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 07:01:05 [end_date_ymd] => 2025-03-14 10:01:05 [RateCDR] => 1 ) [2025-03-14 10:01: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-03-14 07:01:05' and `end` < '2025-03-14 10:01: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-03-14 10:01:18] Production.INFO: count ==2345 [2025-03-14 10:01:19] Production.ERROR: pbx CDR StartTime 2025-03-14 07:01:05 - End Time 2025-03-14 10:01:05 [2025-03-14 10:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678091', 'tblTempUsageDetail_20' ) start [2025-03-14 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678091', 'tblTempUsageDetail_20' ) end [2025-03-14 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678091', 'tblTempVendorCDR_20' ) start [2025-03-14 10:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678091', 'tblTempVendorCDR_20' ) end [2025-03-14 10:01:19] Production.INFO: ProcessCDR(1,14678091,1,1,2) [2025-03-14 10:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:01:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678091,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:01:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:01:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678091,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678091', 'tblTempUsageDetail_20' ) start [2025-03-14 10:01:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678091', 'tblTempUsageDetail_20' ) end [2025-03-14 10:01:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 10:01:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 10:01:25] Production.INFO: ==29442== Releasing lock... [2025-03-14 10:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 10:01:25] Production.INFO: 45.75 MB #Memory Used# [2025-03-14 10:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 07:02:06 [end_date_ymd] => 2025-03-14 10:02:06 [RateCDR] => 1 ) [2025-03-14 10:02: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-03-14 07:02:06' and `end` < '2025-03-14 10:02: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-03-14 10:02:19] Production.INFO: count ==2353 [2025-03-14 10:02:20] Production.ERROR: pbx CDR StartTime 2025-03-14 07:02:06 - End Time 2025-03-14 10:02:06 [2025-03-14 10:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 10:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678096', 'tblTempUsageDetail_20' ) start [2025-03-14 10:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678096', 'tblTempUsageDetail_20' ) end [2025-03-14 10:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678096', 'tblTempVendorCDR_20' ) start [2025-03-14 10:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678096', 'tblTempVendorCDR_20' ) end [2025-03-14 10:02:20] Production.INFO: ProcessCDR(1,14678096,1,1,2) [2025-03-14 10:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678096,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678096,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678096', 'tblTempUsageDetail_20' ) start [2025-03-14 10:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678096', 'tblTempUsageDetail_20' ) end [2025-03-14 10:02:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 10:02:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 10:02:25] Production.INFO: ==29517== Releasing lock... [2025-03-14 10:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 10:02:25] Production.INFO: 45.75 MB #Memory Used# [2025-03-14 10:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 07:03:05 [end_date_ymd] => 2025-03-14 10:03:05 [RateCDR] => 1 ) [2025-03-14 10:03: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-03-14 07:03:05' and `end` < '2025-03-14 10:03: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-03-14 10:03:17] Production.INFO: count ==2374 [2025-03-14 10:03:18] Production.ERROR: pbx CDR StartTime 2025-03-14 07:03:05 - End Time 2025-03-14 10:03:05 [2025-03-14 10:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 10:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678101', 'tblTempUsageDetail_20' ) start [2025-03-14 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678101', 'tblTempUsageDetail_20' ) end [2025-03-14 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678101', 'tblTempVendorCDR_20' ) start [2025-03-14 10:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678101', 'tblTempVendorCDR_20' ) end [2025-03-14 10:03:19] Production.INFO: ProcessCDR(1,14678101,1,1,2) [2025-03-14 10:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678101,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678101,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678101', 'tblTempUsageDetail_20' ) start [2025-03-14 10:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678101', 'tblTempUsageDetail_20' ) end [2025-03-14 10:03:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 10:03:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 10:03:24] Production.INFO: ==29596== Releasing lock... [2025-03-14 10:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 10:03:24] Production.INFO: 45.75 MB #Memory Used# [2025-03-14 10:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 07:04:06 [end_date_ymd] => 2025-03-14 10:04:06 [RateCDR] => 1 ) [2025-03-14 10:04: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-03-14 07:04:06' and `end` < '2025-03-14 10:04: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-03-14 10:04:18] Production.INFO: count ==2394 [2025-03-14 10:04:19] Production.ERROR: pbx CDR StartTime 2025-03-14 07:04:06 - End Time 2025-03-14 10:04:06 [2025-03-14 10:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678106', 'tblTempUsageDetail_20' ) start [2025-03-14 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678106', 'tblTempUsageDetail_20' ) end [2025-03-14 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678106', 'tblTempVendorCDR_20' ) start [2025-03-14 10:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678106', 'tblTempVendorCDR_20' ) end [2025-03-14 10:04:19] Production.INFO: ProcessCDR(1,14678106,1,1,2) [2025-03-14 10:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678106,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678106,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678106', 'tblTempUsageDetail_20' ) start [2025-03-14 10:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678106', 'tblTempUsageDetail_20' ) end [2025-03-14 10:04:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 10:04:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 10:04:25] Production.INFO: ==29675== Releasing lock... [2025-03-14 10:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 10:04:25] Production.INFO: 46 MB #Memory Used# [2025-03-14 10:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 07:05:05 [end_date_ymd] => 2025-03-14 10:05:05 [RateCDR] => 1 ) [2025-03-14 10:05: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-03-14 07:05:05' and `end` < '2025-03-14 10:05: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-03-14 10:05:18] Production.INFO: count ==2427 [2025-03-14 10:05:19] Production.ERROR: pbx CDR StartTime 2025-03-14 07:05:05 - End Time 2025-03-14 10:05:05 [2025-03-14 10:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678111', 'tblTempUsageDetail_20' ) start [2025-03-14 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678111', 'tblTempUsageDetail_20' ) end [2025-03-14 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678111', 'tblTempVendorCDR_20' ) start [2025-03-14 10:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678111', 'tblTempVendorCDR_20' ) end [2025-03-14 10:05:19] Production.INFO: ProcessCDR(1,14678111,1,1,2) [2025-03-14 10:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678111', 'tblTempUsageDetail_20' ) start [2025-03-14 10:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678111', 'tblTempUsageDetail_20' ) end [2025-03-14 10:05:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 10:05:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 10:05:25] Production.INFO: ==29747== Releasing lock... [2025-03-14 10:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 10:05:25] Production.INFO: 46.25 MB #Memory Used# [2025-03-14 10:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 07:06:06 [end_date_ymd] => 2025-03-14 10:06:06 [RateCDR] => 1 ) [2025-03-14 10:06: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-03-14 07:06:06' and `end` < '2025-03-14 10:06: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-03-14 10:06:19] Production.INFO: count ==2464 [2025-03-14 10:06:20] Production.ERROR: pbx CDR StartTime 2025-03-14 07:06:06 - End Time 2025-03-14 10:06:06 [2025-03-14 10:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 10:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678116', 'tblTempUsageDetail_20' ) start [2025-03-14 10:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678116', 'tblTempUsageDetail_20' ) end [2025-03-14 10:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678116', 'tblTempVendorCDR_20' ) start [2025-03-14 10:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678116', 'tblTempVendorCDR_20' ) end [2025-03-14 10:06:20] Production.INFO: ProcessCDR(1,14678116,1,1,2) [2025-03-14 10:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678116', 'tblTempUsageDetail_20' ) start [2025-03-14 10:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678116', 'tblTempUsageDetail_20' ) end [2025-03-14 10:06:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 10:06:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 10:06:26] Production.INFO: ==29825== Releasing lock... [2025-03-14 10:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 10:06:26] Production.INFO: 46.75 MB #Memory Used# [2025-03-14 10:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 07:07:05 [end_date_ymd] => 2025-03-14 10:07:05 [RateCDR] => 1 ) [2025-03-14 10:07: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-03-14 07:07:05' and `end` < '2025-03-14 10:07: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-03-14 10:07:18] Production.INFO: count ==2504 [2025-03-14 10:07:20] Production.ERROR: pbx CDR StartTime 2025-03-14 07:07:05 - End Time 2025-03-14 10:07:05 [2025-03-14 10:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 10:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678121', 'tblTempUsageDetail_20' ) start [2025-03-14 10:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678121', 'tblTempUsageDetail_20' ) end [2025-03-14 10:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678121', 'tblTempVendorCDR_20' ) start [2025-03-14 10:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678121', 'tblTempVendorCDR_20' ) end [2025-03-14 10:07:21] Production.INFO: ProcessCDR(1,14678121,1,1,2) [2025-03-14 10:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678121', 'tblTempUsageDetail_20' ) start [2025-03-14 10:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678121', 'tblTempUsageDetail_20' ) end [2025-03-14 10:07:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 10:07:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 10:07:26] Production.INFO: ==29904== Releasing lock... [2025-03-14 10:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 10:07:26] Production.INFO: 46.75 MB #Memory Used# [2025-03-14 10:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 07:08:06 [end_date_ymd] => 2025-03-14 10:08:06 [RateCDR] => 1 ) [2025-03-14 10:08: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-03-14 07:08:06' and `end` < '2025-03-14 10:08: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-03-14 10:08:19] Production.INFO: count ==2511 [2025-03-14 10:08:20] Production.ERROR: pbx CDR StartTime 2025-03-14 07:08:06 - End Time 2025-03-14 10:08:06 [2025-03-14 10:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 10:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678126', 'tblTempUsageDetail_20' ) start [2025-03-14 10:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678126', 'tblTempUsageDetail_20' ) end [2025-03-14 10:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678126', 'tblTempVendorCDR_20' ) start [2025-03-14 10:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678126', 'tblTempVendorCDR_20' ) end [2025-03-14 10:08:20] Production.INFO: ProcessCDR(1,14678126,1,1,2) [2025-03-14 10:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:08:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:08:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678126', 'tblTempUsageDetail_20' ) start [2025-03-14 10:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678126', 'tblTempUsageDetail_20' ) end [2025-03-14 10:08:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 10:08:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 10:08:26] Production.INFO: ==29982== Releasing lock... [2025-03-14 10:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 10:08:26] Production.INFO: 47 MB #Memory Used# [2025-03-14 10:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 07:09:05 [end_date_ymd] => 2025-03-14 10:09:05 [RateCDR] => 1 ) [2025-03-14 10:09: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-03-14 07:09:05' and `end` < '2025-03-14 10:09: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-03-14 10:09:18] Production.INFO: count ==2530 [2025-03-14 10:09:19] Production.ERROR: pbx CDR StartTime 2025-03-14 07:09:05 - End Time 2025-03-14 10:09:05 [2025-03-14 10:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678131', 'tblTempUsageDetail_20' ) start [2025-03-14 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678131', 'tblTempUsageDetail_20' ) end [2025-03-14 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678131', 'tblTempVendorCDR_20' ) start [2025-03-14 10:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678131', 'tblTempVendorCDR_20' ) end [2025-03-14 10:09:19] Production.INFO: ProcessCDR(1,14678131,1,1,2) [2025-03-14 10:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:09:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:09:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678131', 'tblTempUsageDetail_20' ) start [2025-03-14 10:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678131', 'tblTempUsageDetail_20' ) end [2025-03-14 10:09:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 10:09:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 10:09:25] Production.INFO: ==30068== Releasing lock... [2025-03-14 10:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 10:09:25] Production.INFO: 47 MB #Memory Used# [2025-03-14 10:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 07:10:07 [end_date_ymd] => 2025-03-14 10:10:07 [RateCDR] => 1 ) [2025-03-14 10:10:07] 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-03-14 07:10:07' and `end` < '2025-03-14 10:10:07' 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-03-14 10:10:19] Production.INFO: count ==2553 [2025-03-14 10:10:20] Production.ERROR: pbx CDR StartTime 2025-03-14 07:10:07 - End Time 2025-03-14 10:10:07 [2025-03-14 10:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678137', 'tblTempUsageDetail_20' ) start [2025-03-14 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678137', 'tblTempUsageDetail_20' ) end [2025-03-14 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678137', 'tblTempVendorCDR_20' ) start [2025-03-14 10:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678137', 'tblTempVendorCDR_20' ) end [2025-03-14 10:10:20] Production.INFO: ProcessCDR(1,14678137,1,1,2) [2025-03-14 10:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678137,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678137,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678137', 'tblTempUsageDetail_20' ) start [2025-03-14 10:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678137', 'tblTempUsageDetail_20' ) end [2025-03-14 10:10:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 10:10:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 10:10:26] Production.INFO: ==30189== Releasing lock... [2025-03-14 10:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 10:10:26] Production.INFO: 47.25 MB #Memory Used# [2025-03-14 10:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 07:11:05 [end_date_ymd] => 2025-03-14 10:11:05 [RateCDR] => 1 ) [2025-03-14 10:11: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-03-14 07:11:05' and `end` < '2025-03-14 10:11: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-03-14 10:11:18] Production.INFO: count ==2637 [2025-03-14 10:11:19] Production.ERROR: pbx CDR StartTime 2025-03-14 07:11:05 - End Time 2025-03-14 10:11:05 [2025-03-14 10:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678142', 'tblTempUsageDetail_20' ) start [2025-03-14 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678142', 'tblTempUsageDetail_20' ) end [2025-03-14 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678142', 'tblTempVendorCDR_20' ) start [2025-03-14 10:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678142', 'tblTempVendorCDR_20' ) end [2025-03-14 10:11:19] Production.INFO: ProcessCDR(1,14678142,1,1,2) [2025-03-14 10:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678142,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678142,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678142', 'tblTempUsageDetail_20' ) start [2025-03-14 10:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678142', 'tblTempUsageDetail_20' ) end [2025-03-14 10:11:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 10:11:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 10:11:25] Production.INFO: ==30264== Releasing lock... [2025-03-14 10:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 10:11:25] Production.INFO: 47.5 MB #Memory Used# [2025-03-14 10:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 07:12:06 [end_date_ymd] => 2025-03-14 10:12:06 [RateCDR] => 1 ) [2025-03-14 10:12: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-03-14 07:12:06' and `end` < '2025-03-14 10:12: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-03-14 10:12:18] Production.INFO: count ==2646 [2025-03-14 10:12:20] Production.ERROR: pbx CDR StartTime 2025-03-14 07:12:06 - End Time 2025-03-14 10:12:06 [2025-03-14 10:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678147', 'tblTempUsageDetail_20' ) start [2025-03-14 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678147', 'tblTempUsageDetail_20' ) end [2025-03-14 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678147', 'tblTempVendorCDR_20' ) start [2025-03-14 10:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678147', 'tblTempVendorCDR_20' ) end [2025-03-14 10:12:20] Production.INFO: ProcessCDR(1,14678147,1,1,2) [2025-03-14 10:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:12:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678147,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:12:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678147,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678147', 'tblTempUsageDetail_20' ) start [2025-03-14 10:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678147', 'tblTempUsageDetail_20' ) end [2025-03-14 10:12:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 10:12:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 10:12:25] Production.INFO: ==30340== Releasing lock... [2025-03-14 10:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 10:12:25] Production.INFO: 48 MB #Memory Used# [2025-03-14 10:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 07:13:05 [end_date_ymd] => 2025-03-14 10:13:05 [RateCDR] => 1 ) [2025-03-14 10:13: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-03-14 07:13:05' and `end` < '2025-03-14 10:13: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-03-14 10:13:18] Production.INFO: count ==2653 [2025-03-14 10:13:19] Production.ERROR: pbx CDR StartTime 2025-03-14 07:13:05 - End Time 2025-03-14 10:13:05 [2025-03-14 10:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678152', 'tblTempUsageDetail_20' ) start [2025-03-14 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678152', 'tblTempUsageDetail_20' ) end [2025-03-14 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678152', 'tblTempVendorCDR_20' ) start [2025-03-14 10:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678152', 'tblTempVendorCDR_20' ) end [2025-03-14 10:13:19] Production.INFO: ProcessCDR(1,14678152,1,1,2) [2025-03-14 10:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678152,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678152,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678152', 'tblTempUsageDetail_20' ) start [2025-03-14 10:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678152', 'tblTempUsageDetail_20' ) end [2025-03-14 10:13:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 10:13:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 10:13:25] Production.INFO: ==30417== Releasing lock... [2025-03-14 10:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 10:13:25] Production.INFO: 48 MB #Memory Used# [2025-03-14 10:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 07:14:06 [end_date_ymd] => 2025-03-14 10:14:06 [RateCDR] => 1 ) [2025-03-14 10:14: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-03-14 07:14:06' and `end` < '2025-03-14 10:14: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-03-14 10:14:18] Production.INFO: count ==2708 [2025-03-14 10:14:20] Production.ERROR: pbx CDR StartTime 2025-03-14 07:14:06 - End Time 2025-03-14 10:14:06 [2025-03-14 10:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678157', 'tblTempUsageDetail_20' ) start [2025-03-14 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678157', 'tblTempUsageDetail_20' ) end [2025-03-14 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678157', 'tblTempVendorCDR_20' ) start [2025-03-14 10:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678157', 'tblTempVendorCDR_20' ) end [2025-03-14 10:14:20] Production.INFO: ProcessCDR(1,14678157,1,1,2) [2025-03-14 10:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678157', 'tblTempUsageDetail_20' ) start [2025-03-14 10:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678157', 'tblTempUsageDetail_20' ) end [2025-03-14 10:14:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 10:14:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 10:14:26] Production.INFO: ==30496== Releasing lock... [2025-03-14 10:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 10:14:26] Production.INFO: 48.5 MB #Memory Used# [2025-03-14 10:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 07:15:06 [end_date_ymd] => 2025-03-14 10:15:06 [RateCDR] => 1 ) [2025-03-14 10:15: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-03-14 07:15:06' and `end` < '2025-03-14 10:15: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-03-14 10:15:18] Production.INFO: count ==2719 [2025-03-14 10:15:20] Production.ERROR: pbx CDR StartTime 2025-03-14 07:15:06 - End Time 2025-03-14 10:15:06 [2025-03-14 10:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678162', 'tblTempUsageDetail_20' ) start [2025-03-14 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678162', 'tblTempUsageDetail_20' ) end [2025-03-14 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678162', 'tblTempVendorCDR_20' ) start [2025-03-14 10:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678162', 'tblTempVendorCDR_20' ) end [2025-03-14 10:15:20] Production.INFO: ProcessCDR(1,14678162,1,1,2) [2025-03-14 10:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678162', 'tblTempUsageDetail_20' ) start [2025-03-14 10:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678162', 'tblTempUsageDetail_20' ) end [2025-03-14 10:15:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 10:15:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 10:15:25] Production.INFO: ==30574== Releasing lock... [2025-03-14 10:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 10:15:25] Production.INFO: 48.5 MB #Memory Used# [2025-03-14 10:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 07:16:06 [end_date_ymd] => 2025-03-14 10:16:06 [RateCDR] => 1 ) [2025-03-14 10:16: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-03-14 07:16:06' and `end` < '2025-03-14 10:16: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-03-14 10:16:19] Production.INFO: count ==2743 [2025-03-14 10:16:20] Production.ERROR: pbx CDR StartTime 2025-03-14 07:16:06 - End Time 2025-03-14 10:16:06 [2025-03-14 10:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678167', 'tblTempUsageDetail_20' ) start [2025-03-14 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678167', 'tblTempUsageDetail_20' ) end [2025-03-14 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678167', 'tblTempVendorCDR_20' ) start [2025-03-14 10:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678167', 'tblTempVendorCDR_20' ) end [2025-03-14 10:16:20] Production.INFO: ProcessCDR(1,14678167,1,1,2) [2025-03-14 10:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678167', 'tblTempUsageDetail_20' ) start [2025-03-14 10:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678167', 'tblTempUsageDetail_20' ) end [2025-03-14 10:16:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 10:16:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 10:16:26] Production.INFO: ==30656== Releasing lock... [2025-03-14 10:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 10:16:26] Production.INFO: 48.75 MB #Memory Used# [2025-03-14 10:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 07:17:06 [end_date_ymd] => 2025-03-14 10:17:06 [RateCDR] => 1 ) [2025-03-14 10:17: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-03-14 07:17:06' and `end` < '2025-03-14 10:17: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-03-14 10:17:19] Production.INFO: count ==2769 [2025-03-14 10:17:20] Production.ERROR: pbx CDR StartTime 2025-03-14 07:17:06 - End Time 2025-03-14 10:17:06 [2025-03-14 10:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678172', 'tblTempUsageDetail_20' ) start [2025-03-14 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678172', 'tblTempUsageDetail_20' ) end [2025-03-14 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678172', 'tblTempVendorCDR_20' ) start [2025-03-14 10:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678172', 'tblTempVendorCDR_20' ) end [2025-03-14 10:17:20] Production.INFO: ProcessCDR(1,14678172,1,1,2) [2025-03-14 10:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678172', 'tblTempUsageDetail_20' ) start [2025-03-14 10:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678172', 'tblTempUsageDetail_20' ) end [2025-03-14 10:17:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 10:17:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 10:17:26] Production.INFO: ==30730== Releasing lock... [2025-03-14 10:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 10:17:26] Production.INFO: 49.5 MB #Memory Used# [2025-03-14 10:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 07:18:06 [end_date_ymd] => 2025-03-14 10:18:06 [RateCDR] => 1 ) [2025-03-14 10:18: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-03-14 07:18:06' and `end` < '2025-03-14 10:18: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-03-14 10:18:19] Production.INFO: count ==2801 [2025-03-14 10:18:20] Production.ERROR: pbx CDR StartTime 2025-03-14 07:18:06 - End Time 2025-03-14 10:18:06 [2025-03-14 10:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 10:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678177', 'tblTempUsageDetail_20' ) start [2025-03-14 10:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678177', 'tblTempUsageDetail_20' ) end [2025-03-14 10:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678177', 'tblTempVendorCDR_20' ) start [2025-03-14 10:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678177', 'tblTempVendorCDR_20' ) end [2025-03-14 10:18:21] Production.INFO: ProcessCDR(1,14678177,1,1,2) [2025-03-14 10:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678177', 'tblTempUsageDetail_20' ) start [2025-03-14 10:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678177', 'tblTempUsageDetail_20' ) end [2025-03-14 10:18:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 10:18:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 10:18:26] Production.INFO: ==30805== Releasing lock... [2025-03-14 10:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 10:18:26] Production.INFO: 49.5 MB #Memory Used# [2025-03-14 10:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 07:19:05 [end_date_ymd] => 2025-03-14 10:19:05 [RateCDR] => 1 ) [2025-03-14 10:19: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-03-14 07:19:05' and `end` < '2025-03-14 10:19: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-03-14 10:19:18] Production.INFO: count ==2813 [2025-03-14 10:19:19] Production.ERROR: pbx CDR StartTime 2025-03-14 07:19:05 - End Time 2025-03-14 10:19:05 [2025-03-14 10:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678182', 'tblTempUsageDetail_20' ) start [2025-03-14 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678182', 'tblTempUsageDetail_20' ) end [2025-03-14 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678182', 'tblTempVendorCDR_20' ) start [2025-03-14 10:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678182', 'tblTempVendorCDR_20' ) end [2025-03-14 10:19:19] Production.INFO: ProcessCDR(1,14678182,1,1,2) [2025-03-14 10:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:19:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:19:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678182', 'tblTempUsageDetail_20' ) start [2025-03-14 10:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678182', 'tblTempUsageDetail_20' ) end [2025-03-14 10:19:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 10:19:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 10:19:25] Production.INFO: ==30880== Releasing lock... [2025-03-14 10:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 10:19:25] Production.INFO: 50 MB #Memory Used# [2025-03-14 10:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 07:20:06 [end_date_ymd] => 2025-03-14 10:20:06 [RateCDR] => 1 ) [2025-03-14 10:20: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-03-14 07:20:06' and `end` < '2025-03-14 10:20: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-03-14 10:20:19] Production.INFO: count ==2859 [2025-03-14 10:20:20] Production.ERROR: pbx CDR StartTime 2025-03-14 07:20:06 - End Time 2025-03-14 10:20:06 [2025-03-14 10:20:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 10:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678188', 'tblTempUsageDetail_20' ) start [2025-03-14 10:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678188', 'tblTempUsageDetail_20' ) end [2025-03-14 10:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678188', 'tblTempVendorCDR_20' ) start [2025-03-14 10:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678188', 'tblTempVendorCDR_20' ) end [2025-03-14 10:20:21] Production.INFO: ProcessCDR(1,14678188,1,1,2) [2025-03-14 10:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:20:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678188,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:20:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678188,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678188', 'tblTempUsageDetail_20' ) start [2025-03-14 10:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678188', 'tblTempUsageDetail_20' ) end [2025-03-14 10:20:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 10:20:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 10:20:26] Production.INFO: ==30953== Releasing lock... [2025-03-14 10:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 10:20:26] Production.INFO: 49.75 MB #Memory Used# [2025-03-14 10:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 07:21:05 [end_date_ymd] => 2025-03-14 10:21:05 [RateCDR] => 1 ) [2025-03-14 10:21: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-03-14 07:21:05' and `end` < '2025-03-14 10:21: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-03-14 10:21:18] Production.INFO: count ==2973 [2025-03-14 10:21:20] Production.ERROR: pbx CDR StartTime 2025-03-14 07:21:05 - End Time 2025-03-14 10:21:05 [2025-03-14 10:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678193', 'tblTempUsageDetail_20' ) start [2025-03-14 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678193', 'tblTempUsageDetail_20' ) end [2025-03-14 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678193', 'tblTempVendorCDR_20' ) start [2025-03-14 10:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678193', 'tblTempVendorCDR_20' ) end [2025-03-14 10:21:20] Production.INFO: ProcessCDR(1,14678193,1,1,2) [2025-03-14 10:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678193,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678193,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678193', 'tblTempUsageDetail_20' ) start [2025-03-14 10:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678193', 'tblTempUsageDetail_20' ) end [2025-03-14 10:21:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 10:21:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 10:21:25] Production.INFO: ==31031== Releasing lock... [2025-03-14 10:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 10:21:25] Production.INFO: 50 MB #Memory Used# [2025-03-14 10:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 07:22:06 [end_date_ymd] => 2025-03-14 10:22:06 [RateCDR] => 1 ) [2025-03-14 10:22: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-03-14 07:22:06' and `end` < '2025-03-14 10:22: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-03-14 10:22:19] Production.INFO: count ==3013 [2025-03-14 10:22:20] Production.ERROR: pbx CDR StartTime 2025-03-14 07:22:06 - End Time 2025-03-14 10:22:06 [2025-03-14 10:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678198', 'tblTempUsageDetail_20' ) start [2025-03-14 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678198', 'tblTempUsageDetail_20' ) end [2025-03-14 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678198', 'tblTempVendorCDR_20' ) start [2025-03-14 10:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678198', 'tblTempVendorCDR_20' ) end [2025-03-14 10:22:20] Production.INFO: ProcessCDR(1,14678198,1,1,2) [2025-03-14 10:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678198,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678198,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678198', 'tblTempUsageDetail_20' ) start [2025-03-14 10:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678198', 'tblTempUsageDetail_20' ) end [2025-03-14 10:22:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 10:22:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 10:22:26] Production.INFO: ==31105== Releasing lock... [2025-03-14 10:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 10:22:26] Production.INFO: 50.75 MB #Memory Used# [2025-03-14 10:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 07:23:05 [end_date_ymd] => 2025-03-14 10:23:05 [RateCDR] => 1 ) [2025-03-14 10:23: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-03-14 07:23:05' and `end` < '2025-03-14 10:23: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-03-14 10:23:18] Production.INFO: count ==3065 [2025-03-14 10:23:20] Production.ERROR: pbx CDR StartTime 2025-03-14 07:23:05 - End Time 2025-03-14 10:23:05 [2025-03-14 10:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678203', 'tblTempUsageDetail_20' ) start [2025-03-14 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678203', 'tblTempUsageDetail_20' ) end [2025-03-14 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678203', 'tblTempVendorCDR_20' ) start [2025-03-14 10:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678203', 'tblTempVendorCDR_20' ) end [2025-03-14 10:23:20] Production.INFO: ProcessCDR(1,14678203,1,1,2) [2025-03-14 10:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678203,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678203,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678203', 'tblTempUsageDetail_20' ) start [2025-03-14 10:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678203', 'tblTempUsageDetail_20' ) end [2025-03-14 10:23:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 10:23:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 10:23:25] Production.INFO: ==31182== Releasing lock... [2025-03-14 10:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 10:23:25] Production.INFO: 51.75 MB #Memory Used# [2025-03-14 10:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 07:24:06 [end_date_ymd] => 2025-03-14 10:24:06 [RateCDR] => 1 ) [2025-03-14 10:24: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-03-14 07:24:06' and `end` < '2025-03-14 10:24: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-03-14 10:24:19] Production.INFO: count ==3083 [2025-03-14 10:24:20] Production.ERROR: pbx CDR StartTime 2025-03-14 07:24:06 - End Time 2025-03-14 10:24:06 [2025-03-14 10:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678208', 'tblTempUsageDetail_20' ) start [2025-03-14 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678208', 'tblTempUsageDetail_20' ) end [2025-03-14 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678208', 'tblTempVendorCDR_20' ) start [2025-03-14 10:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678208', 'tblTempVendorCDR_20' ) end [2025-03-14 10:24:20] Production.INFO: ProcessCDR(1,14678208,1,1,2) [2025-03-14 10:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678208', 'tblTempUsageDetail_20' ) start [2025-03-14 10:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678208', 'tblTempUsageDetail_20' ) end [2025-03-14 10:24:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 10:24:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 10:24:25] Production.INFO: ==31256== Releasing lock... [2025-03-14 10:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 10:24:25] Production.INFO: 51.25 MB #Memory Used# [2025-03-14 10:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 07:25:05 [end_date_ymd] => 2025-03-14 10:25:05 [RateCDR] => 1 ) [2025-03-14 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-03-14 07:25:05' and `end` < '2025-03-14 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-03-14 10:25:18] Production.INFO: count ==3127 [2025-03-14 10:25:19] Production.ERROR: pbx CDR StartTime 2025-03-14 07:25:05 - End Time 2025-03-14 10:25:05 [2025-03-14 10:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678213', 'tblTempUsageDetail_20' ) start [2025-03-14 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678213', 'tblTempUsageDetail_20' ) end [2025-03-14 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678213', 'tblTempVendorCDR_20' ) start [2025-03-14 10:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678213', 'tblTempVendorCDR_20' ) end [2025-03-14 10:25:19] Production.INFO: ProcessCDR(1,14678213,1,1,2) [2025-03-14 10:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:25:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:25:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678213', 'tblTempUsageDetail_20' ) start [2025-03-14 10:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678213', 'tblTempUsageDetail_20' ) end [2025-03-14 10:25:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 10:25:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 10:25:25] Production.INFO: ==31368== Releasing lock... [2025-03-14 10:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 10:25:25] Production.INFO: 51.75 MB #Memory Used# [2025-03-14 10:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 07:26:06 [end_date_ymd] => 2025-03-14 10:26:06 [RateCDR] => 1 ) [2025-03-14 10:26: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-03-14 07:26:06' and `end` < '2025-03-14 10:26: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-03-14 10:26:19] Production.INFO: count ==3148 [2025-03-14 10:26:20] Production.ERROR: pbx CDR StartTime 2025-03-14 07:26:06 - End Time 2025-03-14 10:26:06 [2025-03-14 10:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678218', 'tblTempUsageDetail_20' ) start [2025-03-14 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678218', 'tblTempUsageDetail_20' ) end [2025-03-14 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678218', 'tblTempVendorCDR_20' ) start [2025-03-14 10:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678218', 'tblTempVendorCDR_20' ) end [2025-03-14 10:26:20] Production.INFO: ProcessCDR(1,14678218,1,1,2) [2025-03-14 10:26:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678218', 'tblTempUsageDetail_20' ) start [2025-03-14 10:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678218', 'tblTempUsageDetail_20' ) end [2025-03-14 10:26:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 10:26:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 10:26:26] Production.INFO: ==31439== Releasing lock... [2025-03-14 10:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 10:26:26] Production.INFO: 52 MB #Memory Used# [2025-03-14 10:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 07:27:06 [end_date_ymd] => 2025-03-14 10:27:06 [RateCDR] => 1 ) [2025-03-14 10:27: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-03-14 07:27:06' and `end` < '2025-03-14 10:27: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-03-14 10:27:19] Production.INFO: count ==3171 [2025-03-14 10:27:20] Production.ERROR: pbx CDR StartTime 2025-03-14 07:27:06 - End Time 2025-03-14 10:27:06 [2025-03-14 10:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678223', 'tblTempUsageDetail_20' ) start [2025-03-14 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678223', 'tblTempUsageDetail_20' ) end [2025-03-14 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678223', 'tblTempVendorCDR_20' ) start [2025-03-14 10:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678223', 'tblTempVendorCDR_20' ) end [2025-03-14 10:27:20] Production.INFO: ProcessCDR(1,14678223,1,1,2) [2025-03-14 10:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678223', 'tblTempUsageDetail_20' ) start [2025-03-14 10:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678223', 'tblTempUsageDetail_20' ) end [2025-03-14 10:27:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 10:27:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 10:27:26] Production.INFO: ==31512== Releasing lock... [2025-03-14 10:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 10:27:26] Production.INFO: 51.75 MB #Memory Used# [2025-03-14 10:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 07:28:06 [end_date_ymd] => 2025-03-14 10:28:06 [RateCDR] => 1 ) [2025-03-14 10:28: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-03-14 07:28:06' and `end` < '2025-03-14 10:28: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-03-14 10:28:19] Production.INFO: count ==3204 [2025-03-14 10:28:20] Production.ERROR: pbx CDR StartTime 2025-03-14 07:28:06 - End Time 2025-03-14 10:28:06 [2025-03-14 10:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 10:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678228', 'tblTempUsageDetail_20' ) start [2025-03-14 10:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678228', 'tblTempUsageDetail_20' ) end [2025-03-14 10:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678228', 'tblTempVendorCDR_20' ) start [2025-03-14 10:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678228', 'tblTempVendorCDR_20' ) end [2025-03-14 10:28:21] Production.INFO: ProcessCDR(1,14678228,1,1,2) [2025-03-14 10:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678228', 'tblTempUsageDetail_20' ) start [2025-03-14 10:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678228', 'tblTempUsageDetail_20' ) end [2025-03-14 10:28:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 10:28:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 10:28:26] Production.INFO: ==31596== Releasing lock... [2025-03-14 10:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 10:28:26] Production.INFO: 52 MB #Memory Used# [2025-03-14 10:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 07:29:05 [end_date_ymd] => 2025-03-14 10:29:05 [RateCDR] => 1 ) [2025-03-14 10:29: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-03-14 07:29:05' and `end` < '2025-03-14 10:29: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-03-14 10:29:17] Production.INFO: count ==3217 [2025-03-14 10:29:19] Production.ERROR: pbx CDR StartTime 2025-03-14 07:29:05 - End Time 2025-03-14 10:29:05 [2025-03-14 10:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678233', 'tblTempUsageDetail_20' ) start [2025-03-14 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678233', 'tblTempUsageDetail_20' ) end [2025-03-14 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678233', 'tblTempVendorCDR_20' ) start [2025-03-14 10:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678233', 'tblTempVendorCDR_20' ) end [2025-03-14 10:29:19] Production.INFO: ProcessCDR(1,14678233,1,1,2) [2025-03-14 10:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678233', 'tblTempUsageDetail_20' ) start [2025-03-14 10:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678233', 'tblTempUsageDetail_20' ) end [2025-03-14 10:29:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 10:29:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 10:29:25] Production.INFO: ==31669== Releasing lock... [2025-03-14 10:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 10:29:25] Production.INFO: 52.75 MB #Memory Used# [2025-03-14 10:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 07:30:07 [end_date_ymd] => 2025-03-14 10:30:07 [RateCDR] => 1 ) [2025-03-14 10:30:07] 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-03-14 07:30:07' and `end` < '2025-03-14 10:30:07' 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-03-14 10:30:20] Production.INFO: count ==3235 [2025-03-14 10:30:21] Production.ERROR: pbx CDR StartTime 2025-03-14 07:30:07 - End Time 2025-03-14 10:30:07 [2025-03-14 10:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 10:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678239', 'tblTempUsageDetail_20' ) start [2025-03-14 10:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678239', 'tblTempUsageDetail_20' ) end [2025-03-14 10:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678239', 'tblTempVendorCDR_20' ) start [2025-03-14 10:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678239', 'tblTempVendorCDR_20' ) end [2025-03-14 10:30:22] Production.INFO: ProcessCDR(1,14678239,1,1,2) [2025-03-14 10:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678239,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678239,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678239', 'tblTempUsageDetail_20' ) start [2025-03-14 10:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678239', 'tblTempUsageDetail_20' ) end [2025-03-14 10:30:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 10:30:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 10:30:27] Production.INFO: ==31744== Releasing lock... [2025-03-14 10:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 10:30:27] Production.INFO: 52.5 MB #Memory Used# [2025-03-14 10:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 07:31:05 [end_date_ymd] => 2025-03-14 10:31:05 [RateCDR] => 1 ) [2025-03-14 10:31: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-03-14 07:31:05' and `end` < '2025-03-14 10:31: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-03-14 10:31:18] Production.INFO: count ==3345 [2025-03-14 10:31:20] Production.ERROR: pbx CDR StartTime 2025-03-14 07:31:05 - End Time 2025-03-14 10:31:05 [2025-03-14 10:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 10:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678244', 'tblTempUsageDetail_20' ) start [2025-03-14 10:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678244', 'tblTempUsageDetail_20' ) end [2025-03-14 10:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678244', 'tblTempVendorCDR_20' ) start [2025-03-14 10:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678244', 'tblTempVendorCDR_20' ) end [2025-03-14 10:31:20] Production.INFO: ProcessCDR(1,14678244,1,1,2) [2025-03-14 10:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678244,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678244,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678244', 'tblTempUsageDetail_20' ) start [2025-03-14 10:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678244', 'tblTempUsageDetail_20' ) end [2025-03-14 10:31:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 10:31:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 10:31:26] Production.INFO: ==31820== Releasing lock... [2025-03-14 10:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 10:31:26] Production.INFO: 53.75 MB #Memory Used# [2025-03-14 10:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 07:32:06 [end_date_ymd] => 2025-03-14 10:32:06 [RateCDR] => 1 ) [2025-03-14 10:32: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-03-14 07:32:06' and `end` < '2025-03-14 10:32: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-03-14 10:32:19] Production.INFO: count ==3356 [2025-03-14 10:32:20] Production.ERROR: pbx CDR StartTime 2025-03-14 07:32:06 - End Time 2025-03-14 10:32:06 [2025-03-14 10:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678249', 'tblTempUsageDetail_20' ) start [2025-03-14 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678249', 'tblTempUsageDetail_20' ) end [2025-03-14 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678249', 'tblTempVendorCDR_20' ) start [2025-03-14 10:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678249', 'tblTempVendorCDR_20' ) end [2025-03-14 10:32:20] Production.INFO: ProcessCDR(1,14678249,1,1,2) [2025-03-14 10:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678249,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678249,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678249', 'tblTempUsageDetail_20' ) start [2025-03-14 10:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678249', 'tblTempUsageDetail_20' ) end [2025-03-14 10:32:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 10:32:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 10:32:26] Production.INFO: ==31895== Releasing lock... [2025-03-14 10:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 10:32:26] Production.INFO: 53.5 MB #Memory Used# [2025-03-14 10:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 07:33:05 [end_date_ymd] => 2025-03-14 10:33:05 [RateCDR] => 1 ) [2025-03-14 10:33: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-03-14 07:33:05' and `end` < '2025-03-14 10:33: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-03-14 10:33:18] Production.INFO: count ==3374 [2025-03-14 10:33:20] Production.ERROR: pbx CDR StartTime 2025-03-14 07:33:05 - End Time 2025-03-14 10:33:05 [2025-03-14 10:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678254', 'tblTempUsageDetail_20' ) start [2025-03-14 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678254', 'tblTempUsageDetail_20' ) end [2025-03-14 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678254', 'tblTempVendorCDR_20' ) start [2025-03-14 10:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678254', 'tblTempVendorCDR_20' ) end [2025-03-14 10:33:20] Production.INFO: ProcessCDR(1,14678254,1,1,2) [2025-03-14 10:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678254,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678254,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678254', 'tblTempUsageDetail_20' ) start [2025-03-14 10:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678254', 'tblTempUsageDetail_20' ) end [2025-03-14 10:33:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 10:33:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 10:33:25] Production.INFO: ==31968== Releasing lock... [2025-03-14 10:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 10:33:25] Production.INFO: 53.5 MB #Memory Used# [2025-03-14 10:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 07:34:06 [end_date_ymd] => 2025-03-14 10:34:06 [RateCDR] => 1 ) [2025-03-14 10:34: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-03-14 07:34:06' and `end` < '2025-03-14 10:34: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-03-14 10:34:19] Production.INFO: count ==3391 [2025-03-14 10:34:21] Production.ERROR: pbx CDR StartTime 2025-03-14 07:34:06 - End Time 2025-03-14 10:34:06 [2025-03-14 10:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 10:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678259', 'tblTempUsageDetail_20' ) start [2025-03-14 10:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678259', 'tblTempUsageDetail_20' ) end [2025-03-14 10:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678259', 'tblTempVendorCDR_20' ) start [2025-03-14 10:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678259', 'tblTempVendorCDR_20' ) end [2025-03-14 10:34:21] Production.INFO: ProcessCDR(1,14678259,1,1,2) [2025-03-14 10:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678259', 'tblTempUsageDetail_20' ) start [2025-03-14 10:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678259', 'tblTempUsageDetail_20' ) end [2025-03-14 10:34:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 10:34:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 10:34:27] Production.INFO: ==32048== Releasing lock... [2025-03-14 10:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 10:34:27] Production.INFO: 54 MB #Memory Used# [2025-03-14 10:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 07:35:06 [end_date_ymd] => 2025-03-14 10:35:06 [RateCDR] => 1 ) [2025-03-14 10:35: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-03-14 07:35:06' and `end` < '2025-03-14 10:35: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-03-14 10:35:18] Production.INFO: count ==3405 [2025-03-14 10:35:20] Production.ERROR: pbx CDR StartTime 2025-03-14 07:35:06 - End Time 2025-03-14 10:35:06 [2025-03-14 10:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 10:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678264', 'tblTempUsageDetail_20' ) start [2025-03-14 10:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678264', 'tblTempUsageDetail_20' ) end [2025-03-14 10:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678264', 'tblTempVendorCDR_20' ) start [2025-03-14 10:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678264', 'tblTempVendorCDR_20' ) end [2025-03-14 10:35:20] Production.INFO: ProcessCDR(1,14678264,1,1,2) [2025-03-14 10:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678264', 'tblTempUsageDetail_20' ) start [2025-03-14 10:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678264', 'tblTempUsageDetail_20' ) end [2025-03-14 10:35:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 10:35:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 10:35:26] Production.INFO: ==32145== Releasing lock... [2025-03-14 10:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 10:35:26] Production.INFO: 53.75 MB #Memory Used# [2025-03-14 10:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 07:36:06 [end_date_ymd] => 2025-03-14 10:36:06 [RateCDR] => 1 ) [2025-03-14 10:36: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-03-14 07:36:06' and `end` < '2025-03-14 10:36: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-03-14 10:36:18] Production.INFO: count ==3417 [2025-03-14 10:36:20] Production.ERROR: pbx CDR StartTime 2025-03-14 07:36:06 - End Time 2025-03-14 10:36:06 [2025-03-14 10:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678269', 'tblTempUsageDetail_20' ) start [2025-03-14 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678269', 'tblTempUsageDetail_20' ) end [2025-03-14 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678269', 'tblTempVendorCDR_20' ) start [2025-03-14 10:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678269', 'tblTempVendorCDR_20' ) end [2025-03-14 10:36:20] Production.INFO: ProcessCDR(1,14678269,1,1,2) [2025-03-14 10:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678269', 'tblTempUsageDetail_20' ) start [2025-03-14 10:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678269', 'tblTempUsageDetail_20' ) end [2025-03-14 10:36:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 10:36:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 10:36:26] Production.INFO: ==32233== Releasing lock... [2025-03-14 10:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 10:36:26] Production.INFO: 54.5 MB #Memory Used# [2025-03-14 10:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 07:37:06 [end_date_ymd] => 2025-03-14 10:37:06 [RateCDR] => 1 ) [2025-03-14 10:37: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-03-14 07:37:06' and `end` < '2025-03-14 10:37: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-03-14 10:37:18] Production.INFO: count ==3419 [2025-03-14 10:37:20] Production.ERROR: pbx CDR StartTime 2025-03-14 07:37:06 - End Time 2025-03-14 10:37:06 [2025-03-14 10:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678274', 'tblTempUsageDetail_20' ) start [2025-03-14 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678274', 'tblTempUsageDetail_20' ) end [2025-03-14 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678274', 'tblTempVendorCDR_20' ) start [2025-03-14 10:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678274', 'tblTempVendorCDR_20' ) end [2025-03-14 10:37:20] Production.INFO: ProcessCDR(1,14678274,1,1,2) [2025-03-14 10:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678274', 'tblTempUsageDetail_20' ) start [2025-03-14 10:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678274', 'tblTempUsageDetail_20' ) end [2025-03-14 10:37:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 10:37:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 10:37:25] Production.INFO: ==32321== Releasing lock... [2025-03-14 10:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 10:37:25] Production.INFO: 53.5 MB #Memory Used# [2025-03-14 10:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 07:38:06 [end_date_ymd] => 2025-03-14 10:38:06 [RateCDR] => 1 ) [2025-03-14 10:38: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-03-14 07:38:06' and `end` < '2025-03-14 10:38: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-03-14 10:38:19] Production.INFO: count ==3431 [2025-03-14 10:38:21] Production.ERROR: pbx CDR StartTime 2025-03-14 07:38:06 - End Time 2025-03-14 10:38:06 [2025-03-14 10:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 10:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678279', 'tblTempUsageDetail_20' ) start [2025-03-14 10:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678279', 'tblTempUsageDetail_20' ) end [2025-03-14 10:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678279', 'tblTempVendorCDR_20' ) start [2025-03-14 10:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678279', 'tblTempVendorCDR_20' ) end [2025-03-14 10:38:21] Production.INFO: ProcessCDR(1,14678279,1,1,2) [2025-03-14 10:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678279', 'tblTempUsageDetail_20' ) start [2025-03-14 10:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678279', 'tblTempUsageDetail_20' ) end [2025-03-14 10:38:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 10:38:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 10:38:26] Production.INFO: ==32414== Releasing lock... [2025-03-14 10:38:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 10:38:26] Production.INFO: 54.25 MB #Memory Used# [2025-03-14 10:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 07:39:05 [end_date_ymd] => 2025-03-14 10:39:05 [RateCDR] => 1 ) [2025-03-14 10:39: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-03-14 07:39:05' and `end` < '2025-03-14 10:39: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-03-14 10:39:18] Production.INFO: count ==3447 [2025-03-14 10:39:20] Production.ERROR: pbx CDR StartTime 2025-03-14 07:39:05 - End Time 2025-03-14 10:39:05 [2025-03-14 10:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678284', 'tblTempUsageDetail_20' ) start [2025-03-14 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678284', 'tblTempUsageDetail_20' ) end [2025-03-14 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678284', 'tblTempVendorCDR_20' ) start [2025-03-14 10:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678284', 'tblTempVendorCDR_20' ) end [2025-03-14 10:39:20] Production.INFO: ProcessCDR(1,14678284,1,1,2) [2025-03-14 10:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678284', 'tblTempUsageDetail_20' ) start [2025-03-14 10:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678284', 'tblTempUsageDetail_20' ) end [2025-03-14 10:39:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 10:39:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 10:39:26] Production.INFO: ==32498== Releasing lock... [2025-03-14 10:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 10:39:26] Production.INFO: 54.5 MB #Memory Used# [2025-03-14 10:40:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 07:40:05 [end_date_ymd] => 2025-03-14 10:40:05 [RateCDR] => 1 ) [2025-03-14 10:40: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-03-14 07:40:05' and `end` < '2025-03-14 10:40: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-03-14 10:40:18] Production.INFO: count ==3457 [2025-03-14 10:40:20] Production.ERROR: pbx CDR StartTime 2025-03-14 07:40:05 - End Time 2025-03-14 10:40:05 [2025-03-14 10:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 10:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678289', 'tblTempUsageDetail_20' ) start [2025-03-14 10:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678289', 'tblTempUsageDetail_20' ) end [2025-03-14 10:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678289', 'tblTempVendorCDR_20' ) start [2025-03-14 10:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678289', 'tblTempVendorCDR_20' ) end [2025-03-14 10:40:20] Production.INFO: ProcessCDR(1,14678289,1,1,2) [2025-03-14 10:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678289', 'tblTempUsageDetail_20' ) start [2025-03-14 10:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678289', 'tblTempUsageDetail_20' ) end [2025-03-14 10:40:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 10:40:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 10:40:26] Production.INFO: ==32595== Releasing lock... [2025-03-14 10:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 10:40:26] Production.INFO: 54.5 MB #Memory Used# [2025-03-14 10:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 07:41:05 [end_date_ymd] => 2025-03-14 10:41:05 [RateCDR] => 1 ) [2025-03-14 10:41: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-03-14 07:41:05' and `end` < '2025-03-14 10:41: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-03-14 10:41:18] Production.INFO: count ==3549 [2025-03-14 10:41:20] Production.ERROR: pbx CDR StartTime 2025-03-14 07:41:05 - End Time 2025-03-14 10:41:05 [2025-03-14 10:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 10:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678295', 'tblTempUsageDetail_20' ) start [2025-03-14 10:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678295', 'tblTempUsageDetail_20' ) end [2025-03-14 10:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678295', 'tblTempVendorCDR_20' ) start [2025-03-14 10:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678295', 'tblTempVendorCDR_20' ) end [2025-03-14 10:41:20] Production.INFO: ProcessCDR(1,14678295,1,1,2) [2025-03-14 10:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678295,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678295,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678295', 'tblTempUsageDetail_20' ) start [2025-03-14 10:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678295', 'tblTempUsageDetail_20' ) end [2025-03-14 10:41:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 10:41:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 10:41:26] Production.INFO: ==32734== Releasing lock... [2025-03-14 10:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 10:41:26] Production.INFO: 55.25 MB #Memory Used# [2025-03-14 10:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 07:42:06 [end_date_ymd] => 2025-03-14 10:42:06 [RateCDR] => 1 ) [2025-03-14 10:42: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-03-14 07:42:06' and `end` < '2025-03-14 10:42: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-03-14 10:42:19] Production.INFO: count ==3570 [2025-03-14 10:42:20] Production.ERROR: pbx CDR StartTime 2025-03-14 07:42:06 - End Time 2025-03-14 10:42:06 [2025-03-14 10:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 10:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678300', 'tblTempUsageDetail_20' ) start [2025-03-14 10:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678300', 'tblTempUsageDetail_20' ) end [2025-03-14 10:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678300', 'tblTempVendorCDR_20' ) start [2025-03-14 10:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678300', 'tblTempVendorCDR_20' ) end [2025-03-14 10:42:21] Production.INFO: ProcessCDR(1,14678300,1,1,2) [2025-03-14 10:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678300,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678300,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678300', 'tblTempUsageDetail_20' ) start [2025-03-14 10:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678300', 'tblTempUsageDetail_20' ) end [2025-03-14 10:42:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 10:42:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 10:42:26] Production.INFO: ==381== Releasing lock... [2025-03-14 10:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 10:42:26] Production.INFO: 55 MB #Memory Used# [2025-03-14 10:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 07:43:05 [end_date_ymd] => 2025-03-14 10:43:05 [RateCDR] => 1 ) [2025-03-14 10:43: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-03-14 07:43:05' and `end` < '2025-03-14 10:43: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-03-14 10:43:18] Production.INFO: count ==3599 [2025-03-14 10:43:20] Production.ERROR: pbx CDR StartTime 2025-03-14 07:43:05 - End Time 2025-03-14 10:43:05 [2025-03-14 10:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678305', 'tblTempUsageDetail_20' ) start [2025-03-14 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678305', 'tblTempUsageDetail_20' ) end [2025-03-14 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678305', 'tblTempVendorCDR_20' ) start [2025-03-14 10:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678305', 'tblTempVendorCDR_20' ) end [2025-03-14 10:43:20] Production.INFO: ProcessCDR(1,14678305,1,1,2) [2025-03-14 10:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678305,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678305,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678305', 'tblTempUsageDetail_20' ) start [2025-03-14 10:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678305', 'tblTempUsageDetail_20' ) end [2025-03-14 10:43:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 10:43:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 10:43:26] Production.INFO: ==461== Releasing lock... [2025-03-14 10:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 10:43:26] Production.INFO: 55.25 MB #Memory Used# [2025-03-14 10:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 07:44:06 [end_date_ymd] => 2025-03-14 10:44:06 [RateCDR] => 1 ) [2025-03-14 10:44: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-03-14 07:44:06' and `end` < '2025-03-14 10:44: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-03-14 10:44:19] Production.INFO: count ==3618 [2025-03-14 10:44:21] Production.ERROR: pbx CDR StartTime 2025-03-14 07:44:06 - End Time 2025-03-14 10:44:06 [2025-03-14 10:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 10:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678310', 'tblTempUsageDetail_20' ) start [2025-03-14 10:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678310', 'tblTempUsageDetail_20' ) end [2025-03-14 10:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678310', 'tblTempVendorCDR_20' ) start [2025-03-14 10:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678310', 'tblTempVendorCDR_20' ) end [2025-03-14 10:44:21] Production.INFO: ProcessCDR(1,14678310,1,1,2) [2025-03-14 10:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678310,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678310,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678310', 'tblTempUsageDetail_20' ) start [2025-03-14 10:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678310', 'tblTempUsageDetail_20' ) end [2025-03-14 10:44:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 10:44:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 10:44:27] Production.INFO: ==561== Releasing lock... [2025-03-14 10:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 10:44:27] Production.INFO: 55.25 MB #Memory Used# [2025-03-14 10:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 07:45:06 [end_date_ymd] => 2025-03-14 10:45:06 [RateCDR] => 1 ) [2025-03-14 10:45: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-03-14 07:45:06' and `end` < '2025-03-14 10:45: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-03-14 10:45:19] Production.INFO: count ==3623 [2025-03-14 10:45:20] Production.ERROR: pbx CDR StartTime 2025-03-14 07:45:06 - End Time 2025-03-14 10:45:06 [2025-03-14 10:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678315', 'tblTempUsageDetail_20' ) start [2025-03-14 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678315', 'tblTempUsageDetail_20' ) end [2025-03-14 10:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678315', 'tblTempVendorCDR_20' ) start [2025-03-14 10:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678315', 'tblTempVendorCDR_20' ) end [2025-03-14 10:45:21] Production.INFO: ProcessCDR(1,14678315,1,1,2) [2025-03-14 10:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678315', 'tblTempUsageDetail_20' ) start [2025-03-14 10:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678315', 'tblTempUsageDetail_20' ) end [2025-03-14 10:45:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 10:45:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 10:45:26] Production.INFO: ==655== Releasing lock... [2025-03-14 10:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 10:45:26] Production.INFO: 55 MB #Memory Used# [2025-03-14 10:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 07:46:06 [end_date_ymd] => 2025-03-14 10:46:06 [RateCDR] => 1 ) [2025-03-14 10:46: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-03-14 07:46:06' and `end` < '2025-03-14 10:46: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-03-14 10:46:19] Production.INFO: count ==3640 [2025-03-14 10:46:21] Production.ERROR: pbx CDR StartTime 2025-03-14 07:46:06 - End Time 2025-03-14 10:46:06 [2025-03-14 10:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 10:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678320', 'tblTempUsageDetail_20' ) start [2025-03-14 10:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678320', 'tblTempUsageDetail_20' ) end [2025-03-14 10:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678320', 'tblTempVendorCDR_20' ) start [2025-03-14 10:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678320', 'tblTempVendorCDR_20' ) end [2025-03-14 10:46:21] Production.INFO: ProcessCDR(1,14678320,1,1,2) [2025-03-14 10:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:46:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:46:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678320', 'tblTempUsageDetail_20' ) start [2025-03-14 10:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678320', 'tblTempUsageDetail_20' ) end [2025-03-14 10:46:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 10:46:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 10:46:27] Production.INFO: ==778== Releasing lock... [2025-03-14 10:46:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 10:46:27] Production.INFO: 55.25 MB #Memory Used# [2025-03-14 10:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 07:47:05 [end_date_ymd] => 2025-03-14 10:47:05 [RateCDR] => 1 ) [2025-03-14 10:47: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-03-14 07:47:05' and `end` < '2025-03-14 10:47: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-03-14 10:47:19] Production.INFO: count ==3667 [2025-03-14 10:47:20] Production.ERROR: pbx CDR StartTime 2025-03-14 07:47:05 - End Time 2025-03-14 10:47:05 [2025-03-14 10:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678325', 'tblTempUsageDetail_20' ) start [2025-03-14 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678325', 'tblTempUsageDetail_20' ) end [2025-03-14 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678325', 'tblTempVendorCDR_20' ) start [2025-03-14 10:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678325', 'tblTempVendorCDR_20' ) end [2025-03-14 10:47:20] Production.INFO: ProcessCDR(1,14678325,1,1,2) [2025-03-14 10:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678325', 'tblTempUsageDetail_20' ) start [2025-03-14 10:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678325', 'tblTempUsageDetail_20' ) end [2025-03-14 10:47:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 10:47:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 10:47:26] Production.INFO: ==868== Releasing lock... [2025-03-14 10:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 10:47:26] Production.INFO: 55.5 MB #Memory Used# [2025-03-14 10:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 07:48:06 [end_date_ymd] => 2025-03-14 10:48:06 [RateCDR] => 1 ) [2025-03-14 10:48: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-03-14 07:48:06' and `end` < '2025-03-14 10:48: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-03-14 10:48:19] Production.INFO: count ==3685 [2025-03-14 10:48:21] Production.ERROR: pbx CDR StartTime 2025-03-14 07:48:06 - End Time 2025-03-14 10:48:06 [2025-03-14 10:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 10:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678330', 'tblTempUsageDetail_20' ) start [2025-03-14 10:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678330', 'tblTempUsageDetail_20' ) end [2025-03-14 10:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678330', 'tblTempVendorCDR_20' ) start [2025-03-14 10:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678330', 'tblTempVendorCDR_20' ) end [2025-03-14 10:48:21] Production.INFO: ProcessCDR(1,14678330,1,1,2) [2025-03-14 10:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678330', 'tblTempUsageDetail_20' ) start [2025-03-14 10:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678330', 'tblTempUsageDetail_20' ) end [2025-03-14 10:48:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 10:48:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 10:48:27] Production.INFO: ==967== Releasing lock... [2025-03-14 10:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 10:48:27] Production.INFO: 55.75 MB #Memory Used# [2025-03-14 10:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 07:49:05 [end_date_ymd] => 2025-03-14 10:49:05 [RateCDR] => 1 ) [2025-03-14 10:49: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-03-14 07:49:05' and `end` < '2025-03-14 10:49: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-03-14 10:49:18] Production.INFO: count ==3704 [2025-03-14 10:49:20] Production.ERROR: pbx CDR StartTime 2025-03-14 07:49:05 - End Time 2025-03-14 10:49:05 [2025-03-14 10:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678335', 'tblTempUsageDetail_20' ) start [2025-03-14 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678335', 'tblTempUsageDetail_20' ) end [2025-03-14 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678335', 'tblTempVendorCDR_20' ) start [2025-03-14 10:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678335', 'tblTempVendorCDR_20' ) end [2025-03-14 10:49:20] Production.INFO: ProcessCDR(1,14678335,1,1,2) [2025-03-14 10:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678335', 'tblTempUsageDetail_20' ) start [2025-03-14 10:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678335', 'tblTempUsageDetail_20' ) end [2025-03-14 10:49:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 10:49:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 10:49:26] Production.INFO: ==1057== Releasing lock... [2025-03-14 10:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 10:49:26] Production.INFO: 56.25 MB #Memory Used# [2025-03-14 10:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 07:50:07 [end_date_ymd] => 2025-03-14 10:50:07 [RateCDR] => 1 ) [2025-03-14 10:50:07] 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-03-14 07:50:07' and `end` < '2025-03-14 10:50:07' 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-03-14 10:50:20] Production.INFO: count ==3737 [2025-03-14 10:50:22] Production.ERROR: pbx CDR StartTime 2025-03-14 07:50:07 - End Time 2025-03-14 10:50:07 [2025-03-14 10:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 10:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678341', 'tblTempUsageDetail_20' ) start [2025-03-14 10:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678341', 'tblTempUsageDetail_20' ) end [2025-03-14 10:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678341', 'tblTempVendorCDR_20' ) start [2025-03-14 10:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678341', 'tblTempVendorCDR_20' ) end [2025-03-14 10:50:22] Production.INFO: ProcessCDR(1,14678341,1,1,2) [2025-03-14 10:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678341,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678341,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678341', 'tblTempUsageDetail_20' ) start [2025-03-14 10:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678341', 'tblTempUsageDetail_20' ) end [2025-03-14 10:50:28] Production.ERROR: pbx prc_insertCDR start [2025-03-14 10:50:28] Production.ERROR: pbx prc_insertCDR end [2025-03-14 10:50:28] Production.INFO: ==1148== Releasing lock... [2025-03-14 10:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 10:50:28] Production.INFO: 56 MB #Memory Used# [2025-03-14 10:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 07:51:05 [end_date_ymd] => 2025-03-14 10:51:05 [RateCDR] => 1 ) [2025-03-14 10:51: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-03-14 07:51:05' and `end` < '2025-03-14 10:51: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-03-14 10:51:18] Production.INFO: count ==3874 [2025-03-14 10:51:20] Production.ERROR: pbx CDR StartTime 2025-03-14 07:51:05 - End Time 2025-03-14 10:51:05 [2025-03-14 10:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678346', 'tblTempUsageDetail_20' ) start [2025-03-14 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678346', 'tblTempUsageDetail_20' ) end [2025-03-14 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678346', 'tblTempVendorCDR_20' ) start [2025-03-14 10:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678346', 'tblTempVendorCDR_20' ) end [2025-03-14 10:51:20] Production.INFO: ProcessCDR(1,14678346,1,1,2) [2025-03-14 10:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:51:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678346,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:51:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678346,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678346', 'tblTempUsageDetail_20' ) start [2025-03-14 10:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678346', 'tblTempUsageDetail_20' ) end [2025-03-14 10:51:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 10:51:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 10:51:25] Production.INFO: ==1262== Releasing lock... [2025-03-14 10:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 10:51:25] Production.INFO: 57 MB #Memory Used# [2025-03-14 10:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 07:52:06 [end_date_ymd] => 2025-03-14 10:52:06 [RateCDR] => 1 ) [2025-03-14 10:52: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-03-14 07:52:06' and `end` < '2025-03-14 10:52: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-03-14 10:52:19] Production.INFO: count ==2681 [2025-03-14 10:52:21] Production.ERROR: pbx CDR StartTime 2025-03-14 07:52:06 - End Time 2025-03-14 10:52:06 [2025-03-14 10:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 10:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678351', 'tblTempUsageDetail_20' ) start [2025-03-14 10:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678351', 'tblTempUsageDetail_20' ) end [2025-03-14 10:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678351', 'tblTempVendorCDR_20' ) start [2025-03-14 10:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678351', 'tblTempVendorCDR_20' ) end [2025-03-14 10:52:21] Production.INFO: ProcessCDR(1,14678351,1,1,2) [2025-03-14 10:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678351,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678351,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678351', 'tblTempUsageDetail_20' ) start [2025-03-14 10:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678351', 'tblTempUsageDetail_20' ) end [2025-03-14 10:52:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 10:52:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 10:52:26] Production.INFO: ==1352== Releasing lock... [2025-03-14 10:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 10:52:26] Production.INFO: 49 MB #Memory Used# [2025-03-14 10:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 07:53:06 [end_date_ymd] => 2025-03-14 10:53:06 [RateCDR] => 1 ) [2025-03-14 10:53: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-03-14 07:53:06' and `end` < '2025-03-14 10:53: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-03-14 10:53:18] Production.INFO: count ==2690 [2025-03-14 10:53:20] Production.ERROR: pbx CDR StartTime 2025-03-14 07:53:06 - End Time 2025-03-14 10:53:06 [2025-03-14 10:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678356', 'tblTempUsageDetail_20' ) start [2025-03-14 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678356', 'tblTempUsageDetail_20' ) end [2025-03-14 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678356', 'tblTempVendorCDR_20' ) start [2025-03-14 10:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678356', 'tblTempVendorCDR_20' ) end [2025-03-14 10:53:20] Production.INFO: ProcessCDR(1,14678356,1,1,2) [2025-03-14 10:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678356,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678356,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678356', 'tblTempUsageDetail_20' ) start [2025-03-14 10:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678356', 'tblTempUsageDetail_20' ) end [2025-03-14 10:53:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 10:53:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 10:53:26] Production.INFO: ==1444== Releasing lock... [2025-03-14 10:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 10:53:26] Production.INFO: 48 MB #Memory Used# [2025-03-14 10:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 07:54:06 [end_date_ymd] => 2025-03-14 10:54:06 [RateCDR] => 1 ) [2025-03-14 10:54: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-03-14 07:54:06' and `end` < '2025-03-14 10:54: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-03-14 10:54:19] Production.INFO: count ==2719 [2025-03-14 10:54:20] Production.ERROR: pbx CDR StartTime 2025-03-14 07:54:06 - End Time 2025-03-14 10:54:06 [2025-03-14 10:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 10:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678361', 'tblTempUsageDetail_20' ) start [2025-03-14 10:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678361', 'tblTempUsageDetail_20' ) end [2025-03-14 10:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678361', 'tblTempVendorCDR_20' ) start [2025-03-14 10:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678361', 'tblTempVendorCDR_20' ) end [2025-03-14 10:54:21] Production.INFO: ProcessCDR(1,14678361,1,1,2) [2025-03-14 10:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678361', 'tblTempUsageDetail_20' ) start [2025-03-14 10:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678361', 'tblTempUsageDetail_20' ) end [2025-03-14 10:54:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 10:54:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 10:54:26] Production.INFO: ==1567== Releasing lock... [2025-03-14 10:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 10:54:26] Production.INFO: 49 MB #Memory Used# [2025-03-14 10:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 07:55:05 [end_date_ymd] => 2025-03-14 10:55:05 [RateCDR] => 1 ) [2025-03-14 10:55: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-03-14 07:55:05' and `end` < '2025-03-14 10:55: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-03-14 10:55:18] Production.INFO: count ==2728 [2025-03-14 10:55:20] Production.ERROR: pbx CDR StartTime 2025-03-14 07:55:05 - End Time 2025-03-14 10:55:05 [2025-03-14 10:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678366', 'tblTempUsageDetail_20' ) start [2025-03-14 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678366', 'tblTempUsageDetail_20' ) end [2025-03-14 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678366', 'tblTempVendorCDR_20' ) start [2025-03-14 10:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678366', 'tblTempVendorCDR_20' ) end [2025-03-14 10:55:20] Production.INFO: ProcessCDR(1,14678366,1,1,2) [2025-03-14 10:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678366', 'tblTempUsageDetail_20' ) start [2025-03-14 10:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678366', 'tblTempUsageDetail_20' ) end [2025-03-14 10:55:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 10:55:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 10:55:24] Production.INFO: ==1656== Releasing lock... [2025-03-14 10:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 10:55:24] Production.INFO: 49 MB #Memory Used# [2025-03-14 10:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 07:56:06 [end_date_ymd] => 2025-03-14 10:56:06 [RateCDR] => 1 ) [2025-03-14 10:56: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-03-14 07:56:06' and `end` < '2025-03-14 10:56: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-03-14 10:56:19] Production.INFO: count ==2729 [2025-03-14 10:56:21] Production.ERROR: pbx CDR StartTime 2025-03-14 07:56:06 - End Time 2025-03-14 10:56:06 [2025-03-14 10:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 10:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678371', 'tblTempUsageDetail_20' ) start [2025-03-14 10:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678371', 'tblTempUsageDetail_20' ) end [2025-03-14 10:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678371', 'tblTempVendorCDR_20' ) start [2025-03-14 10:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678371', 'tblTempVendorCDR_20' ) end [2025-03-14 10:56:21] Production.INFO: ProcessCDR(1,14678371,1,1,2) [2025-03-14 10:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678371', 'tblTempUsageDetail_20' ) start [2025-03-14 10:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678371', 'tblTempUsageDetail_20' ) end [2025-03-14 10:56:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 10:56:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 10:56:26] Production.INFO: ==1790== Releasing lock... [2025-03-14 10:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 10:56:26] Production.INFO: 48.75 MB #Memory Used# [2025-03-14 10:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 07:57:06 [end_date_ymd] => 2025-03-14 10:57:06 [RateCDR] => 1 ) [2025-03-14 10:57: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-03-14 07:57:06' and `end` < '2025-03-14 10:57: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-03-14 10:57:19] Production.INFO: count ==2731 [2025-03-14 10:57:20] Production.ERROR: pbx CDR StartTime 2025-03-14 07:57:06 - End Time 2025-03-14 10:57:06 [2025-03-14 10:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678376', 'tblTempUsageDetail_20' ) start [2025-03-14 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678376', 'tblTempUsageDetail_20' ) end [2025-03-14 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678376', 'tblTempVendorCDR_20' ) start [2025-03-14 10:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678376', 'tblTempVendorCDR_20' ) end [2025-03-14 10:57:20] Production.INFO: ProcessCDR(1,14678376,1,1,2) [2025-03-14 10:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678376', 'tblTempUsageDetail_20' ) start [2025-03-14 10:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678376', 'tblTempUsageDetail_20' ) end [2025-03-14 10:57:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 10:57:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 10:57:26] Production.INFO: ==1887== Releasing lock... [2025-03-14 10:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 10:57:26] Production.INFO: 49.25 MB #Memory Used# [2025-03-14 10:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 07:58:05 [end_date_ymd] => 2025-03-14 10:58:05 [RateCDR] => 1 ) [2025-03-14 10:58: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-03-14 07:58:05' and `end` < '2025-03-14 10:58: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-03-14 10:58:18] Production.INFO: count ==2736 [2025-03-14 10:58:20] Production.ERROR: pbx CDR StartTime 2025-03-14 07:58:05 - End Time 2025-03-14 10:58:05 [2025-03-14 10:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678381', 'tblTempUsageDetail_20' ) start [2025-03-14 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678381', 'tblTempUsageDetail_20' ) end [2025-03-14 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678381', 'tblTempVendorCDR_20' ) start [2025-03-14 10:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678381', 'tblTempVendorCDR_20' ) end [2025-03-14 10:58:20] Production.INFO: ProcessCDR(1,14678381,1,1,2) [2025-03-14 10:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678381', 'tblTempUsageDetail_20' ) start [2025-03-14 10:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678381', 'tblTempUsageDetail_20' ) end [2025-03-14 10:58:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 10:58:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 10:58:26] Production.INFO: ==1974== Releasing lock... [2025-03-14 10:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 10:58:26] Production.INFO: 49.25 MB #Memory Used# [2025-03-14 10:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 07:59:06 [end_date_ymd] => 2025-03-14 10:59:06 [RateCDR] => 1 ) [2025-03-14 10:59: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-03-14 07:59:06' and `end` < '2025-03-14 10:59: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-03-14 10:59:18] Production.INFO: count ==2740 [2025-03-14 10:59:20] Production.ERROR: pbx CDR StartTime 2025-03-14 07:59:06 - End Time 2025-03-14 10:59:06 [2025-03-14 10:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678386', 'tblTempUsageDetail_20' ) start [2025-03-14 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678386', 'tblTempUsageDetail_20' ) end [2025-03-14 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678386', 'tblTempVendorCDR_20' ) start [2025-03-14 10:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678386', 'tblTempVendorCDR_20' ) end [2025-03-14 10:59:20] Production.INFO: ProcessCDR(1,14678386,1,1,2) [2025-03-14 10:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 10:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:59:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 10:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678386', 'tblTempUsageDetail_20' ) start [2025-03-14 10:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678386', 'tblTempUsageDetail_20' ) end [2025-03-14 10:59:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 10:59:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 10:59:26] Production.INFO: ==2048== Releasing lock... [2025-03-14 10:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 10:59:26] Production.INFO: 49.25 MB #Memory Used# [2025-03-14 11:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 08:00:07 [end_date_ymd] => 2025-03-14 11:00:07 [RateCDR] => 1 ) [2025-03-14 11:00:07] 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-03-14 08:00:07' and `end` < '2025-03-14 11:00:07' 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-03-14 11:00:20] Production.INFO: count ==2762 [2025-03-14 11:00:22] Production.ERROR: pbx CDR StartTime 2025-03-14 08:00:07 - End Time 2025-03-14 11:00:07 [2025-03-14 11:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678392', 'tblTempUsageDetail_20' ) start [2025-03-14 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678392', 'tblTempUsageDetail_20' ) end [2025-03-14 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678392', 'tblTempVendorCDR_20' ) start [2025-03-14 11:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678392', 'tblTempVendorCDR_20' ) end [2025-03-14 11:00:22] Production.INFO: ProcessCDR(1,14678392,1,1,2) [2025-03-14 11:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678392,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678392,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678392', 'tblTempUsageDetail_20' ) start [2025-03-14 11:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678392', 'tblTempUsageDetail_20' ) end [2025-03-14 11:00:28] Production.ERROR: pbx prc_insertCDR start [2025-03-14 11:00:28] Production.ERROR: pbx prc_insertCDR end [2025-03-14 11:00:28] Production.INFO: ==2130== Releasing lock... [2025-03-14 11:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 11:00:28] Production.INFO: 48.75 MB #Memory Used# [2025-03-14 11:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 08:01:06 [end_date_ymd] => 2025-03-14 11:01:06 [RateCDR] => 1 ) [2025-03-14 11:01: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-03-14 08:01:06' and `end` < '2025-03-14 11:01: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-03-14 11:01:18] Production.INFO: count ==2847 [2025-03-14 11:01:20] Production.ERROR: pbx CDR StartTime 2025-03-14 08:01:06 - End Time 2025-03-14 11:01:06 [2025-03-14 11:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678397', 'tblTempUsageDetail_20' ) start [2025-03-14 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678397', 'tblTempUsageDetail_20' ) end [2025-03-14 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678397', 'tblTempVendorCDR_20' ) start [2025-03-14 11:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678397', 'tblTempVendorCDR_20' ) end [2025-03-14 11:01:20] Production.INFO: ProcessCDR(1,14678397,1,1,2) [2025-03-14 11:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678397,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678397,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678397', 'tblTempUsageDetail_20' ) start [2025-03-14 11:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678397', 'tblTempUsageDetail_20' ) end [2025-03-14 11:01:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 11:01:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 11:01:26] Production.INFO: ==2281== Releasing lock... [2025-03-14 11:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 11:01:26] Production.INFO: 49.5 MB #Memory Used# [2025-03-14 11:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 08:02:06 [end_date_ymd] => 2025-03-14 11:02:06 [RateCDR] => 1 ) [2025-03-14 11:02: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-03-14 08:02:06' and `end` < '2025-03-14 11:02: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-03-14 11:02:19] Production.INFO: count ==2853 [2025-03-14 11:02:20] Production.ERROR: pbx CDR StartTime 2025-03-14 08:02:06 - End Time 2025-03-14 11:02:06 [2025-03-14 11:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 11:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678402', 'tblTempUsageDetail_20' ) start [2025-03-14 11:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678402', 'tblTempUsageDetail_20' ) end [2025-03-14 11:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678402', 'tblTempVendorCDR_20' ) start [2025-03-14 11:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678402', 'tblTempVendorCDR_20' ) end [2025-03-14 11:02:21] Production.INFO: ProcessCDR(1,14678402,1,1,2) [2025-03-14 11:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678402,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:02:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678402,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678402', 'tblTempUsageDetail_20' ) start [2025-03-14 11:02:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678402', 'tblTempUsageDetail_20' ) end [2025-03-14 11:02:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 11:02:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 11:02:26] Production.INFO: ==2379== Releasing lock... [2025-03-14 11:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 11:02:26] Production.INFO: 49.25 MB #Memory Used# [2025-03-14 11:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 08:03:06 [end_date_ymd] => 2025-03-14 11:03:06 [RateCDR] => 1 ) [2025-03-14 11:03: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-03-14 08:03:06' and `end` < '2025-03-14 11:03: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-03-14 11:03:19] Production.INFO: count ==2860 [2025-03-14 11:03:21] Production.ERROR: pbx CDR StartTime 2025-03-14 08:03:06 - End Time 2025-03-14 11:03:06 [2025-03-14 11:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 11:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678407', 'tblTempUsageDetail_20' ) start [2025-03-14 11:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678407', 'tblTempUsageDetail_20' ) end [2025-03-14 11:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678407', 'tblTempVendorCDR_20' ) start [2025-03-14 11:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678407', 'tblTempVendorCDR_20' ) end [2025-03-14 11:03:21] Production.INFO: ProcessCDR(1,14678407,1,1,2) [2025-03-14 11:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678407,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678407,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678407', 'tblTempUsageDetail_20' ) start [2025-03-14 11:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678407', 'tblTempUsageDetail_20' ) end [2025-03-14 11:03:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 11:03:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 11:03:27] Production.INFO: ==2454== Releasing lock... [2025-03-14 11:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 11:03:27] Production.INFO: 50.25 MB #Memory Used# [2025-03-14 11:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 08:04:05 [end_date_ymd] => 2025-03-14 11:04:05 [RateCDR] => 1 ) [2025-03-14 11:04: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-03-14 08:04:05' and `end` < '2025-03-14 11:04: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-03-14 11:04:18] Production.INFO: count ==2870 [2025-03-14 11:04:20] Production.ERROR: pbx CDR StartTime 2025-03-14 08:04:05 - End Time 2025-03-14 11:04:05 [2025-03-14 11:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678412', 'tblTempUsageDetail_20' ) start [2025-03-14 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678412', 'tblTempUsageDetail_20' ) end [2025-03-14 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678412', 'tblTempVendorCDR_20' ) start [2025-03-14 11:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678412', 'tblTempVendorCDR_20' ) end [2025-03-14 11:04:20] Production.INFO: ProcessCDR(1,14678412,1,1,2) [2025-03-14 11:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678412', 'tblTempUsageDetail_20' ) start [2025-03-14 11:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678412', 'tblTempUsageDetail_20' ) end [2025-03-14 11:04:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 11:04:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 11:04:26] Production.INFO: ==2527== Releasing lock... [2025-03-14 11:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 11:04:26] Production.INFO: 49.5 MB #Memory Used# [2025-03-14 11:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 08:05:06 [end_date_ymd] => 2025-03-14 11:05:06 [RateCDR] => 1 ) [2025-03-14 11:05: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-03-14 08:05:06' and `end` < '2025-03-14 11:05: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-03-14 11:05:19] Production.INFO: count ==2871 [2025-03-14 11:05:21] Production.ERROR: pbx CDR StartTime 2025-03-14 08:05:06 - End Time 2025-03-14 11:05:06 [2025-03-14 11:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678417', 'tblTempUsageDetail_20' ) start [2025-03-14 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678417', 'tblTempUsageDetail_20' ) end [2025-03-14 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678417', 'tblTempVendorCDR_20' ) start [2025-03-14 11:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678417', 'tblTempVendorCDR_20' ) end [2025-03-14 11:05:21] Production.INFO: ProcessCDR(1,14678417,1,1,2) [2025-03-14 11:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678417', 'tblTempUsageDetail_20' ) start [2025-03-14 11:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678417', 'tblTempUsageDetail_20' ) end [2025-03-14 11:05:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 11:05:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 11:05:26] Production.INFO: ==2676== Releasing lock... [2025-03-14 11:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 11:05:26] Production.INFO: 49.75 MB #Memory Used# [2025-03-14 11:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 08:06:05 [end_date_ymd] => 2025-03-14 11:06:05 [RateCDR] => 1 ) [2025-03-14 11:06: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-03-14 08:06:05' and `end` < '2025-03-14 11:06: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-03-14 11:06:18] Production.INFO: count ==2870 [2025-03-14 11:06:20] Production.ERROR: pbx CDR StartTime 2025-03-14 08:06:05 - End Time 2025-03-14 11:06:05 [2025-03-14 11:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 11:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678422', 'tblTempUsageDetail_20' ) start [2025-03-14 11:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678422', 'tblTempUsageDetail_20' ) end [2025-03-14 11:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678422', 'tblTempVendorCDR_20' ) start [2025-03-14 11:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678422', 'tblTempVendorCDR_20' ) end [2025-03-14 11:06:20] Production.INFO: ProcessCDR(1,14678422,1,1,2) [2025-03-14 11:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678422', 'tblTempUsageDetail_20' ) start [2025-03-14 11:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678422', 'tblTempUsageDetail_20' ) end [2025-03-14 11:06:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 11:06:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 11:06:26] Production.INFO: ==2752== Releasing lock... [2025-03-14 11:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 11:06:26] Production.INFO: 49.5 MB #Memory Used# [2025-03-14 11:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 08:07:06 [end_date_ymd] => 2025-03-14 11:07:06 [RateCDR] => 1 ) [2025-03-14 11:07: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-03-14 08:07:06' and `end` < '2025-03-14 11:07: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-03-14 11:07:19] Production.INFO: count ==2881 [2025-03-14 11:07:20] Production.ERROR: pbx CDR StartTime 2025-03-14 08:07:06 - End Time 2025-03-14 11:07:06 [2025-03-14 11:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 11:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678427', 'tblTempUsageDetail_20' ) start [2025-03-14 11:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678427', 'tblTempUsageDetail_20' ) end [2025-03-14 11:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678427', 'tblTempVendorCDR_20' ) start [2025-03-14 11:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678427', 'tblTempVendorCDR_20' ) end [2025-03-14 11:07:21] Production.INFO: ProcessCDR(1,14678427,1,1,2) [2025-03-14 11:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678427', 'tblTempUsageDetail_20' ) start [2025-03-14 11:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678427', 'tblTempUsageDetail_20' ) end [2025-03-14 11:07:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 11:07:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 11:07:26] Production.INFO: ==2830== Releasing lock... [2025-03-14 11:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 11:07:26] Production.INFO: 50.25 MB #Memory Used# [2025-03-14 11:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 08:08:06 [end_date_ymd] => 2025-03-14 11:08:06 [RateCDR] => 1 ) [2025-03-14 11:08: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-03-14 08:08:06' and `end` < '2025-03-14 11:08: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-03-14 11:08:19] Production.INFO: count ==2888 [2025-03-14 11:08:21] Production.ERROR: pbx CDR StartTime 2025-03-14 08:08:06 - End Time 2025-03-14 11:08:06 [2025-03-14 11:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 11:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678432', 'tblTempUsageDetail_20' ) start [2025-03-14 11:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678432', 'tblTempUsageDetail_20' ) end [2025-03-14 11:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678432', 'tblTempVendorCDR_20' ) start [2025-03-14 11:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678432', 'tblTempVendorCDR_20' ) end [2025-03-14 11:08:21] Production.INFO: ProcessCDR(1,14678432,1,1,2) [2025-03-14 11:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678432', 'tblTempUsageDetail_20' ) start [2025-03-14 11:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678432', 'tblTempUsageDetail_20' ) end [2025-03-14 11:08:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 11:08:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 11:08:27] Production.INFO: ==2981== Releasing lock... [2025-03-14 11:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 11:08:27] Production.INFO: 49.5 MB #Memory Used# [2025-03-14 11:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 08:09:06 [end_date_ymd] => 2025-03-14 11:09:06 [RateCDR] => 1 ) [2025-03-14 11:09: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-03-14 08:09:06' and `end` < '2025-03-14 11:09: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-03-14 11:09:24] Production.INFO: count ==2883 [2025-03-14 11:09:25] Production.ERROR: pbx CDR StartTime 2025-03-14 08:09:06 - End Time 2025-03-14 11:09:06 [2025-03-14 11:09:25] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 11:09:25] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678437', 'tblTempUsageDetail_20' ) start [2025-03-14 11:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678437', 'tblTempUsageDetail_20' ) end [2025-03-14 11:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678437', 'tblTempVendorCDR_20' ) start [2025-03-14 11:09:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678437', 'tblTempVendorCDR_20' ) end [2025-03-14 11:09:26] Production.INFO: ProcessCDR(1,14678437,1,1,2) [2025-03-14 11:09:26] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:09:28] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:09:28] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:09:31] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:09:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678437', 'tblTempUsageDetail_20' ) start [2025-03-14 11:09:31] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678437', 'tblTempUsageDetail_20' ) end [2025-03-14 11:09:31] Production.ERROR: pbx prc_insertCDR start [2025-03-14 11:09:31] Production.ERROR: pbx prc_insertCDR end [2025-03-14 11:09:31] Production.INFO: ==3056== Releasing lock... [2025-03-14 11:09:31] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 11:09:31] Production.INFO: 50 MB #Memory Used# [2025-03-14 11:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 08:10:06 [end_date_ymd] => 2025-03-14 11:10:06 [RateCDR] => 1 ) [2025-03-14 11:10: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-03-14 08:10:06' and `end` < '2025-03-14 11:10: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-03-14 11:10:26] Production.INFO: count ==2897 [2025-03-14 11:10:28] Production.ERROR: pbx CDR StartTime 2025-03-14 08:10:06 - End Time 2025-03-14 11:10:06 [2025-03-14 11:10:28] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 11:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678442', 'tblTempUsageDetail_20' ) start [2025-03-14 11:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678442', 'tblTempUsageDetail_20' ) end [2025-03-14 11:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678442', 'tblTempVendorCDR_20' ) start [2025-03-14 11:10:28] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678442', 'tblTempVendorCDR_20' ) end [2025-03-14 11:10:28] Production.INFO: ProcessCDR(1,14678442,1,1,2) [2025-03-14 11:10:28] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:10:31] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:10:31] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:10:33] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:10:33] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678442', 'tblTempUsageDetail_20' ) start [2025-03-14 11:10:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678442', 'tblTempUsageDetail_20' ) end [2025-03-14 11:10:34] Production.ERROR: pbx prc_insertCDR start [2025-03-14 11:10:34] Production.ERROR: pbx prc_insertCDR end [2025-03-14 11:10:34] Production.INFO: ==3135== Releasing lock... [2025-03-14 11:10:34] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 11:10:34] Production.INFO: 50 MB #Memory Used# [2025-03-14 11:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 08:11:06 [end_date_ymd] => 2025-03-14 11:11:06 [RateCDR] => 1 ) [2025-03-14 11:11: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-03-14 08:11:06' and `end` < '2025-03-14 11:11: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-03-14 11:11:21] Production.INFO: count ==3009 [2025-03-14 11:11:23] Production.ERROR: pbx CDR StartTime 2025-03-14 08:11:06 - End Time 2025-03-14 11:11:06 [2025-03-14 11:11:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 11:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678448', 'tblTempUsageDetail_20' ) start [2025-03-14 11:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678448', 'tblTempUsageDetail_20' ) end [2025-03-14 11:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678448', 'tblTempVendorCDR_20' ) start [2025-03-14 11:11:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678448', 'tblTempVendorCDR_20' ) end [2025-03-14 11:11:23] Production.INFO: ProcessCDR(1,14678448,1,1,2) [2025-03-14 11:11:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678448,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678448,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678448', 'tblTempUsageDetail_20' ) start [2025-03-14 11:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678448', 'tblTempUsageDetail_20' ) end [2025-03-14 11:11:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 11:11:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 11:11:26] Production.INFO: ==3211== Releasing lock... [2025-03-14 11:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 11:11:26] Production.INFO: 50.5 MB #Memory Used# [2025-03-14 11:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 08:12:05 [end_date_ymd] => 2025-03-14 11:12:05 [RateCDR] => 1 ) [2025-03-14 11:12: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-03-14 08:12:05' and `end` < '2025-03-14 11:12: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-03-14 11:12:18] Production.INFO: count ==3020 [2025-03-14 11:12:20] Production.ERROR: pbx CDR StartTime 2025-03-14 08:12:05 - End Time 2025-03-14 11:12:05 [2025-03-14 11:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 11:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678453', 'tblTempUsageDetail_20' ) start [2025-03-14 11:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678453', 'tblTempUsageDetail_20' ) end [2025-03-14 11:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678453', 'tblTempVendorCDR_20' ) start [2025-03-14 11:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678453', 'tblTempVendorCDR_20' ) end [2025-03-14 11:12:20] Production.INFO: ProcessCDR(1,14678453,1,1,2) [2025-03-14 11:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678453,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678453,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678453', 'tblTempUsageDetail_20' ) start [2025-03-14 11:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678453', 'tblTempUsageDetail_20' ) end [2025-03-14 11:12:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 11:12:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 11:12:25] Production.INFO: ==3401== Releasing lock... [2025-03-14 11:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 11:12:25] Production.INFO: 50.5 MB #Memory Used# [2025-03-14 11:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 08:13:06 [end_date_ymd] => 2025-03-14 11:13:06 [RateCDR] => 1 ) [2025-03-14 11:13: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-03-14 08:13:06' and `end` < '2025-03-14 11:13: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-03-14 11:13:19] Production.INFO: count ==3023 [2025-03-14 11:13:20] Production.ERROR: pbx CDR StartTime 2025-03-14 08:13:06 - End Time 2025-03-14 11:13:06 [2025-03-14 11:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678458', 'tblTempUsageDetail_20' ) start [2025-03-14 11:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678458', 'tblTempUsageDetail_20' ) end [2025-03-14 11:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678458', 'tblTempVendorCDR_20' ) start [2025-03-14 11:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678458', 'tblTempVendorCDR_20' ) end [2025-03-14 11:13:21] Production.INFO: ProcessCDR(1,14678458,1,1,2) [2025-03-14 11:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678458,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678458,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678458', 'tblTempUsageDetail_20' ) start [2025-03-14 11:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678458', 'tblTempUsageDetail_20' ) end [2025-03-14 11:13:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 11:13:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 11:13:26] Production.INFO: ==3478== Releasing lock... [2025-03-14 11:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 11:13:26] Production.INFO: 51 MB #Memory Used# [2025-03-14 11:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 08:14:05 [end_date_ymd] => 2025-03-14 11:14:05 [RateCDR] => 1 ) [2025-03-14 11:14: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-03-14 08:14:05' and `end` < '2025-03-14 11:14: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-03-14 11:14:18] Production.INFO: count ==3049 [2025-03-14 11:14:20] Production.ERROR: pbx CDR StartTime 2025-03-14 08:14:05 - End Time 2025-03-14 11:14:05 [2025-03-14 11:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678463', 'tblTempUsageDetail_20' ) start [2025-03-14 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678463', 'tblTempUsageDetail_20' ) end [2025-03-14 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678463', 'tblTempVendorCDR_20' ) start [2025-03-14 11:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678463', 'tblTempVendorCDR_20' ) end [2025-03-14 11:14:20] Production.INFO: ProcessCDR(1,14678463,1,1,2) [2025-03-14 11:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678463', 'tblTempUsageDetail_20' ) start [2025-03-14 11:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678463', 'tblTempUsageDetail_20' ) end [2025-03-14 11:14:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 11:14:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 11:14:26] Production.INFO: ==3551== Releasing lock... [2025-03-14 11:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 11:14:26] Production.INFO: 51 MB #Memory Used# [2025-03-14 11:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 08:15:06 [end_date_ymd] => 2025-03-14 11:15:06 [RateCDR] => 1 ) [2025-03-14 11:15: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-03-14 08:15:06' and `end` < '2025-03-14 11:15: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-03-14 11:15:19] Production.INFO: count ==3089 [2025-03-14 11:15:21] Production.ERROR: pbx CDR StartTime 2025-03-14 08:15:06 - End Time 2025-03-14 11:15:06 [2025-03-14 11:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 11:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678468', 'tblTempUsageDetail_20' ) start [2025-03-14 11:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678468', 'tblTempUsageDetail_20' ) end [2025-03-14 11:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678468', 'tblTempVendorCDR_20' ) start [2025-03-14 11:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678468', 'tblTempVendorCDR_20' ) end [2025-03-14 11:15:21] Production.INFO: ProcessCDR(1,14678468,1,1,2) [2025-03-14 11:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678468', 'tblTempUsageDetail_20' ) start [2025-03-14 11:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678468', 'tblTempUsageDetail_20' ) end [2025-03-14 11:15:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 11:15:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 11:15:26] Production.INFO: ==3702== Releasing lock... [2025-03-14 11:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 11:15:26] Production.INFO: 51.25 MB #Memory Used# [2025-03-14 11:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 08:16:05 [end_date_ymd] => 2025-03-14 11:16:05 [RateCDR] => 1 ) [2025-03-14 11:16: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-03-14 08:16:05' and `end` < '2025-03-14 11:16: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-03-14 11:16:19] Production.INFO: count ==3093 [2025-03-14 11:16:20] Production.ERROR: pbx CDR StartTime 2025-03-14 08:16:05 - End Time 2025-03-14 11:16:05 [2025-03-14 11:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 11:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678473', 'tblTempUsageDetail_20' ) start [2025-03-14 11:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678473', 'tblTempUsageDetail_20' ) end [2025-03-14 11:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678473', 'tblTempVendorCDR_20' ) start [2025-03-14 11:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678473', 'tblTempVendorCDR_20' ) end [2025-03-14 11:16:21] Production.INFO: ProcessCDR(1,14678473,1,1,2) [2025-03-14 11:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678473', 'tblTempUsageDetail_20' ) start [2025-03-14 11:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678473', 'tblTempUsageDetail_20' ) end [2025-03-14 11:16:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 11:16:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 11:16:26] Production.INFO: ==3780== Releasing lock... [2025-03-14 11:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 11:16:26] Production.INFO: 52.25 MB #Memory Used# [2025-03-14 11:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 08:17:06 [end_date_ymd] => 2025-03-14 11:17:06 [RateCDR] => 1 ) [2025-03-14 11:17: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-03-14 08:17:06' and `end` < '2025-03-14 11:17: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-03-14 11:17:19] Production.INFO: count ==3104 [2025-03-14 11:17:21] Production.ERROR: pbx CDR StartTime 2025-03-14 08:17:06 - End Time 2025-03-14 11:17:06 [2025-03-14 11:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 11:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678478', 'tblTempUsageDetail_20' ) start [2025-03-14 11:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678478', 'tblTempUsageDetail_20' ) end [2025-03-14 11:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678478', 'tblTempVendorCDR_20' ) start [2025-03-14 11:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678478', 'tblTempVendorCDR_20' ) end [2025-03-14 11:17:21] Production.INFO: ProcessCDR(1,14678478,1,1,2) [2025-03-14 11:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678478', 'tblTempUsageDetail_20' ) start [2025-03-14 11:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678478', 'tblTempUsageDetail_20' ) end [2025-03-14 11:17:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 11:17:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 11:17:27] Production.INFO: ==3855== Releasing lock... [2025-03-14 11:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 11:17:27] Production.INFO: 51.75 MB #Memory Used# [2025-03-14 11:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 08:18:05 [end_date_ymd] => 2025-03-14 11:18:05 [RateCDR] => 1 ) [2025-03-14 11:18: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-03-14 08:18:05' and `end` < '2025-03-14 11:18: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-03-14 11:18:18] Production.INFO: count ==3116 [2025-03-14 11:18:20] Production.ERROR: pbx CDR StartTime 2025-03-14 08:18:05 - End Time 2025-03-14 11:18:05 [2025-03-14 11:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 11:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678483', 'tblTempUsageDetail_20' ) start [2025-03-14 11:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678483', 'tblTempUsageDetail_20' ) end [2025-03-14 11:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678483', 'tblTempVendorCDR_20' ) start [2025-03-14 11:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678483', 'tblTempVendorCDR_20' ) end [2025-03-14 11:18:20] Production.INFO: ProcessCDR(1,14678483,1,1,2) [2025-03-14 11:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678483', 'tblTempUsageDetail_20' ) start [2025-03-14 11:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678483', 'tblTempUsageDetail_20' ) end [2025-03-14 11:18:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 11:18:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 11:18:26] Production.INFO: ==3949== Releasing lock... [2025-03-14 11:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 11:18:26] Production.INFO: 51.75 MB #Memory Used# [2025-03-14 11:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 08:19:06 [end_date_ymd] => 2025-03-14 11:19:06 [RateCDR] => 1 ) [2025-03-14 11:19: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-03-14 08:19:06' and `end` < '2025-03-14 11:19: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-03-14 11:19:19] Production.INFO: count ==3132 [2025-03-14 11:19:21] Production.ERROR: pbx CDR StartTime 2025-03-14 08:19:06 - End Time 2025-03-14 11:19:06 [2025-03-14 11:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 11:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678488', 'tblTempUsageDetail_20' ) start [2025-03-14 11:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678488', 'tblTempUsageDetail_20' ) end [2025-03-14 11:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678488', 'tblTempVendorCDR_20' ) start [2025-03-14 11:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678488', 'tblTempVendorCDR_20' ) end [2025-03-14 11:19:21] Production.INFO: ProcessCDR(1,14678488,1,1,2) [2025-03-14 11:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678488', 'tblTempUsageDetail_20' ) start [2025-03-14 11:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678488', 'tblTempUsageDetail_20' ) end [2025-03-14 11:19:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 11:19:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 11:19:26] Production.INFO: ==4050== Releasing lock... [2025-03-14 11:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 11:19:26] Production.INFO: 51.75 MB #Memory Used# [2025-03-14 11:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 08:20:07 [end_date_ymd] => 2025-03-14 11:20:07 [RateCDR] => 1 ) [2025-03-14 11:20:07] 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-03-14 08:20:07' and `end` < '2025-03-14 11:20:07' 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-03-14 11:20:20] Production.INFO: count ==3160 [2025-03-14 11:20:22] Production.ERROR: pbx CDR StartTime 2025-03-14 08:20:07 - End Time 2025-03-14 11:20:07 [2025-03-14 11:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 11:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678494', 'tblTempUsageDetail_20' ) start [2025-03-14 11:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678494', 'tblTempUsageDetail_20' ) end [2025-03-14 11:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678494', 'tblTempVendorCDR_20' ) start [2025-03-14 11:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678494', 'tblTempVendorCDR_20' ) end [2025-03-14 11:20:22] Production.INFO: ProcessCDR(1,14678494,1,1,2) [2025-03-14 11:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678494,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678494,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678494', 'tblTempUsageDetail_20' ) start [2025-03-14 11:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678494', 'tblTempUsageDetail_20' ) end [2025-03-14 11:20:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 11:20:28] Production.ERROR: pbx prc_insertCDR end [2025-03-14 11:20:28] Production.INFO: ==4167== Releasing lock... [2025-03-14 11:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 11:20:28] Production.INFO: 52 MB #Memory Used# [2025-03-14 11:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 08:21:06 [end_date_ymd] => 2025-03-14 11:21:06 [RateCDR] => 1 ) [2025-03-14 11:21: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-03-14 08:21:06' and `end` < '2025-03-14 11:21: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-03-14 11:21:18] Production.INFO: count ==3259 [2025-03-14 11:21:20] Production.ERROR: pbx CDR StartTime 2025-03-14 08:21:06 - End Time 2025-03-14 11:21:06 [2025-03-14 11:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 11:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678499', 'tblTempUsageDetail_20' ) start [2025-03-14 11:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678499', 'tblTempUsageDetail_20' ) end [2025-03-14 11:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678499', 'tblTempVendorCDR_20' ) start [2025-03-14 11:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678499', 'tblTempVendorCDR_20' ) end [2025-03-14 11:21:21] Production.INFO: ProcessCDR(1,14678499,1,1,2) [2025-03-14 11:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678499,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678499,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678499', 'tblTempUsageDetail_20' ) start [2025-03-14 11:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678499', 'tblTempUsageDetail_20' ) end [2025-03-14 11:21:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 11:21:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 11:21:26] Production.INFO: ==4299== Releasing lock... [2025-03-14 11:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 11:21:26] Production.INFO: 52.75 MB #Memory Used# [2025-03-14 11:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 08:22:06 [end_date_ymd] => 2025-03-14 11:22:06 [RateCDR] => 1 ) [2025-03-14 11:22: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-03-14 08:22:06' and `end` < '2025-03-14 11:22: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-03-14 11:22:19] Production.INFO: count ==3283 [2025-03-14 11:22:21] Production.ERROR: pbx CDR StartTime 2025-03-14 08:22:06 - End Time 2025-03-14 11:22:06 [2025-03-14 11:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678504', 'tblTempUsageDetail_20' ) start [2025-03-14 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678504', 'tblTempUsageDetail_20' ) end [2025-03-14 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678504', 'tblTempVendorCDR_20' ) start [2025-03-14 11:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678504', 'tblTempVendorCDR_20' ) end [2025-03-14 11:22:21] Production.INFO: ProcessCDR(1,14678504,1,1,2) [2025-03-14 11:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678504,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678504,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678504', 'tblTempUsageDetail_20' ) start [2025-03-14 11:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678504', 'tblTempUsageDetail_20' ) end [2025-03-14 11:22:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 11:22:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 11:22:27] Production.INFO: ==4424== Releasing lock... [2025-03-14 11:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 11:22:27] Production.INFO: 52.75 MB #Memory Used# [2025-03-14 11:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 08:23:05 [end_date_ymd] => 2025-03-14 11:23:05 [RateCDR] => 1 ) [2025-03-14 11:23: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-03-14 08:23:05' and `end` < '2025-03-14 11:23: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-03-14 11:23:18] Production.INFO: count ==3292 [2025-03-14 11:23:20] Production.ERROR: pbx CDR StartTime 2025-03-14 08:23:05 - End Time 2025-03-14 11:23:05 [2025-03-14 11:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678509', 'tblTempUsageDetail_20' ) start [2025-03-14 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678509', 'tblTempUsageDetail_20' ) end [2025-03-14 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678509', 'tblTempVendorCDR_20' ) start [2025-03-14 11:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678509', 'tblTempVendorCDR_20' ) end [2025-03-14 11:23:20] Production.INFO: ProcessCDR(1,14678509,1,1,2) [2025-03-14 11:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678509,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678509,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678509', 'tblTempUsageDetail_20' ) start [2025-03-14 11:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678509', 'tblTempUsageDetail_20' ) end [2025-03-14 11:23:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 11:23:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 11:23:26] Production.INFO: ==4536== Releasing lock... [2025-03-14 11:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 11:23:26] Production.INFO: 53 MB #Memory Used# [2025-03-14 11:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 08:24:05 [end_date_ymd] => 2025-03-14 11:24:05 [RateCDR] => 1 ) [2025-03-14 11:24: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-03-14 08:24:05' and `end` < '2025-03-14 11:24: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-03-14 11:24:18] Production.INFO: count ==3300 [2025-03-14 11:24:20] Production.ERROR: pbx CDR StartTime 2025-03-14 08:24:05 - End Time 2025-03-14 11:24:05 [2025-03-14 11:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 11:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678514', 'tblTempUsageDetail_20' ) start [2025-03-14 11:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678514', 'tblTempUsageDetail_20' ) end [2025-03-14 11:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678514', 'tblTempVendorCDR_20' ) start [2025-03-14 11:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678514', 'tblTempVendorCDR_20' ) end [2025-03-14 11:24:20] Production.INFO: ProcessCDR(1,14678514,1,1,2) [2025-03-14 11:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678514', 'tblTempUsageDetail_20' ) start [2025-03-14 11:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678514', 'tblTempUsageDetail_20' ) end [2025-03-14 11:24:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 11:24:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 11:24:26] Production.INFO: ==4647== Releasing lock... [2025-03-14 11:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 11:24:26] Production.INFO: 53 MB #Memory Used# [2025-03-14 11:25:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 08:25:04 [end_date_ymd] => 2025-03-14 11:25:04 [RateCDR] => 1 ) [2025-03-14 11: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-03-14 08:25:04' and `end` < '2025-03-14 11: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-03-14 11:25:17] Production.INFO: count ==3308 [2025-03-14 11:25:19] Production.ERROR: pbx CDR StartTime 2025-03-14 08:25:04 - End Time 2025-03-14 11:25:04 [2025-03-14 11:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 11:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678519', 'tblTempUsageDetail_20' ) start [2025-03-14 11:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678519', 'tblTempUsageDetail_20' ) end [2025-03-14 11:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678519', 'tblTempVendorCDR_20' ) start [2025-03-14 11:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678519', 'tblTempVendorCDR_20' ) end [2025-03-14 11:25:19] Production.INFO: ProcessCDR(1,14678519,1,1,2) [2025-03-14 11:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678519', 'tblTempUsageDetail_20' ) start [2025-03-14 11:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678519', 'tblTempUsageDetail_20' ) end [2025-03-14 11:25:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 11:25:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 11:25:25] Production.INFO: ==4751== Releasing lock... [2025-03-14 11:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 11:25:25] Production.INFO: 53 MB #Memory Used# [2025-03-14 11:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 08:26:05 [end_date_ymd] => 2025-03-14 11:26:05 [RateCDR] => 1 ) [2025-03-14 11:26: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-03-14 08:26:05' and `end` < '2025-03-14 11:26: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-03-14 11:26:19] Production.INFO: count ==3330 [2025-03-14 11:26:20] Production.ERROR: pbx CDR StartTime 2025-03-14 08:26:05 - End Time 2025-03-14 11:26:05 [2025-03-14 11:26:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 11:26:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678524', 'tblTempUsageDetail_20' ) start [2025-03-14 11:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678524', 'tblTempUsageDetail_20' ) end [2025-03-14 11:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678524', 'tblTempVendorCDR_20' ) start [2025-03-14 11:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678524', 'tblTempVendorCDR_20' ) end [2025-03-14 11:26:21] Production.INFO: ProcessCDR(1,14678524,1,1,2) [2025-03-14 11:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678524', 'tblTempUsageDetail_20' ) start [2025-03-14 11:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678524', 'tblTempUsageDetail_20' ) end [2025-03-14 11:26:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 11:26:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 11:26:26] Production.INFO: ==4859== Releasing lock... [2025-03-14 11:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 11:26:26] Production.INFO: 53.5 MB #Memory Used# [2025-03-14 11:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 08:27:05 [end_date_ymd] => 2025-03-14 11:27:05 [RateCDR] => 1 ) [2025-03-14 11:27: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-03-14 08:27:05' and `end` < '2025-03-14 11:27: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-03-14 11:27:18] Production.INFO: count ==3339 [2025-03-14 11:27:20] Production.ERROR: pbx CDR StartTime 2025-03-14 08:27:05 - End Time 2025-03-14 11:27:05 [2025-03-14 11:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678529', 'tblTempUsageDetail_20' ) start [2025-03-14 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678529', 'tblTempUsageDetail_20' ) end [2025-03-14 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678529', 'tblTempVendorCDR_20' ) start [2025-03-14 11:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678529', 'tblTempVendorCDR_20' ) end [2025-03-14 11:27:20] Production.INFO: ProcessCDR(1,14678529,1,1,2) [2025-03-14 11:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678529', 'tblTempUsageDetail_20' ) start [2025-03-14 11:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678529', 'tblTempUsageDetail_20' ) end [2025-03-14 11:27:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 11:27:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 11:27:26] Production.INFO: ==4999== Releasing lock... [2025-03-14 11:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 11:27:26] Production.INFO: 54 MB #Memory Used# [2025-03-14 11:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 08:28:05 [end_date_ymd] => 2025-03-14 11:28:05 [RateCDR] => 1 ) [2025-03-14 11:28: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-03-14 08:28:05' and `end` < '2025-03-14 11:28: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-03-14 11:28:19] Production.INFO: count ==3353 [2025-03-14 11:28:21] Production.ERROR: pbx CDR StartTime 2025-03-14 08:28:05 - End Time 2025-03-14 11:28:05 [2025-03-14 11:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 11:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678534', 'tblTempUsageDetail_20' ) start [2025-03-14 11:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678534', 'tblTempUsageDetail_20' ) end [2025-03-14 11:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678534', 'tblTempVendorCDR_20' ) start [2025-03-14 11:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678534', 'tblTempVendorCDR_20' ) end [2025-03-14 11:28:21] Production.INFO: ProcessCDR(1,14678534,1,1,2) [2025-03-14 11:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678534', 'tblTempUsageDetail_20' ) start [2025-03-14 11:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678534', 'tblTempUsageDetail_20' ) end [2025-03-14 11:28:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 11:28:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 11:28:27] Production.INFO: ==5102== Releasing lock... [2025-03-14 11:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 11:28:27] Production.INFO: 53 MB #Memory Used# [2025-03-14 11:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 08:29:05 [end_date_ymd] => 2025-03-14 11:29:05 [RateCDR] => 1 ) [2025-03-14 11:29: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-03-14 08:29:05' and `end` < '2025-03-14 11:29: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-03-14 11:29:18] Production.INFO: count ==3357 [2025-03-14 11:29:20] Production.ERROR: pbx CDR StartTime 2025-03-14 08:29:05 - End Time 2025-03-14 11:29:05 [2025-03-14 11:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678539', 'tblTempUsageDetail_20' ) start [2025-03-14 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678539', 'tblTempUsageDetail_20' ) end [2025-03-14 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678539', 'tblTempVendorCDR_20' ) start [2025-03-14 11:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678539', 'tblTempVendorCDR_20' ) end [2025-03-14 11:29:20] Production.INFO: ProcessCDR(1,14678539,1,1,2) [2025-03-14 11:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678539', 'tblTempUsageDetail_20' ) start [2025-03-14 11:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678539', 'tblTempUsageDetail_20' ) end [2025-03-14 11:29:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 11:29:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 11:29:26] Production.INFO: ==5204== Releasing lock... [2025-03-14 11:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 11:29:26] Production.INFO: 53.25 MB #Memory Used# [2025-03-14 11:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 08:30:07 [end_date_ymd] => 2025-03-14 11:30:07 [RateCDR] => 1 ) [2025-03-14 11:30:07] 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-03-14 08:30:07' and `end` < '2025-03-14 11:30:07' 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-03-14 11:30:20] Production.INFO: count ==3373 [2025-03-14 11:30:22] Production.ERROR: pbx CDR StartTime 2025-03-14 08:30:07 - End Time 2025-03-14 11:30:07 [2025-03-14 11:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 11:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678545', 'tblTempUsageDetail_20' ) start [2025-03-14 11:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678545', 'tblTempUsageDetail_20' ) end [2025-03-14 11:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678545', 'tblTempVendorCDR_20' ) start [2025-03-14 11:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678545', 'tblTempVendorCDR_20' ) end [2025-03-14 11:30:22] Production.INFO: ProcessCDR(1,14678545,1,1,2) [2025-03-14 11:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678545,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678545,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678545', 'tblTempUsageDetail_20' ) start [2025-03-14 11:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678545', 'tblTempUsageDetail_20' ) end [2025-03-14 11:30:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 11:30:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 11:30:27] Production.INFO: ==5311== Releasing lock... [2025-03-14 11:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 11:30:27] Production.INFO: 54 MB #Memory Used# [2025-03-14 11:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 08:31:05 [end_date_ymd] => 2025-03-14 11:31:05 [RateCDR] => 1 ) [2025-03-14 11:31: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-03-14 08:31:05' and `end` < '2025-03-14 11:31: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-03-14 11:31:18] Production.INFO: count ==3463 [2025-03-14 11:31:20] Production.ERROR: pbx CDR StartTime 2025-03-14 08:31:05 - End Time 2025-03-14 11:31:05 [2025-03-14 11:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 11:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678550', 'tblTempUsageDetail_20' ) start [2025-03-14 11:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678550', 'tblTempUsageDetail_20' ) end [2025-03-14 11:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678550', 'tblTempVendorCDR_20' ) start [2025-03-14 11:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678550', 'tblTempVendorCDR_20' ) end [2025-03-14 11:31:20] Production.INFO: ProcessCDR(1,14678550,1,1,2) [2025-03-14 11:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678550,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678550,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678550', 'tblTempUsageDetail_20' ) start [2025-03-14 11:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678550', 'tblTempUsageDetail_20' ) end [2025-03-14 11:31:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 11:31:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 11:31:24] Production.INFO: ==5418== Releasing lock... [2025-03-14 11:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 11:31:24] Production.INFO: 54 MB #Memory Used# [2025-03-14 11:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 08:32:06 [end_date_ymd] => 2025-03-14 11:32:06 [RateCDR] => 1 ) [2025-03-14 11:32: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-03-14 08:32:06' and `end` < '2025-03-14 11:32: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-03-14 11:32:19] Production.INFO: count ==3482 [2025-03-14 11:32:21] Production.ERROR: pbx CDR StartTime 2025-03-14 08:32:06 - End Time 2025-03-14 11:32:06 [2025-03-14 11:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678555', 'tblTempUsageDetail_20' ) start [2025-03-14 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678555', 'tblTempUsageDetail_20' ) end [2025-03-14 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678555', 'tblTempVendorCDR_20' ) start [2025-03-14 11:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678555', 'tblTempVendorCDR_20' ) end [2025-03-14 11:32:21] Production.INFO: ProcessCDR(1,14678555,1,1,2) [2025-03-14 11:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678555,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678555,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678555', 'tblTempUsageDetail_20' ) start [2025-03-14 11:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678555', 'tblTempUsageDetail_20' ) end [2025-03-14 11:32:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 11:32:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 11:32:27] Production.INFO: ==5528== Releasing lock... [2025-03-14 11:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 11:32:27] Production.INFO: 54.5 MB #Memory Used# [2025-03-14 11:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 08:33:05 [end_date_ymd] => 2025-03-14 11:33:05 [RateCDR] => 1 ) [2025-03-14 11:33: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-03-14 08:33:05' and `end` < '2025-03-14 11:33: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-03-14 11:33:18] Production.INFO: count ==3492 [2025-03-14 11:33:20] Production.ERROR: pbx CDR StartTime 2025-03-14 08:33:05 - End Time 2025-03-14 11:33:05 [2025-03-14 11:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 11:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678560', 'tblTempUsageDetail_20' ) start [2025-03-14 11:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678560', 'tblTempUsageDetail_20' ) end [2025-03-14 11:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678560', 'tblTempVendorCDR_20' ) start [2025-03-14 11:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678560', 'tblTempVendorCDR_20' ) end [2025-03-14 11:33:21] Production.INFO: ProcessCDR(1,14678560,1,1,2) [2025-03-14 11:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678560,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678560,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678560', 'tblTempUsageDetail_20' ) start [2025-03-14 11:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678560', 'tblTempUsageDetail_20' ) end [2025-03-14 11:33:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 11:33:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 11:33:26] Production.INFO: ==5639== Releasing lock... [2025-03-14 11:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 11:33:26] Production.INFO: 55 MB #Memory Used# [2025-03-14 11:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 08:34:06 [end_date_ymd] => 2025-03-14 11:34:06 [RateCDR] => 1 ) [2025-03-14 11:34: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-03-14 08:34:06' and `end` < '2025-03-14 11:34: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-03-14 11:34:19] Production.INFO: count ==3503 [2025-03-14 11:34:21] Production.ERROR: pbx CDR StartTime 2025-03-14 08:34:06 - End Time 2025-03-14 11:34:06 [2025-03-14 11:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678565', 'tblTempUsageDetail_20' ) start [2025-03-14 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678565', 'tblTempUsageDetail_20' ) end [2025-03-14 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678565', 'tblTempVendorCDR_20' ) start [2025-03-14 11:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678565', 'tblTempVendorCDR_20' ) end [2025-03-14 11:34:21] Production.INFO: ProcessCDR(1,14678565,1,1,2) [2025-03-14 11:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678565', 'tblTempUsageDetail_20' ) start [2025-03-14 11:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678565', 'tblTempUsageDetail_20' ) end [2025-03-14 11:34:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 11:34:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 11:34:27] Production.INFO: ==5750== Releasing lock... [2025-03-14 11:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 11:34:27] Production.INFO: 55.25 MB #Memory Used# [2025-03-14 11:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 08:35:05 [end_date_ymd] => 2025-03-14 11:35:05 [RateCDR] => 1 ) [2025-03-14 11:35: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-03-14 08:35:05' and `end` < '2025-03-14 11:35: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-03-14 11:35:18] Production.INFO: count ==3512 [2025-03-14 11:35:20] Production.ERROR: pbx CDR StartTime 2025-03-14 08:35:05 - End Time 2025-03-14 11:35:05 [2025-03-14 11:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 11:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678570', 'tblTempUsageDetail_20' ) start [2025-03-14 11:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678570', 'tblTempUsageDetail_20' ) end [2025-03-14 11:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678570', 'tblTempVendorCDR_20' ) start [2025-03-14 11:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678570', 'tblTempVendorCDR_20' ) end [2025-03-14 11:35:20] Production.INFO: ProcessCDR(1,14678570,1,1,2) [2025-03-14 11:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678570', 'tblTempUsageDetail_20' ) start [2025-03-14 11:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678570', 'tblTempUsageDetail_20' ) end [2025-03-14 11:35:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 11:35:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 11:35:26] Production.INFO: ==5857== Releasing lock... [2025-03-14 11:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 11:35:26] Production.INFO: 55.75 MB #Memory Used# [2025-03-14 11:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 08:36:06 [end_date_ymd] => 2025-03-14 11:36:06 [RateCDR] => 1 ) [2025-03-14 11:36: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-03-14 08:36:06' and `end` < '2025-03-14 11:36: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-03-14 11:36:19] Production.INFO: count ==3503 [2025-03-14 11:36:21] Production.ERROR: pbx CDR StartTime 2025-03-14 08:36:06 - End Time 2025-03-14 11:36:06 [2025-03-14 11:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 11:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678575', 'tblTempUsageDetail_20' ) start [2025-03-14 11:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678575', 'tblTempUsageDetail_20' ) end [2025-03-14 11:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678575', 'tblTempVendorCDR_20' ) start [2025-03-14 11:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678575', 'tblTempVendorCDR_20' ) end [2025-03-14 11:36:21] Production.INFO: ProcessCDR(1,14678575,1,1,2) [2025-03-14 11:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678575', 'tblTempUsageDetail_20' ) start [2025-03-14 11:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678575', 'tblTempUsageDetail_20' ) end [2025-03-14 11:36:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 11:36:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 11:36:26] Production.INFO: ==5946== Releasing lock... [2025-03-14 11:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 11:36:26] Production.INFO: 55.5 MB #Memory Used# [2025-03-14 11:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 08:37:05 [end_date_ymd] => 2025-03-14 11:37:05 [RateCDR] => 1 ) [2025-03-14 11:37: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-03-14 08:37:05' and `end` < '2025-03-14 11:37: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-03-14 11:37:18] Production.INFO: count ==3493 [2025-03-14 11:37:20] Production.ERROR: pbx CDR StartTime 2025-03-14 08:37:05 - End Time 2025-03-14 11:37:05 [2025-03-14 11:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 11:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678580', 'tblTempUsageDetail_20' ) start [2025-03-14 11:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678580', 'tblTempUsageDetail_20' ) end [2025-03-14 11:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678580', 'tblTempVendorCDR_20' ) start [2025-03-14 11:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678580', 'tblTempVendorCDR_20' ) end [2025-03-14 11:37:20] Production.INFO: ProcessCDR(1,14678580,1,1,2) [2025-03-14 11:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678580', 'tblTempUsageDetail_20' ) start [2025-03-14 11:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678580', 'tblTempUsageDetail_20' ) end [2025-03-14 11:37:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 11:37:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 11:37:26] Production.INFO: ==6028== Releasing lock... [2025-03-14 11:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 11:37:26] Production.INFO: 54.5 MB #Memory Used# [2025-03-14 11:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 08:38:06 [end_date_ymd] => 2025-03-14 11:38:06 [RateCDR] => 1 ) [2025-03-14 11:38: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-03-14 08:38:06' and `end` < '2025-03-14 11:38: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-03-14 11:38:19] Production.INFO: count ==3495 [2025-03-14 11:38:21] Production.ERROR: pbx CDR StartTime 2025-03-14 08:38:06 - End Time 2025-03-14 11:38:06 [2025-03-14 11:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678585', 'tblTempUsageDetail_20' ) start [2025-03-14 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678585', 'tblTempUsageDetail_20' ) end [2025-03-14 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678585', 'tblTempVendorCDR_20' ) start [2025-03-14 11:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678585', 'tblTempVendorCDR_20' ) end [2025-03-14 11:38:21] Production.INFO: ProcessCDR(1,14678585,1,1,2) [2025-03-14 11:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:38:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678585', 'tblTempUsageDetail_20' ) start [2025-03-14 11:38:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678585', 'tblTempUsageDetail_20' ) end [2025-03-14 11:38:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 11:38:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 11:38:27] Production.INFO: ==6119== Releasing lock... [2025-03-14 11:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 11:38:27] Production.INFO: 55.25 MB #Memory Used# [2025-03-14 11:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 08:39:05 [end_date_ymd] => 2025-03-14 11:39:05 [RateCDR] => 1 ) [2025-03-14 11:39: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-03-14 08:39:05' and `end` < '2025-03-14 11:39: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-03-14 11:39:18] Production.INFO: count ==3516 [2025-03-14 11:39:21] Production.ERROR: pbx CDR StartTime 2025-03-14 08:39:05 - End Time 2025-03-14 11:39:05 [2025-03-14 11:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678590', 'tblTempUsageDetail_20' ) start [2025-03-14 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678590', 'tblTempUsageDetail_20' ) end [2025-03-14 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678590', 'tblTempVendorCDR_20' ) start [2025-03-14 11:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678590', 'tblTempVendorCDR_20' ) end [2025-03-14 11:39:21] Production.INFO: ProcessCDR(1,14678590,1,1,2) [2025-03-14 11:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678590', 'tblTempUsageDetail_20' ) start [2025-03-14 11:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678590', 'tblTempUsageDetail_20' ) end [2025-03-14 11:39:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 11:39:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 11:39:27] Production.INFO: ==6202== Releasing lock... [2025-03-14 11:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 11:39:27] Production.INFO: 55 MB #Memory Used# [2025-03-14 11:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 08:40:06 [end_date_ymd] => 2025-03-14 11:40:06 [RateCDR] => 1 ) [2025-03-14 11:40: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-03-14 08:40:06' and `end` < '2025-03-14 11:40: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-03-14 11:40:19] Production.INFO: count ==3521 [2025-03-14 11:40:21] Production.ERROR: pbx CDR StartTime 2025-03-14 08:40:06 - End Time 2025-03-14 11:40:06 [2025-03-14 11:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 11:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678596', 'tblTempUsageDetail_20' ) start [2025-03-14 11:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678596', 'tblTempUsageDetail_20' ) end [2025-03-14 11:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678596', 'tblTempVendorCDR_20' ) start [2025-03-14 11:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678596', 'tblTempVendorCDR_20' ) end [2025-03-14 11:40:22] Production.INFO: ProcessCDR(1,14678596,1,1,2) [2025-03-14 11:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678596,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678596,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678596', 'tblTempUsageDetail_20' ) start [2025-03-14 11:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678596', 'tblTempUsageDetail_20' ) end [2025-03-14 11:40:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 11:40:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 11:40:27] Production.INFO: ==6280== Releasing lock... [2025-03-14 11:40:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 11:40:27] Production.INFO: 55.5 MB #Memory Used# [2025-03-14 11:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 08:41:05 [end_date_ymd] => 2025-03-14 11:41:05 [RateCDR] => 1 ) [2025-03-14 11:41: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-03-14 08:41:05' and `end` < '2025-03-14 11:41: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-03-14 11:41:18] Production.INFO: count ==3618 [2025-03-14 11:41:20] Production.ERROR: pbx CDR StartTime 2025-03-14 08:41:05 - End Time 2025-03-14 11:41:05 [2025-03-14 11:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 11:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678601', 'tblTempUsageDetail_20' ) start [2025-03-14 11:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678601', 'tblTempUsageDetail_20' ) end [2025-03-14 11:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678601', 'tblTempVendorCDR_20' ) start [2025-03-14 11:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678601', 'tblTempVendorCDR_20' ) end [2025-03-14 11:41:20] Production.INFO: ProcessCDR(1,14678601,1,1,2) [2025-03-14 11:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678601,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678601,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678601', 'tblTempUsageDetail_20' ) start [2025-03-14 11:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678601', 'tblTempUsageDetail_20' ) end [2025-03-14 11:41:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 11:41:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 11:41:26] Production.INFO: ==6357== Releasing lock... [2025-03-14 11:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 11:41:26] Production.INFO: 55.5 MB #Memory Used# [2025-03-14 11:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 08:42:06 [end_date_ymd] => 2025-03-14 11:42:06 [RateCDR] => 1 ) [2025-03-14 11:42: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-03-14 08:42:06' and `end` < '2025-03-14 11:42: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-03-14 11:42:19] Production.INFO: count ==3614 [2025-03-14 11:42:21] Production.ERROR: pbx CDR StartTime 2025-03-14 08:42:06 - End Time 2025-03-14 11:42:06 [2025-03-14 11:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678606', 'tblTempUsageDetail_20' ) start [2025-03-14 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678606', 'tblTempUsageDetail_20' ) end [2025-03-14 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678606', 'tblTempVendorCDR_20' ) start [2025-03-14 11:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678606', 'tblTempVendorCDR_20' ) end [2025-03-14 11:42:21] Production.INFO: ProcessCDR(1,14678606,1,1,2) [2025-03-14 11:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678606,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678606,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678606', 'tblTempUsageDetail_20' ) start [2025-03-14 11:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678606', 'tblTempUsageDetail_20' ) end [2025-03-14 11:42:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 11:42:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 11:42:26] Production.INFO: ==6431== Releasing lock... [2025-03-14 11:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 11:42:26] Production.INFO: 55.75 MB #Memory Used# [2025-03-14 11:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 08:43:05 [end_date_ymd] => 2025-03-14 11:43:05 [RateCDR] => 1 ) [2025-03-14 11:43: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-03-14 08:43:05' and `end` < '2025-03-14 11:43: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-03-14 11:43:18] Production.INFO: count ==3611 [2025-03-14 11:43:20] Production.ERROR: pbx CDR StartTime 2025-03-14 08:43:05 - End Time 2025-03-14 11:43:05 [2025-03-14 11:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 11:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678611', 'tblTempUsageDetail_20' ) start [2025-03-14 11:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678611', 'tblTempUsageDetail_20' ) end [2025-03-14 11:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678611', 'tblTempVendorCDR_20' ) start [2025-03-14 11:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678611', 'tblTempVendorCDR_20' ) end [2025-03-14 11:43:20] Production.INFO: ProcessCDR(1,14678611,1,1,2) [2025-03-14 11:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678611,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678611,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678611', 'tblTempUsageDetail_20' ) start [2025-03-14 11:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678611', 'tblTempUsageDetail_20' ) end [2025-03-14 11:43:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 11:43:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 11:43:26] Production.INFO: ==6542== Releasing lock... [2025-03-14 11:43:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 11:43:26] Production.INFO: 56.5 MB #Memory Used# [2025-03-14 11:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 08:44:06 [end_date_ymd] => 2025-03-14 11:44:06 [RateCDR] => 1 ) [2025-03-14 11:44: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-03-14 08:44:06' and `end` < '2025-03-14 11:44: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-03-14 11:44:19] Production.INFO: count ==3588 [2025-03-14 11:44:21] Production.ERROR: pbx CDR StartTime 2025-03-14 08:44:06 - End Time 2025-03-14 11:44:06 [2025-03-14 11:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678616', 'tblTempUsageDetail_20' ) start [2025-03-14 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678616', 'tblTempUsageDetail_20' ) end [2025-03-14 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678616', 'tblTempVendorCDR_20' ) start [2025-03-14 11:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678616', 'tblTempVendorCDR_20' ) end [2025-03-14 11:44:21] Production.INFO: ProcessCDR(1,14678616,1,1,2) [2025-03-14 11:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678616,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678616,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678616', 'tblTempUsageDetail_20' ) start [2025-03-14 11:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678616', 'tblTempUsageDetail_20' ) end [2025-03-14 11:44:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 11:44:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 11:44:27] Production.INFO: ==6615== Releasing lock... [2025-03-14 11:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 11:44:27] Production.INFO: 55.5 MB #Memory Used# [2025-03-14 11:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 08:45:05 [end_date_ymd] => 2025-03-14 11:45:05 [RateCDR] => 1 ) [2025-03-14 11:45: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-03-14 08:45:05' and `end` < '2025-03-14 11:45: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-03-14 11:45:18] Production.INFO: count ==3582 [2025-03-14 11:45:20] Production.ERROR: pbx CDR StartTime 2025-03-14 08:45:05 - End Time 2025-03-14 11:45:05 [2025-03-14 11:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 11:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678621', 'tblTempUsageDetail_20' ) start [2025-03-14 11:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678621', 'tblTempUsageDetail_20' ) end [2025-03-14 11:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678621', 'tblTempVendorCDR_20' ) start [2025-03-14 11:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678621', 'tblTempVendorCDR_20' ) end [2025-03-14 11:45:20] Production.INFO: ProcessCDR(1,14678621,1,1,2) [2025-03-14 11:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678621', 'tblTempUsageDetail_20' ) start [2025-03-14 11:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678621', 'tblTempUsageDetail_20' ) end [2025-03-14 11:45:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 11:45:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 11:45:26] Production.INFO: ==6691== Releasing lock... [2025-03-14 11:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 11:45:26] Production.INFO: 55 MB #Memory Used# [2025-03-14 11:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 08:46:05 [end_date_ymd] => 2025-03-14 11:46:05 [RateCDR] => 1 ) [2025-03-14 11:46: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-03-14 08:46:05' and `end` < '2025-03-14 11:46: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-03-14 11:46:18] Production.INFO: count ==3599 [2025-03-14 11:46:21] Production.ERROR: pbx CDR StartTime 2025-03-14 08:46:05 - End Time 2025-03-14 11:46:05 [2025-03-14 11:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678626', 'tblTempUsageDetail_20' ) start [2025-03-14 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678626', 'tblTempUsageDetail_20' ) end [2025-03-14 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678626', 'tblTempVendorCDR_20' ) start [2025-03-14 11:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678626', 'tblTempVendorCDR_20' ) end [2025-03-14 11:46:21] Production.INFO: ProcessCDR(1,14678626,1,1,2) [2025-03-14 11:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678626', 'tblTempUsageDetail_20' ) start [2025-03-14 11:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678626', 'tblTempUsageDetail_20' ) end [2025-03-14 11:46:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 11:46:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 11:46:26] Production.INFO: ==6771== Releasing lock... [2025-03-14 11:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 11:46:26] Production.INFO: 55.75 MB #Memory Used# [2025-03-14 11:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 08:47:05 [end_date_ymd] => 2025-03-14 11:47:05 [RateCDR] => 1 ) [2025-03-14 11:47: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-03-14 08:47:05' and `end` < '2025-03-14 11:47: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-03-14 11:47:18] Production.INFO: count ==3622 [2025-03-14 11:47:20] Production.ERROR: pbx CDR StartTime 2025-03-14 08:47:05 - End Time 2025-03-14 11:47:05 [2025-03-14 11:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 11:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678631', 'tblTempUsageDetail_20' ) start [2025-03-14 11:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678631', 'tblTempUsageDetail_20' ) end [2025-03-14 11:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678631', 'tblTempVendorCDR_20' ) start [2025-03-14 11:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678631', 'tblTempVendorCDR_20' ) end [2025-03-14 11:47:21] Production.INFO: ProcessCDR(1,14678631,1,1,2) [2025-03-14 11:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678631', 'tblTempUsageDetail_20' ) start [2025-03-14 11:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678631', 'tblTempUsageDetail_20' ) end [2025-03-14 11:47:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 11:47:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 11:47:27] Production.INFO: ==6846== Releasing lock... [2025-03-14 11:47:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 11:47:27] Production.INFO: 56 MB #Memory Used# [2025-03-14 11:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 08:48:05 [end_date_ymd] => 2025-03-14 11:48:05 [RateCDR] => 1 ) [2025-03-14 11:48: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-03-14 08:48:05' and `end` < '2025-03-14 11:48: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-03-14 11:48:18] Production.INFO: count ==3634 [2025-03-14 11:48:21] Production.ERROR: pbx CDR StartTime 2025-03-14 08:48:05 - End Time 2025-03-14 11:48:05 [2025-03-14 11:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 11:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678636', 'tblTempUsageDetail_20' ) start [2025-03-14 11:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678636', 'tblTempUsageDetail_20' ) end [2025-03-14 11:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678636', 'tblTempVendorCDR_20' ) start [2025-03-14 11:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678636', 'tblTempVendorCDR_20' ) end [2025-03-14 11:48:21] Production.INFO: ProcessCDR(1,14678636,1,1,2) [2025-03-14 11:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678636', 'tblTempUsageDetail_20' ) start [2025-03-14 11:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678636', 'tblTempUsageDetail_20' ) end [2025-03-14 11:48:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 11:48:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 11:48:27] Production.INFO: ==6921== Releasing lock... [2025-03-14 11:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 11:48:27] Production.INFO: 56.25 MB #Memory Used# [2025-03-14 11:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 08:49:06 [end_date_ymd] => 2025-03-14 11:49:06 [RateCDR] => 1 ) [2025-03-14 11:49: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-03-14 08:49:06' and `end` < '2025-03-14 11:49: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-03-14 11:49:19] Production.INFO: count ==3652 [2025-03-14 11:49:21] Production.ERROR: pbx CDR StartTime 2025-03-14 08:49:06 - End Time 2025-03-14 11:49:06 [2025-03-14 11:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 11:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678641', 'tblTempUsageDetail_20' ) start [2025-03-14 11:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678641', 'tblTempUsageDetail_20' ) end [2025-03-14 11:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678641', 'tblTempVendorCDR_20' ) start [2025-03-14 11:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678641', 'tblTempVendorCDR_20' ) end [2025-03-14 11:49:21] Production.INFO: ProcessCDR(1,14678641,1,1,2) [2025-03-14 11:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678641', 'tblTempUsageDetail_20' ) start [2025-03-14 11:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678641', 'tblTempUsageDetail_20' ) end [2025-03-14 11:49:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 11:49:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 11:49:25] Production.INFO: ==6998== Releasing lock... [2025-03-14 11:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 11:49:25] Production.INFO: 55.75 MB #Memory Used# [2025-03-14 11:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 08:50:07 [end_date_ymd] => 2025-03-14 11:50:07 [RateCDR] => 1 ) [2025-03-14 11:50:07] 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-03-14 08:50:07' and `end` < '2025-03-14 11:50:07' 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-03-14 11:50:20] Production.INFO: count ==3661 [2025-03-14 11:50:22] Production.ERROR: pbx CDR StartTime 2025-03-14 08:50:07 - End Time 2025-03-14 11:50:07 [2025-03-14 11:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678647', 'tblTempUsageDetail_20' ) start [2025-03-14 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678647', 'tblTempUsageDetail_20' ) end [2025-03-14 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678647', 'tblTempVendorCDR_20' ) start [2025-03-14 11:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678647', 'tblTempVendorCDR_20' ) end [2025-03-14 11:50:22] Production.INFO: ProcessCDR(1,14678647,1,1,2) [2025-03-14 11:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678647,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678647,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678647', 'tblTempUsageDetail_20' ) start [2025-03-14 11:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678647', 'tblTempUsageDetail_20' ) end [2025-03-14 11:50:28] Production.ERROR: pbx prc_insertCDR start [2025-03-14 11:50:28] Production.ERROR: pbx prc_insertCDR end [2025-03-14 11:50:28] Production.INFO: ==7069== Releasing lock... [2025-03-14 11:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 11:50:28] Production.INFO: 56.25 MB #Memory Used# [2025-03-14 11:51:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 08:51:07 [end_date_ymd] => 2025-03-14 11:51:07 [RateCDR] => 1 ) [2025-03-14 11:51:07] 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-03-14 08:51:07' and `end` < '2025-03-14 11:51:07' 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-03-14 11:51:19] Production.INFO: count ==3768 [2025-03-14 11:51:21] Production.ERROR: pbx CDR StartTime 2025-03-14 08:51:07 - End Time 2025-03-14 11:51:07 [2025-03-14 11:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 11:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678652', 'tblTempUsageDetail_20' ) start [2025-03-14 11:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678652', 'tblTempUsageDetail_20' ) end [2025-03-14 11:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678652', 'tblTempVendorCDR_20' ) start [2025-03-14 11:51:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678652', 'tblTempVendorCDR_20' ) end [2025-03-14 11:51:22] Production.INFO: ProcessCDR(1,14678652,1,1,2) [2025-03-14 11:51:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678652,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678652,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678652', 'tblTempUsageDetail_20' ) start [2025-03-14 11:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678652', 'tblTempUsageDetail_20' ) end [2025-03-14 11:51:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 11:51:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 11:51:27] Production.INFO: ==7146== Releasing lock... [2025-03-14 11:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 11:51:27] Production.INFO: 56.25 MB #Memory Used# [2025-03-14 11:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 08:52:06 [end_date_ymd] => 2025-03-14 11:52:06 [RateCDR] => 1 ) [2025-03-14 11:52: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-03-14 08:52:06' and `end` < '2025-03-14 11:52: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-03-14 11:52:19] Production.INFO: count ==3769 [2025-03-14 11:52:21] Production.ERROR: pbx CDR StartTime 2025-03-14 08:52:06 - End Time 2025-03-14 11:52:06 [2025-03-14 11:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 11:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678657', 'tblTempUsageDetail_20' ) start [2025-03-14 11:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678657', 'tblTempUsageDetail_20' ) end [2025-03-14 11:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678657', 'tblTempVendorCDR_20' ) start [2025-03-14 11:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678657', 'tblTempVendorCDR_20' ) end [2025-03-14 11:52:22] Production.INFO: ProcessCDR(1,14678657,1,1,2) [2025-03-14 11:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678657,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678657,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678657', 'tblTempUsageDetail_20' ) start [2025-03-14 11:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678657', 'tblTempUsageDetail_20' ) end [2025-03-14 11:52:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 11:52:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 11:52:27] Production.INFO: ==7222== Releasing lock... [2025-03-14 11:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 11:52:27] Production.INFO: 56.25 MB #Memory Used# [2025-03-14 11:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 08:53:05 [end_date_ymd] => 2025-03-14 11:53:05 [RateCDR] => 1 ) [2025-03-14 11:53: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-03-14 08:53:05' and `end` < '2025-03-14 11:53: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-03-14 11:53:18] Production.INFO: count ==3769 [2025-03-14 11:53:21] Production.ERROR: pbx CDR StartTime 2025-03-14 08:53:05 - End Time 2025-03-14 11:53:05 [2025-03-14 11:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678662', 'tblTempUsageDetail_20' ) start [2025-03-14 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678662', 'tblTempUsageDetail_20' ) end [2025-03-14 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678662', 'tblTempVendorCDR_20' ) start [2025-03-14 11:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678662', 'tblTempVendorCDR_20' ) end [2025-03-14 11:53:21] Production.INFO: ProcessCDR(1,14678662,1,1,2) [2025-03-14 11:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678662,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678662,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678662', 'tblTempUsageDetail_20' ) start [2025-03-14 11:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678662', 'tblTempUsageDetail_20' ) end [2025-03-14 11:53:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 11:53:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 11:53:26] Production.INFO: ==7301== Releasing lock... [2025-03-14 11:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 11:53:26] Production.INFO: 56.75 MB #Memory Used# [2025-03-14 11:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 08:54:06 [end_date_ymd] => 2025-03-14 11:54:06 [RateCDR] => 1 ) [2025-03-14 11:54: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-03-14 08:54:06' and `end` < '2025-03-14 11:54: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-03-14 11:54:19] Production.INFO: count ==3766 [2025-03-14 11:54:21] Production.ERROR: pbx CDR StartTime 2025-03-14 08:54:06 - End Time 2025-03-14 11:54:06 [2025-03-14 11:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 11:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678667', 'tblTempUsageDetail_20' ) start [2025-03-14 11:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678667', 'tblTempUsageDetail_20' ) end [2025-03-14 11:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678667', 'tblTempVendorCDR_20' ) start [2025-03-14 11:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678667', 'tblTempVendorCDR_20' ) end [2025-03-14 11:54:21] Production.INFO: ProcessCDR(1,14678667,1,1,2) [2025-03-14 11:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678667', 'tblTempUsageDetail_20' ) start [2025-03-14 11:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678667', 'tblTempUsageDetail_20' ) end [2025-03-14 11:54:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 11:54:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 11:54:27] Production.INFO: ==7379== Releasing lock... [2025-03-14 11:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 11:54:27] Production.INFO: 57 MB #Memory Used# [2025-03-14 11:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 08:55:05 [end_date_ymd] => 2025-03-14 11:55:05 [RateCDR] => 1 ) [2025-03-14 11:55: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-03-14 08:55:05' and `end` < '2025-03-14 11:55: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-03-14 11:55:18] Production.INFO: count ==3768 [2025-03-14 11:55:20] Production.ERROR: pbx CDR StartTime 2025-03-14 08:55:05 - End Time 2025-03-14 11:55:05 [2025-03-14 11:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 11:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678672', 'tblTempUsageDetail_20' ) start [2025-03-14 11:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678672', 'tblTempUsageDetail_20' ) end [2025-03-14 11:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678672', 'tblTempVendorCDR_20' ) start [2025-03-14 11:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678672', 'tblTempVendorCDR_20' ) end [2025-03-14 11:55:20] Production.INFO: ProcessCDR(1,14678672,1,1,2) [2025-03-14 11:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678672', 'tblTempUsageDetail_20' ) start [2025-03-14 11:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678672', 'tblTempUsageDetail_20' ) end [2025-03-14 11:55:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 11:55:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 11:55:26] Production.INFO: ==7452== Releasing lock... [2025-03-14 11:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 11:55:26] Production.INFO: 56.5 MB #Memory Used# [2025-03-14 11:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 08:56:06 [end_date_ymd] => 2025-03-14 11:56:06 [RateCDR] => 1 ) [2025-03-14 11:56: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-03-14 08:56:06' and `end` < '2025-03-14 11:56: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-03-14 11:56:19] Production.INFO: count ==3760 [2025-03-14 11:56:21] Production.ERROR: pbx CDR StartTime 2025-03-14 08:56:06 - End Time 2025-03-14 11:56:06 [2025-03-14 11:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678677', 'tblTempUsageDetail_20' ) start [2025-03-14 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678677', 'tblTempUsageDetail_20' ) end [2025-03-14 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678677', 'tblTempVendorCDR_20' ) start [2025-03-14 11:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678677', 'tblTempVendorCDR_20' ) end [2025-03-14 11:56:21] Production.INFO: ProcessCDR(1,14678677,1,1,2) [2025-03-14 11:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678677', 'tblTempUsageDetail_20' ) start [2025-03-14 11:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678677', 'tblTempUsageDetail_20' ) end [2025-03-14 11:56:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 11:56:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 11:56:27] Production.INFO: ==7527== Releasing lock... [2025-03-14 11:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 11:56:27] Production.INFO: 56.75 MB #Memory Used# [2025-03-14 11:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 08:57:05 [end_date_ymd] => 2025-03-14 11:57:05 [RateCDR] => 1 ) [2025-03-14 11:57: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-03-14 08:57:05' and `end` < '2025-03-14 11:57: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-03-14 11:57:18] Production.INFO: count ==3768 [2025-03-14 11:57:20] Production.ERROR: pbx CDR StartTime 2025-03-14 08:57:05 - End Time 2025-03-14 11:57:05 [2025-03-14 11:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 11:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678682', 'tblTempUsageDetail_20' ) start [2025-03-14 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678682', 'tblTempUsageDetail_20' ) end [2025-03-14 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678682', 'tblTempVendorCDR_20' ) start [2025-03-14 11:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678682', 'tblTempVendorCDR_20' ) end [2025-03-14 11:57:21] Production.INFO: ProcessCDR(1,14678682,1,1,2) [2025-03-14 11:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:57:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678682', 'tblTempUsageDetail_20' ) start [2025-03-14 11:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678682', 'tblTempUsageDetail_20' ) end [2025-03-14 11:57:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 11:57:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 11:57:26] Production.INFO: ==7601== Releasing lock... [2025-03-14 11:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 11:57:26] Production.INFO: 57 MB #Memory Used# [2025-03-14 11:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 08:58:06 [end_date_ymd] => 2025-03-14 11:58:06 [RateCDR] => 1 ) [2025-03-14 11:58: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-03-14 08:58:06' and `end` < '2025-03-14 11:58: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-03-14 11:58:19] Production.INFO: count ==3793 [2025-03-14 11:58:21] Production.ERROR: pbx CDR StartTime 2025-03-14 08:58:06 - End Time 2025-03-14 11:58:06 [2025-03-14 11:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678687', 'tblTempUsageDetail_20' ) start [2025-03-14 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678687', 'tblTempUsageDetail_20' ) end [2025-03-14 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678687', 'tblTempVendorCDR_20' ) start [2025-03-14 11:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678687', 'tblTempVendorCDR_20' ) end [2025-03-14 11:58:21] Production.INFO: ProcessCDR(1,14678687,1,1,2) [2025-03-14 11:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:58:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:58:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:58:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:58:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678687', 'tblTempUsageDetail_20' ) start [2025-03-14 11:58:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678687', 'tblTempUsageDetail_20' ) end [2025-03-14 11:58:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 11:58:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 11:58:27] Production.INFO: ==7712== Releasing lock... [2025-03-14 11:58:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 11:58:27] Production.INFO: 56.5 MB #Memory Used# [2025-03-14 11:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 08:59:05 [end_date_ymd] => 2025-03-14 11:59:05 [RateCDR] => 1 ) [2025-03-14 11:59: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-03-14 08:59:05' and `end` < '2025-03-14 11:59: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-03-14 11:59:18] Production.INFO: count ==3780 [2025-03-14 11:59:21] Production.ERROR: pbx CDR StartTime 2025-03-14 08:59:05 - End Time 2025-03-14 11:59:05 [2025-03-14 11:59:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678692', 'tblTempUsageDetail_20' ) start [2025-03-14 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678692', 'tblTempUsageDetail_20' ) end [2025-03-14 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678692', 'tblTempVendorCDR_20' ) start [2025-03-14 11:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678692', 'tblTempVendorCDR_20' ) end [2025-03-14 11:59:21] Production.INFO: ProcessCDR(1,14678692,1,1,2) [2025-03-14 11:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:59:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 11:59:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:59:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 11:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678692', 'tblTempUsageDetail_20' ) start [2025-03-14 11:59:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678692', 'tblTempUsageDetail_20' ) end [2025-03-14 11:59:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 11:59:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 11:59:27] Production.INFO: ==7788== Releasing lock... [2025-03-14 11:59:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 11:59:27] Production.INFO: 56.25 MB #Memory Used# [2025-03-14 12:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 09:00:06 [end_date_ymd] => 2025-03-14 12:00:06 [RateCDR] => 1 ) [2025-03-14 12:00: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-03-14 09:00:06' and `end` < '2025-03-14 12:00: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-03-14 12:00:19] Production.INFO: count ==3783 [2025-03-14 12:00:22] Production.ERROR: pbx CDR StartTime 2025-03-14 09:00:06 - End Time 2025-03-14 12:00:06 [2025-03-14 12:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678697', 'tblTempUsageDetail_20' ) start [2025-03-14 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678697', 'tblTempUsageDetail_20' ) end [2025-03-14 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678697', 'tblTempVendorCDR_20' ) start [2025-03-14 12:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678697', 'tblTempVendorCDR_20' ) end [2025-03-14 12:00:22] Production.INFO: ProcessCDR(1,14678697,1,1,2) [2025-03-14 12:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678697', 'tblTempUsageDetail_20' ) start [2025-03-14 12:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678697', 'tblTempUsageDetail_20' ) end [2025-03-14 12:00:28] Production.ERROR: pbx prc_insertCDR start [2025-03-14 12:00:28] Production.ERROR: pbx prc_insertCDR end [2025-03-14 12:00:28] Production.INFO: ==7868== Releasing lock... [2025-03-14 12:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 12:00:28] Production.INFO: 56.25 MB #Memory Used# [2025-03-14 12:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 09:01:05 [end_date_ymd] => 2025-03-14 12:01:05 [RateCDR] => 1 ) [2025-03-14 12:01: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-03-14 09:01:05' and `end` < '2025-03-14 12:01: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-03-14 12:01:18] Production.INFO: count ==3863 [2025-03-14 12:01:21] Production.ERROR: pbx CDR StartTime 2025-03-14 09:01:05 - End Time 2025-03-14 12:01:05 [2025-03-14 12:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678703', 'tblTempUsageDetail_20' ) start [2025-03-14 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678703', 'tblTempUsageDetail_20' ) end [2025-03-14 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678703', 'tblTempVendorCDR_20' ) start [2025-03-14 12:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678703', 'tblTempVendorCDR_20' ) end [2025-03-14 12:01:21] Production.INFO: ProcessCDR(1,14678703,1,1,2) [2025-03-14 12:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678703,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678703,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678703', 'tblTempUsageDetail_20' ) start [2025-03-14 12:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678703', 'tblTempUsageDetail_20' ) end [2025-03-14 12:01:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 12:01:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 12:01:27] Production.INFO: ==7956== Releasing lock... [2025-03-14 12:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 12:01:27] Production.INFO: 57 MB #Memory Used# [2025-03-14 12:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 09:02:06 [end_date_ymd] => 2025-03-14 12:02:06 [RateCDR] => 1 ) [2025-03-14 12:02: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-03-14 09:02:06' and `end` < '2025-03-14 12:02: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-03-14 12:02:19] Production.INFO: count ==3834 [2025-03-14 12:02:21] Production.ERROR: pbx CDR StartTime 2025-03-14 09:02:06 - End Time 2025-03-14 12:02:06 [2025-03-14 12:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678708', 'tblTempUsageDetail_20' ) start [2025-03-14 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678708', 'tblTempUsageDetail_20' ) end [2025-03-14 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678708', 'tblTempVendorCDR_20' ) start [2025-03-14 12:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678708', 'tblTempVendorCDR_20' ) end [2025-03-14 12:02:21] Production.INFO: ProcessCDR(1,14678708,1,1,2) [2025-03-14 12:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678708,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678708,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678708', 'tblTempUsageDetail_20' ) start [2025-03-14 12:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678708', 'tblTempUsageDetail_20' ) end [2025-03-14 12:02:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 12:02:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 12:02:27] Production.INFO: ==8029== Releasing lock... [2025-03-14 12:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 12:02:27] Production.INFO: 57 MB #Memory Used# [2025-03-14 12:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 09:03:05 [end_date_ymd] => 2025-03-14 12:03:05 [RateCDR] => 1 ) [2025-03-14 12:03: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-03-14 09:03:05' and `end` < '2025-03-14 12:03: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-03-14 12:03:19] Production.INFO: count ==3814 [2025-03-14 12:03:21] Production.ERROR: pbx CDR StartTime 2025-03-14 09:03:05 - End Time 2025-03-14 12:03:05 [2025-03-14 12:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678713', 'tblTempUsageDetail_20' ) start [2025-03-14 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678713', 'tblTempUsageDetail_20' ) end [2025-03-14 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678713', 'tblTempVendorCDR_20' ) start [2025-03-14 12:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678713', 'tblTempVendorCDR_20' ) end [2025-03-14 12:03:21] Production.INFO: ProcessCDR(1,14678713,1,1,2) [2025-03-14 12:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678713,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678713,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678713', 'tblTempUsageDetail_20' ) start [2025-03-14 12:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678713', 'tblTempUsageDetail_20' ) end [2025-03-14 12:03:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 12:03:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 12:03:26] Production.INFO: ==8105== Releasing lock... [2025-03-14 12:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 12:03:26] Production.INFO: 57 MB #Memory Used# [2025-03-14 12:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 09:04:06 [end_date_ymd] => 2025-03-14 12:04:06 [RateCDR] => 1 ) [2025-03-14 12:04: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-03-14 09:04:06' and `end` < '2025-03-14 12:04: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-03-14 12:04:19] Production.INFO: count ==3809 [2025-03-14 12:04:21] Production.ERROR: pbx CDR StartTime 2025-03-14 09:04:06 - End Time 2025-03-14 12:04:06 [2025-03-14 12:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678718', 'tblTempUsageDetail_20' ) start [2025-03-14 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678718', 'tblTempUsageDetail_20' ) end [2025-03-14 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678718', 'tblTempVendorCDR_20' ) start [2025-03-14 12:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678718', 'tblTempVendorCDR_20' ) end [2025-03-14 12:04:21] Production.INFO: ProcessCDR(1,14678718,1,1,2) [2025-03-14 12:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678718', 'tblTempUsageDetail_20' ) start [2025-03-14 12:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678718', 'tblTempUsageDetail_20' ) end [2025-03-14 12:04:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 12:04:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 12:04:27] Production.INFO: ==8181== Releasing lock... [2025-03-14 12:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 12:04:27] Production.INFO: 56.5 MB #Memory Used# [2025-03-14 12:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 09:05:06 [end_date_ymd] => 2025-03-14 12:05:06 [RateCDR] => 1 ) [2025-03-14 12:05: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-03-14 09:05:06' and `end` < '2025-03-14 12:05: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-03-14 12:05:19] Production.INFO: count ==3822 [2025-03-14 12:05:21] Production.ERROR: pbx CDR StartTime 2025-03-14 09:05:06 - End Time 2025-03-14 12:05:06 [2025-03-14 12:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678723', 'tblTempUsageDetail_20' ) start [2025-03-14 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678723', 'tblTempUsageDetail_20' ) end [2025-03-14 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678723', 'tblTempVendorCDR_20' ) start [2025-03-14 12:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678723', 'tblTempVendorCDR_20' ) end [2025-03-14 12:05:21] Production.INFO: ProcessCDR(1,14678723,1,1,2) [2025-03-14 12:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678723', 'tblTempUsageDetail_20' ) start [2025-03-14 12:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678723', 'tblTempUsageDetail_20' ) end [2025-03-14 12:05:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 12:05:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 12:05:27] Production.INFO: ==8260== Releasing lock... [2025-03-14 12:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 12:05:27] Production.INFO: 56.5 MB #Memory Used# [2025-03-14 12:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 09:06:06 [end_date_ymd] => 2025-03-14 12:06:06 [RateCDR] => 1 ) [2025-03-14 12:06: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-03-14 09:06:06' and `end` < '2025-03-14 12:06: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-03-14 12:06:19] Production.INFO: count ==3844 [2025-03-14 12:06:21] Production.ERROR: pbx CDR StartTime 2025-03-14 09:06:06 - End Time 2025-03-14 12:06:06 [2025-03-14 12:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 12:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678728', 'tblTempUsageDetail_20' ) start [2025-03-14 12:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678728', 'tblTempUsageDetail_20' ) end [2025-03-14 12:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678728', 'tblTempVendorCDR_20' ) start [2025-03-14 12:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678728', 'tblTempVendorCDR_20' ) end [2025-03-14 12:06:21] Production.INFO: ProcessCDR(1,14678728,1,1,2) [2025-03-14 12:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678728', 'tblTempUsageDetail_20' ) start [2025-03-14 12:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678728', 'tblTempUsageDetail_20' ) end [2025-03-14 12:06:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 12:06:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 12:06:27] Production.INFO: ==8335== Releasing lock... [2025-03-14 12:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 12:06:27] Production.INFO: 57 MB #Memory Used# [2025-03-14 12:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 09:07:05 [end_date_ymd] => 2025-03-14 12:07:05 [RateCDR] => 1 ) [2025-03-14 12:07: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-03-14 09:07:05' and `end` < '2025-03-14 12:07: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-03-14 12:07:18] Production.INFO: count ==3845 [2025-03-14 12:07:21] Production.ERROR: pbx CDR StartTime 2025-03-14 09:07:05 - End Time 2025-03-14 12:07:05 [2025-03-14 12:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678733', 'tblTempUsageDetail_20' ) start [2025-03-14 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678733', 'tblTempUsageDetail_20' ) end [2025-03-14 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678733', 'tblTempVendorCDR_20' ) start [2025-03-14 12:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678733', 'tblTempVendorCDR_20' ) end [2025-03-14 12:07:21] Production.INFO: ProcessCDR(1,14678733,1,1,2) [2025-03-14 12:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678733', 'tblTempUsageDetail_20' ) start [2025-03-14 12:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678733', 'tblTempUsageDetail_20' ) end [2025-03-14 12:07:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 12:07:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 12:07:26] Production.INFO: ==8408== Releasing lock... [2025-03-14 12:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 12:07:26] Production.INFO: 56.75 MB #Memory Used# [2025-03-14 12:08:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 09:08:07 [end_date_ymd] => 2025-03-14 12:08:07 [RateCDR] => 1 ) [2025-03-14 12:08:07] 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-03-14 09:08:07' and `end` < '2025-03-14 12:08:07' 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-03-14 12:08:20] Production.INFO: count ==3816 [2025-03-14 12:08:22] Production.ERROR: pbx CDR StartTime 2025-03-14 09:08:07 - End Time 2025-03-14 12:08:07 [2025-03-14 12:08:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 12:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678738', 'tblTempUsageDetail_20' ) start [2025-03-14 12:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678738', 'tblTempUsageDetail_20' ) end [2025-03-14 12:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678738', 'tblTempVendorCDR_20' ) start [2025-03-14 12:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678738', 'tblTempVendorCDR_20' ) end [2025-03-14 12:08:22] Production.INFO: ProcessCDR(1,14678738,1,1,2) [2025-03-14 12:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:08:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:08:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678738', 'tblTempUsageDetail_20' ) start [2025-03-14 12:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678738', 'tblTempUsageDetail_20' ) end [2025-03-14 12:08:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 12:08:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 12:08:28] Production.INFO: ==8486== Releasing lock... [2025-03-14 12:08:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 12:08:28] Production.INFO: 57 MB #Memory Used# [2025-03-14 12:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 09:09:06 [end_date_ymd] => 2025-03-14 12:09:06 [RateCDR] => 1 ) [2025-03-14 12:09: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-03-14 09:09:06' and `end` < '2025-03-14 12:09: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-03-14 12:09:19] Production.INFO: count ==3819 [2025-03-14 12:09:21] Production.ERROR: pbx CDR StartTime 2025-03-14 09:09:06 - End Time 2025-03-14 12:09:06 [2025-03-14 12:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678743', 'tblTempUsageDetail_20' ) start [2025-03-14 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678743', 'tblTempUsageDetail_20' ) end [2025-03-14 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678743', 'tblTempVendorCDR_20' ) start [2025-03-14 12:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678743', 'tblTempVendorCDR_20' ) end [2025-03-14 12:09:21] Production.INFO: ProcessCDR(1,14678743,1,1,2) [2025-03-14 12:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678743', 'tblTempUsageDetail_20' ) start [2025-03-14 12:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678743', 'tblTempUsageDetail_20' ) end [2025-03-14 12:09:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 12:09:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 12:09:28] Production.INFO: ==8561== Releasing lock... [2025-03-14 12:09:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 12:09:28] Production.INFO: 57.5 MB #Memory Used# [2025-03-14 12:10:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 09:10:05 [end_date_ymd] => 2025-03-14 12:10:05 [RateCDR] => 1 ) [2025-03-14 12:10: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-03-14 09:10:05' and `end` < '2025-03-14 12:10: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-03-14 12:10:18] Production.INFO: count ==3811 [2025-03-14 12:10:21] Production.ERROR: pbx CDR StartTime 2025-03-14 09:10:05 - End Time 2025-03-14 12:10:05 [2025-03-14 12:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 12:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678748', 'tblTempUsageDetail_20' ) start [2025-03-14 12:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678748', 'tblTempUsageDetail_20' ) end [2025-03-14 12:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678748', 'tblTempVendorCDR_20' ) start [2025-03-14 12:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678748', 'tblTempVendorCDR_20' ) end [2025-03-14 12:10:21] Production.INFO: ProcessCDR(1,14678748,1,1,2) [2025-03-14 12:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678748', 'tblTempUsageDetail_20' ) start [2025-03-14 12:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678748', 'tblTempUsageDetail_20' ) end [2025-03-14 12:10:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 12:10:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 12:10:27] Production.INFO: ==8637== Releasing lock... [2025-03-14 12:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 12:10:27] Production.INFO: 57.25 MB #Memory Used# [2025-03-14 12:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 09:11:05 [end_date_ymd] => 2025-03-14 12:11:05 [RateCDR] => 1 ) [2025-03-14 12:11: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-03-14 09:11:05' and `end` < '2025-03-14 12:11: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-03-14 12:11:18] Production.INFO: count ==3895 [2025-03-14 12:11:21] Production.ERROR: pbx CDR StartTime 2025-03-14 09:11:05 - End Time 2025-03-14 12:11:05 [2025-03-14 12:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678754', 'tblTempUsageDetail_20' ) start [2025-03-14 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678754', 'tblTempUsageDetail_20' ) end [2025-03-14 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678754', 'tblTempVendorCDR_20' ) start [2025-03-14 12:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678754', 'tblTempVendorCDR_20' ) end [2025-03-14 12:11:21] Production.INFO: ProcessCDR(1,14678754,1,1,2) [2025-03-14 12:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:11:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678754,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:11:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678754,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678754', 'tblTempUsageDetail_20' ) start [2025-03-14 12:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678754', 'tblTempUsageDetail_20' ) end [2025-03-14 12:11:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 12:11:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 12:11:26] Production.INFO: ==8713== Releasing lock... [2025-03-14 12:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 12:11:26] Production.INFO: 57 MB #Memory Used# [2025-03-14 12:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 09:12:05 [end_date_ymd] => 2025-03-14 12:12:05 [RateCDR] => 1 ) [2025-03-14 12:12: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-03-14 09:12:05' and `end` < '2025-03-14 12:12: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-03-14 12:12:18] Production.INFO: count ==3900 [2025-03-14 12:12:21] Production.ERROR: pbx CDR StartTime 2025-03-14 09:12:05 - End Time 2025-03-14 12:12:05 [2025-03-14 12:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678759', 'tblTempUsageDetail_20' ) start [2025-03-14 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678759', 'tblTempUsageDetail_20' ) end [2025-03-14 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678759', 'tblTempVendorCDR_20' ) start [2025-03-14 12:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678759', 'tblTempVendorCDR_20' ) end [2025-03-14 12:12:21] Production.INFO: ProcessCDR(1,14678759,1,1,2) [2025-03-14 12:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678759,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678759,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678759', 'tblTempUsageDetail_20' ) start [2025-03-14 12:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678759', 'tblTempUsageDetail_20' ) end [2025-03-14 12:12:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 12:12:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 12:12:26] Production.INFO: ==8789== Releasing lock... [2025-03-14 12:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 12:12:26] Production.INFO: 57.5 MB #Memory Used# [2025-03-14 12:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 09:13:05 [end_date_ymd] => 2025-03-14 12:13:05 [RateCDR] => 1 ) [2025-03-14 12:13: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-03-14 09:13:05' and `end` < '2025-03-14 12:13: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-03-14 12:13:19] Production.INFO: count ==3916 [2025-03-14 12:13:21] Production.ERROR: pbx CDR StartTime 2025-03-14 09:13:05 - End Time 2025-03-14 12:13:05 [2025-03-14 12:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678764', 'tblTempUsageDetail_20' ) start [2025-03-14 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678764', 'tblTempUsageDetail_20' ) end [2025-03-14 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678764', 'tblTempVendorCDR_20' ) start [2025-03-14 12:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678764', 'tblTempVendorCDR_20' ) end [2025-03-14 12:13:21] Production.INFO: ProcessCDR(1,14678764,1,1,2) [2025-03-14 12:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678764,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678764,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678764', 'tblTempUsageDetail_20' ) start [2025-03-14 12:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678764', 'tblTempUsageDetail_20' ) end [2025-03-14 12:13:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 12:13:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 12:13:27] Production.INFO: ==8901== Releasing lock... [2025-03-14 12:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 12:13:27] Production.INFO: 57.25 MB #Memory Used# [2025-03-14 12:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 09:14:05 [end_date_ymd] => 2025-03-14 12:14:05 [RateCDR] => 1 ) [2025-03-14 12:14: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-03-14 09:14:05' and `end` < '2025-03-14 12:14: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-03-14 12:14:18] Production.INFO: count ==3918 [2025-03-14 12:14:20] Production.ERROR: pbx CDR StartTime 2025-03-14 09:14:05 - End Time 2025-03-14 12:14:05 [2025-03-14 12:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 12:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678769', 'tblTempUsageDetail_20' ) start [2025-03-14 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678769', 'tblTempUsageDetail_20' ) end [2025-03-14 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678769', 'tblTempVendorCDR_20' ) start [2025-03-14 12:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678769', 'tblTempVendorCDR_20' ) end [2025-03-14 12:14:21] Production.INFO: ProcessCDR(1,14678769,1,1,2) [2025-03-14 12:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678769,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678769,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678769', 'tblTempUsageDetail_20' ) start [2025-03-14 12:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678769', 'tblTempUsageDetail_20' ) end [2025-03-14 12:14:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 12:14:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 12:14:26] Production.INFO: ==8975== Releasing lock... [2025-03-14 12:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 12:14:26] Production.INFO: 57.5 MB #Memory Used# [2025-03-14 12:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 09:15:05 [end_date_ymd] => 2025-03-14 12:15:05 [RateCDR] => 1 ) [2025-03-14 12:15: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-03-14 09:15:05' and `end` < '2025-03-14 12:15: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-03-14 12:15:18] Production.INFO: count ==3918 [2025-03-14 12:15:20] Production.ERROR: pbx CDR StartTime 2025-03-14 09:15:05 - End Time 2025-03-14 12:15:05 [2025-03-14 12:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 12:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678774', 'tblTempUsageDetail_20' ) start [2025-03-14 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678774', 'tblTempUsageDetail_20' ) end [2025-03-14 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678774', 'tblTempVendorCDR_20' ) start [2025-03-14 12:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678774', 'tblTempVendorCDR_20' ) end [2025-03-14 12:15:21] Production.INFO: ProcessCDR(1,14678774,1,1,2) [2025-03-14 12:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678774', 'tblTempUsageDetail_20' ) start [2025-03-14 12:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678774', 'tblTempUsageDetail_20' ) end [2025-03-14 12:15:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 12:15:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 12:15:26] Production.INFO: ==9053== Releasing lock... [2025-03-14 12:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 12:15:26] Production.INFO: 57.25 MB #Memory Used# [2025-03-14 12:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 09:16:05 [end_date_ymd] => 2025-03-14 12:16:05 [RateCDR] => 1 ) [2025-03-14 12:16: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-03-14 09:16:05' and `end` < '2025-03-14 12:16: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-03-14 12:16:18] Production.INFO: count ==3935 [2025-03-14 12:16:21] Production.ERROR: pbx CDR StartTime 2025-03-14 09:16:05 - End Time 2025-03-14 12:16:05 [2025-03-14 12:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 12:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678779', 'tblTempUsageDetail_20' ) start [2025-03-14 12:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678779', 'tblTempUsageDetail_20' ) end [2025-03-14 12:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678779', 'tblTempVendorCDR_20' ) start [2025-03-14 12:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678779', 'tblTempVendorCDR_20' ) end [2025-03-14 12:16:21] Production.INFO: ProcessCDR(1,14678779,1,1,2) [2025-03-14 12:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678779', 'tblTempUsageDetail_20' ) start [2025-03-14 12:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678779', 'tblTempUsageDetail_20' ) end [2025-03-14 12:16:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 12:16:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 12:16:26] Production.INFO: ==9126== Releasing lock... [2025-03-14 12:16:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 12:16:26] Production.INFO: 58 MB #Memory Used# [2025-03-14 12:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 09:17:06 [end_date_ymd] => 2025-03-14 12:17:06 [RateCDR] => 1 ) [2025-03-14 12:17: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-03-14 09:17:06' and `end` < '2025-03-14 12:17: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-03-14 12:17:19] Production.INFO: count ==3947 [2025-03-14 12:17:21] Production.ERROR: pbx CDR StartTime 2025-03-14 09:17:06 - End Time 2025-03-14 12:17:06 [2025-03-14 12:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678784', 'tblTempUsageDetail_20' ) start [2025-03-14 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678784', 'tblTempUsageDetail_20' ) end [2025-03-14 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678784', 'tblTempVendorCDR_20' ) start [2025-03-14 12:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678784', 'tblTempVendorCDR_20' ) end [2025-03-14 12:17:21] Production.INFO: ProcessCDR(1,14678784,1,1,2) [2025-03-14 12:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678784', 'tblTempUsageDetail_20' ) start [2025-03-14 12:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678784', 'tblTempUsageDetail_20' ) end [2025-03-14 12:17:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 12:17:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 12:17:27] Production.INFO: ==9202== Releasing lock... [2025-03-14 12:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 12:17:27] Production.INFO: 57.5 MB #Memory Used# [2025-03-14 12:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 09:18:05 [end_date_ymd] => 2025-03-14 12:18:05 [RateCDR] => 1 ) [2025-03-14 12:18: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-03-14 09:18:05' and `end` < '2025-03-14 12:18: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-03-14 12:18:18] Production.INFO: count ==3958 [2025-03-14 12:18:20] Production.ERROR: pbx CDR StartTime 2025-03-14 09:18:05 - End Time 2025-03-14 12:18:05 [2025-03-14 12:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 12:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678789', 'tblTempUsageDetail_20' ) start [2025-03-14 12:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678789', 'tblTempUsageDetail_20' ) end [2025-03-14 12:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678789', 'tblTempVendorCDR_20' ) start [2025-03-14 12:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678789', 'tblTempVendorCDR_20' ) end [2025-03-14 12:18:20] Production.INFO: ProcessCDR(1,14678789,1,1,2) [2025-03-14 12:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:18:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:18:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678789', 'tblTempUsageDetail_20' ) start [2025-03-14 12:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678789', 'tblTempUsageDetail_20' ) end [2025-03-14 12:18:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 12:18:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 12:18:26] Production.INFO: ==9277== Releasing lock... [2025-03-14 12:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 12:18:26] Production.INFO: 57.5 MB #Memory Used# [2025-03-14 12:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 09:19:06 [end_date_ymd] => 2025-03-14 12:19:06 [RateCDR] => 1 ) [2025-03-14 12:19: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-03-14 09:19:06' and `end` < '2025-03-14 12:19: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-03-14 12:19:19] Production.INFO: count ==3962 [2025-03-14 12:19:21] Production.ERROR: pbx CDR StartTime 2025-03-14 09:19:06 - End Time 2025-03-14 12:19:06 [2025-03-14 12:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678794', 'tblTempUsageDetail_20' ) start [2025-03-14 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678794', 'tblTempUsageDetail_20' ) end [2025-03-14 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678794', 'tblTempVendorCDR_20' ) start [2025-03-14 12:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678794', 'tblTempVendorCDR_20' ) end [2025-03-14 12:19:21] Production.INFO: ProcessCDR(1,14678794,1,1,2) [2025-03-14 12:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678794', 'tblTempUsageDetail_20' ) start [2025-03-14 12:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678794', 'tblTempUsageDetail_20' ) end [2025-03-14 12:19:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 12:19:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 12:19:26] Production.INFO: ==9354== Releasing lock... [2025-03-14 12:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 12:19:26] Production.INFO: 57.5 MB #Memory Used# [2025-03-14 12:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 09:20:06 [end_date_ymd] => 2025-03-14 12:20:06 [RateCDR] => 1 ) [2025-03-14 12:20: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-03-14 09:20:06' and `end` < '2025-03-14 12:20: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-03-14 12:20:19] Production.INFO: count ==3966 [2025-03-14 12:20:21] Production.ERROR: pbx CDR StartTime 2025-03-14 09:20:06 - End Time 2025-03-14 12:20:06 [2025-03-14 12:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 12:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678800', 'tblTempUsageDetail_20' ) start [2025-03-14 12:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678800', 'tblTempUsageDetail_20' ) end [2025-03-14 12:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678800', 'tblTempVendorCDR_20' ) start [2025-03-14 12:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678800', 'tblTempVendorCDR_20' ) end [2025-03-14 12:20:21] Production.INFO: ProcessCDR(1,14678800,1,1,2) [2025-03-14 12:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678800,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678800,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678800', 'tblTempUsageDetail_20' ) start [2025-03-14 12:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678800', 'tblTempUsageDetail_20' ) end [2025-03-14 12:20:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 12:20:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 12:20:27] Production.INFO: ==9432== Releasing lock... [2025-03-14 12:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 12:20:27] Production.INFO: 58 MB #Memory Used# [2025-03-14 12:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 09:21:05 [end_date_ymd] => 2025-03-14 12:21:05 [RateCDR] => 1 ) [2025-03-14 12:21: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-03-14 09:21:05' and `end` < '2025-03-14 12:21: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-03-14 12:21:18] Production.INFO: count ==4030 [2025-03-14 12:21:21] Production.ERROR: pbx CDR StartTime 2025-03-14 09:21:05 - End Time 2025-03-14 12:21:05 [2025-03-14 12:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678805', 'tblTempUsageDetail_20' ) start [2025-03-14 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678805', 'tblTempUsageDetail_20' ) end [2025-03-14 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678805', 'tblTempVendorCDR_20' ) start [2025-03-14 12:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678805', 'tblTempVendorCDR_20' ) end [2025-03-14 12:21:21] Production.INFO: ProcessCDR(1,14678805,1,1,2) [2025-03-14 12:21:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678805,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678805,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678805', 'tblTempUsageDetail_20' ) start [2025-03-14 12:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678805', 'tblTempUsageDetail_20' ) end [2025-03-14 12:21:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 12:21:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 12:21:26] Production.INFO: ==9509== Releasing lock... [2025-03-14 12:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 12:21:26] Production.INFO: 58.75 MB #Memory Used# [2025-03-14 12:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 09:22:06 [end_date_ymd] => 2025-03-14 12:22:06 [RateCDR] => 1 ) [2025-03-14 12:22: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-03-14 09:22:06' and `end` < '2025-03-14 12:22: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-03-14 12:22:19] Production.INFO: count ==4020 [2025-03-14 12:22:21] Production.ERROR: pbx CDR StartTime 2025-03-14 09:22:06 - End Time 2025-03-14 12:22:06 [2025-03-14 12:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678810', 'tblTempUsageDetail_20' ) start [2025-03-14 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678810', 'tblTempUsageDetail_20' ) end [2025-03-14 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678810', 'tblTempVendorCDR_20' ) start [2025-03-14 12:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678810', 'tblTempVendorCDR_20' ) end [2025-03-14 12:22:21] Production.INFO: ProcessCDR(1,14678810,1,1,2) [2025-03-14 12:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678810,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678810,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678810', 'tblTempUsageDetail_20' ) start [2025-03-14 12:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678810', 'tblTempUsageDetail_20' ) end [2025-03-14 12:22:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 12:22:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 12:22:27] Production.INFO: ==9583== Releasing lock... [2025-03-14 12:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 12:22:27] Production.INFO: 58.5 MB #Memory Used# [2025-03-14 12:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 09:23:05 [end_date_ymd] => 2025-03-14 12:23:05 [RateCDR] => 1 ) [2025-03-14 12:23: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-03-14 09:23:05' and `end` < '2025-03-14 12:23: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-03-14 12:23:18] Production.INFO: count ==4035 [2025-03-14 12:23:21] Production.ERROR: pbx CDR StartTime 2025-03-14 09:23:05 - End Time 2025-03-14 12:23:05 [2025-03-14 12:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678815', 'tblTempUsageDetail_20' ) start [2025-03-14 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678815', 'tblTempUsageDetail_20' ) end [2025-03-14 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678815', 'tblTempVendorCDR_20' ) start [2025-03-14 12:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678815', 'tblTempVendorCDR_20' ) end [2025-03-14 12:23:21] Production.INFO: ProcessCDR(1,14678815,1,1,2) [2025-03-14 12:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678815,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678815,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678815', 'tblTempUsageDetail_20' ) start [2025-03-14 12:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678815', 'tblTempUsageDetail_20' ) end [2025-03-14 12:23:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 12:23:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 12:23:27] Production.INFO: ==9663== Releasing lock... [2025-03-14 12:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 12:23:27] Production.INFO: 58.25 MB #Memory Used# [2025-03-14 12:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 09:24:05 [end_date_ymd] => 2025-03-14 12:24:05 [RateCDR] => 1 ) [2025-03-14 12:24: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-03-14 09:24:05' and `end` < '2025-03-14 12:24: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-03-14 12:24:18] Production.INFO: count ==4043 [2025-03-14 12:24:21] Production.ERROR: pbx CDR StartTime 2025-03-14 09:24:05 - End Time 2025-03-14 12:24:05 [2025-03-14 12:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678820', 'tblTempUsageDetail_20' ) start [2025-03-14 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678820', 'tblTempUsageDetail_20' ) end [2025-03-14 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678820', 'tblTempVendorCDR_20' ) start [2025-03-14 12:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678820', 'tblTempVendorCDR_20' ) end [2025-03-14 12:24:21] Production.INFO: ProcessCDR(1,14678820,1,1,2) [2025-03-14 12:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678820', 'tblTempUsageDetail_20' ) start [2025-03-14 12:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678820', 'tblTempUsageDetail_20' ) end [2025-03-14 12:24:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 12:24:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 12:24:27] Production.INFO: ==9746== Releasing lock... [2025-03-14 12:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 12:24:27] Production.INFO: 58.25 MB #Memory Used# [2025-03-14 12:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 09:25:06 [end_date_ymd] => 2025-03-14 12:25:06 [RateCDR] => 1 ) [2025-03-14 12:25:06] Production.INFO: select c.src, c.ID,c.`start`,c.`end`,c.duration,c.billsec,c.realsrc as extension,c.accountcode, c.firstdst,c.lastdst,coalesce(sum(cc_cost)) as cc_cost,c.pincode, c.userfield,IFNULL(cc_type ,'') as cc_type, disposition,IFNULL(p.pr_name,'') as cc_peername,IFNULL(cc.cc_buy,'') as cc_buy, ex.ex_name,ex.ex_description, pin.pc_description as pincode_name from asteriskcdrdb.cdr c left outer join asterisk.cc_callcosts cc on c.uniqueid=cc.cc_uniqueid and ( c.sequence=cc.cc_cdr_sequence or (c.sequence is null and cc.cc_cdr_sequence=0 ) ) /*-- Given by mirta same as in their front end.*/ left outer join asterisk.pr_providers p on cc_pr_id = pr_id left outer join asterisk.te_tenants te ON te.te_code = c.accountcode left outer join asterisk.ex_extensions ex ON CONCAT(ex.ex_number, '-', te.te_code) = c.realsrc and ex.ex_te_id = te.te_id left outer join asterisk.pc_pincodes pin ON pin.pc_pin = c.pincode where `end` >= '2025-03-14 09:25:06' and `end` < '2025-03-14 12:25:06' AND ( userfield like '%outbound%' or userfield like '%inbound%' or ( userfield = '' AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' ) /*-- Ignore Internal call*/ ) AND ( dst<>'h' or duration <> 0 ) /*-- given by mirta*/ AND IFNULL(cc_type ,'') <> 'OUTNOCHARGE' and prevuniqueid='' group by ID,c.`start`,c.`end`,realsrc,firstdst,duration,billsec,userfield,uniqueid,prevuniqueid,lastdst,dst,pincode,IFNULL(cc_type ,'') [2025-03-14 12:25:19] Production.INFO: count ==4046 [2025-03-14 12:25:21] Production.ERROR: pbx CDR StartTime 2025-03-14 09:25:06 - End Time 2025-03-14 12:25:06 [2025-03-14 12:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678825', 'tblTempUsageDetail_20' ) start [2025-03-14 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678825', 'tblTempUsageDetail_20' ) end [2025-03-14 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678825', 'tblTempVendorCDR_20' ) start [2025-03-14 12:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678825', 'tblTempVendorCDR_20' ) end [2025-03-14 12:25:21] Production.INFO: ProcessCDR(1,14678825,1,1,2) [2025-03-14 12:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678825', 'tblTempUsageDetail_20' ) start [2025-03-14 12:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678825', 'tblTempUsageDetail_20' ) end [2025-03-14 12:25:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 12:25:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 12:25:26] Production.INFO: ==9818== Releasing lock... [2025-03-14 12:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 12:25:26] Production.INFO: 58.25 MB #Memory Used# [2025-03-14 12:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 09:26:05 [end_date_ymd] => 2025-03-14 12:26:05 [RateCDR] => 1 ) [2025-03-14 12:26: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-03-14 09:26:05' and `end` < '2025-03-14 12:26: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-03-14 12:26:18] Production.INFO: count ==4069 [2025-03-14 12:26:21] Production.ERROR: pbx CDR StartTime 2025-03-14 09:26:05 - End Time 2025-03-14 12:26:05 [2025-03-14 12:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678830', 'tblTempUsageDetail_20' ) start [2025-03-14 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678830', 'tblTempUsageDetail_20' ) end [2025-03-14 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678830', 'tblTempVendorCDR_20' ) start [2025-03-14 12:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678830', 'tblTempVendorCDR_20' ) end [2025-03-14 12:26:21] Production.INFO: ProcessCDR(1,14678830,1,1,2) [2025-03-14 12:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678830', 'tblTempUsageDetail_20' ) start [2025-03-14 12:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678830', 'tblTempUsageDetail_20' ) end [2025-03-14 12:26:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 12:26:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 12:26:26] Production.INFO: ==9905== Releasing lock... [2025-03-14 12:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 12:26:26] Production.INFO: 58.5 MB #Memory Used# [2025-03-14 12:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 09:27:06 [end_date_ymd] => 2025-03-14 12:27:06 [RateCDR] => 1 ) [2025-03-14 12:27: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-03-14 09:27:06' and `end` < '2025-03-14 12:27: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-03-14 12:27:19] Production.INFO: count ==4060 [2025-03-14 12:27:21] Production.ERROR: pbx CDR StartTime 2025-03-14 09:27:06 - End Time 2025-03-14 12:27:06 [2025-03-14 12:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 12:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678835', 'tblTempUsageDetail_20' ) start [2025-03-14 12:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678835', 'tblTempUsageDetail_20' ) end [2025-03-14 12:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678835', 'tblTempVendorCDR_20' ) start [2025-03-14 12:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678835', 'tblTempVendorCDR_20' ) end [2025-03-14 12:27:22] Production.INFO: ProcessCDR(1,14678835,1,1,2) [2025-03-14 12:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:27:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678835', 'tblTempUsageDetail_20' ) start [2025-03-14 12:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678835', 'tblTempUsageDetail_20' ) end [2025-03-14 12:27:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 12:27:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 12:27:27] Production.INFO: ==9998== Releasing lock... [2025-03-14 12:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 12:27:27] Production.INFO: 58.25 MB #Memory Used# [2025-03-14 12:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 09:28:05 [end_date_ymd] => 2025-03-14 12:28:05 [RateCDR] => 1 ) [2025-03-14 12:28: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-03-14 09:28:05' and `end` < '2025-03-14 12:28: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-03-14 12:28:18] Production.INFO: count ==4057 [2025-03-14 12:28:21] Production.ERROR: pbx CDR StartTime 2025-03-14 09:28:05 - End Time 2025-03-14 12:28:05 [2025-03-14 12:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678840', 'tblTempUsageDetail_20' ) start [2025-03-14 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678840', 'tblTempUsageDetail_20' ) end [2025-03-14 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678840', 'tblTempVendorCDR_20' ) start [2025-03-14 12:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678840', 'tblTempVendorCDR_20' ) end [2025-03-14 12:28:21] Production.INFO: ProcessCDR(1,14678840,1,1,2) [2025-03-14 12:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678840', 'tblTempUsageDetail_20' ) start [2025-03-14 12:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678840', 'tblTempUsageDetail_20' ) end [2025-03-14 12:28:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 12:28:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 12:28:27] Production.INFO: ==10097== Releasing lock... [2025-03-14 12:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 12:28:27] Production.INFO: 58.25 MB #Memory Used# [2025-03-14 12:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 09:29:06 [end_date_ymd] => 2025-03-14 12:29:06 [RateCDR] => 1 ) [2025-03-14 12:29: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-03-14 09:29:06' and `end` < '2025-03-14 12:29: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-03-14 12:29:19] Production.INFO: count ==4082 [2025-03-14 12:29:21] Production.ERROR: pbx CDR StartTime 2025-03-14 09:29:06 - End Time 2025-03-14 12:29:06 [2025-03-14 12:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678845', 'tblTempUsageDetail_20' ) start [2025-03-14 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678845', 'tblTempUsageDetail_20' ) end [2025-03-14 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678845', 'tblTempVendorCDR_20' ) start [2025-03-14 12:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678845', 'tblTempVendorCDR_20' ) end [2025-03-14 12:29:21] Production.INFO: ProcessCDR(1,14678845,1,1,2) [2025-03-14 12:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678845', 'tblTempUsageDetail_20' ) start [2025-03-14 12:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678845', 'tblTempUsageDetail_20' ) end [2025-03-14 12:29:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 12:29:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 12:29:26] Production.INFO: ==10229== Releasing lock... [2025-03-14 12:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 12:29:26] Production.INFO: 58.75 MB #Memory Used# [2025-03-14 12:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 09:30:06 [end_date_ymd] => 2025-03-14 12:30:06 [RateCDR] => 1 ) [2025-03-14 12:30: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-03-14 09:30:06' and `end` < '2025-03-14 12:30: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-03-14 12:30:19] Production.INFO: count ==4095 [2025-03-14 12:30:21] Production.ERROR: pbx CDR StartTime 2025-03-14 09:30:06 - End Time 2025-03-14 12:30:06 [2025-03-14 12:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 12:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678851', 'tblTempUsageDetail_20' ) start [2025-03-14 12:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678851', 'tblTempUsageDetail_20' ) end [2025-03-14 12:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678851', 'tblTempVendorCDR_20' ) start [2025-03-14 12:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678851', 'tblTempVendorCDR_20' ) end [2025-03-14 12:30:22] Production.INFO: ProcessCDR(1,14678851,1,1,2) [2025-03-14 12:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678851,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:30:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678851,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678851', 'tblTempUsageDetail_20' ) start [2025-03-14 12:30:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678851', 'tblTempUsageDetail_20' ) end [2025-03-14 12:30:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 12:30:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 12:30:27] Production.INFO: ==10328== Releasing lock... [2025-03-14 12:30:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 12:30:27] Production.INFO: 58.75 MB #Memory Used# [2025-03-14 12:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 09:31:06 [end_date_ymd] => 2025-03-14 12:31:06 [RateCDR] => 1 ) [2025-03-14 12:31: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-03-14 09:31:06' and `end` < '2025-03-14 12:31: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-03-14 12:31:19] Production.INFO: count ==4209 [2025-03-14 12:31:21] Production.ERROR: pbx CDR StartTime 2025-03-14 09:31:06 - End Time 2025-03-14 12:31:06 [2025-03-14 12:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678856', 'tblTempUsageDetail_20' ) start [2025-03-14 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678856', 'tblTempUsageDetail_20' ) end [2025-03-14 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678856', 'tblTempVendorCDR_20' ) start [2025-03-14 12:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678856', 'tblTempVendorCDR_20' ) end [2025-03-14 12:31:21] Production.INFO: ProcessCDR(1,14678856,1,1,2) [2025-03-14 12:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678856,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678856,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678856', 'tblTempUsageDetail_20' ) start [2025-03-14 12:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678856', 'tblTempUsageDetail_20' ) end [2025-03-14 12:31:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 12:31:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 12:31:27] Production.INFO: ==10426== Releasing lock... [2025-03-14 12:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 12:31:27] Production.INFO: 59.5 MB #Memory Used# [2025-03-14 12:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 09:32:05 [end_date_ymd] => 2025-03-14 12:32:05 [RateCDR] => 1 ) [2025-03-14 12:32: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-03-14 09:32:05' and `end` < '2025-03-14 12:32: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-03-14 12:32:19] Production.INFO: count ==4203 [2025-03-14 12:32:21] Production.ERROR: pbx CDR StartTime 2025-03-14 09:32:05 - End Time 2025-03-14 12:32:05 [2025-03-14 12:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678861', 'tblTempUsageDetail_20' ) start [2025-03-14 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678861', 'tblTempUsageDetail_20' ) end [2025-03-14 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678861', 'tblTempVendorCDR_20' ) start [2025-03-14 12:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678861', 'tblTempVendorCDR_20' ) end [2025-03-14 12:32:21] Production.INFO: ProcessCDR(1,14678861,1,1,2) [2025-03-14 12:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:32:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678861,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:32:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678861,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678861', 'tblTempUsageDetail_20' ) start [2025-03-14 12:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678861', 'tblTempUsageDetail_20' ) end [2025-03-14 12:32:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 12:32:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 12:32:27] Production.INFO: ==10531== Releasing lock... [2025-03-14 12:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 12:32:27] Production.INFO: 59.5 MB #Memory Used# [2025-03-14 12:33:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 09:33:06 [end_date_ymd] => 2025-03-14 12:33:06 [RateCDR] => 1 ) [2025-03-14 12:33: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-03-14 09:33:06' and `end` < '2025-03-14 12:33: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-03-14 12:33:19] Production.INFO: count ==4220 [2025-03-14 12:33:21] Production.ERROR: pbx CDR StartTime 2025-03-14 09:33:06 - End Time 2025-03-14 12:33:06 [2025-03-14 12:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678866', 'tblTempUsageDetail_20' ) start [2025-03-14 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678866', 'tblTempUsageDetail_20' ) end [2025-03-14 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678866', 'tblTempVendorCDR_20' ) start [2025-03-14 12:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678866', 'tblTempVendorCDR_20' ) end [2025-03-14 12:33:21] Production.INFO: ProcessCDR(1,14678866,1,1,2) [2025-03-14 12:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678866,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678866,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678866', 'tblTempUsageDetail_20' ) start [2025-03-14 12:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678866', 'tblTempUsageDetail_20' ) end [2025-03-14 12:33:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 12:33:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 12:33:27] Production.INFO: ==10629== Releasing lock... [2025-03-14 12:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 12:33:27] Production.INFO: 59.5 MB #Memory Used# [2025-03-14 12:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 09:34:06 [end_date_ymd] => 2025-03-14 12:34:06 [RateCDR] => 1 ) [2025-03-14 12:34: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-03-14 09:34:06' and `end` < '2025-03-14 12:34: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-03-14 12:34:19] Production.INFO: count ==4214 [2025-03-14 12:34:21] Production.ERROR: pbx CDR StartTime 2025-03-14 09:34:06 - End Time 2025-03-14 12:34:06 [2025-03-14 12:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678871', 'tblTempUsageDetail_20' ) start [2025-03-14 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678871', 'tblTempUsageDetail_20' ) end [2025-03-14 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678871', 'tblTempVendorCDR_20' ) start [2025-03-14 12:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678871', 'tblTempVendorCDR_20' ) end [2025-03-14 12:34:21] Production.INFO: ProcessCDR(1,14678871,1,1,2) [2025-03-14 12:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678871', 'tblTempUsageDetail_20' ) start [2025-03-14 12:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678871', 'tblTempUsageDetail_20' ) end [2025-03-14 12:34:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 12:34:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 12:34:27] Production.INFO: ==10751== Releasing lock... [2025-03-14 12:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 12:34:27] Production.INFO: 59.5 MB #Memory Used# [2025-03-14 12:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 09:35:05 [end_date_ymd] => 2025-03-14 12:35:05 [RateCDR] => 1 ) [2025-03-14 12:35: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-03-14 09:35:05' and `end` < '2025-03-14 12:35: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-03-14 12:35:18] Production.INFO: count ==4186 [2025-03-14 12:35:21] Production.ERROR: pbx CDR StartTime 2025-03-14 09:35:05 - End Time 2025-03-14 12:35:05 [2025-03-14 12:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678876', 'tblTempUsageDetail_20' ) start [2025-03-14 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678876', 'tblTempUsageDetail_20' ) end [2025-03-14 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678876', 'tblTempVendorCDR_20' ) start [2025-03-14 12:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678876', 'tblTempVendorCDR_20' ) end [2025-03-14 12:35:21] Production.INFO: ProcessCDR(1,14678876,1,1,2) [2025-03-14 12:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678876', 'tblTempUsageDetail_20' ) start [2025-03-14 12:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678876', 'tblTempUsageDetail_20' ) end [2025-03-14 12:35:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 12:35:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 12:35:26] Production.INFO: ==10848== Releasing lock... [2025-03-14 12:35:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 12:35:26] Production.INFO: 59.25 MB #Memory Used# [2025-03-14 12:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 09:36:06 [end_date_ymd] => 2025-03-14 12:36:06 [RateCDR] => 1 ) [2025-03-14 12:36: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-03-14 09:36:06' and `end` < '2025-03-14 12:36: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-03-14 12:36:19] Production.INFO: count ==4148 [2025-03-14 12:36:21] Production.ERROR: pbx CDR StartTime 2025-03-14 09:36:06 - End Time 2025-03-14 12:36:06 [2025-03-14 12:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 12:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678881', 'tblTempUsageDetail_20' ) start [2025-03-14 12:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678881', 'tblTempUsageDetail_20' ) end [2025-03-14 12:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678881', 'tblTempVendorCDR_20' ) start [2025-03-14 12:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678881', 'tblTempVendorCDR_20' ) end [2025-03-14 12:36:21] Production.INFO: ProcessCDR(1,14678881,1,1,2) [2025-03-14 12:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678881', 'tblTempUsageDetail_20' ) start [2025-03-14 12:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678881', 'tblTempUsageDetail_20' ) end [2025-03-14 12:36:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 12:36:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 12:36:26] Production.INFO: ==10947== Releasing lock... [2025-03-14 12:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 12:36:26] Production.INFO: 59 MB #Memory Used# [2025-03-14 12:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 09:37:06 [end_date_ymd] => 2025-03-14 12:37:06 [RateCDR] => 1 ) [2025-03-14 12:37: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-03-14 09:37:06' and `end` < '2025-03-14 12:37: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-03-14 12:37:19] Production.INFO: count ==4140 [2025-03-14 12:37:21] Production.ERROR: pbx CDR StartTime 2025-03-14 09:37:06 - End Time 2025-03-14 12:37:06 [2025-03-14 12:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 12:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678886', 'tblTempUsageDetail_20' ) start [2025-03-14 12:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678886', 'tblTempUsageDetail_20' ) end [2025-03-14 12:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678886', 'tblTempVendorCDR_20' ) start [2025-03-14 12:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678886', 'tblTempVendorCDR_20' ) end [2025-03-14 12:37:21] Production.INFO: ProcessCDR(1,14678886,1,1,2) [2025-03-14 12:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678886', 'tblTempUsageDetail_20' ) start [2025-03-14 12:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678886', 'tblTempUsageDetail_20' ) end [2025-03-14 12:37:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 12:37:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 12:37:27] Production.INFO: ==11043== Releasing lock... [2025-03-14 12:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 12:37:27] Production.INFO: 59 MB #Memory Used# [2025-03-14 12:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 09:38:05 [end_date_ymd] => 2025-03-14 12:38:05 [RateCDR] => 1 ) [2025-03-14 12:38: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-03-14 09:38:05' and `end` < '2025-03-14 12:38: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-03-14 12:38:18] Production.INFO: count ==4129 [2025-03-14 12:38:21] Production.ERROR: pbx CDR StartTime 2025-03-14 09:38:05 - End Time 2025-03-14 12:38:05 [2025-03-14 12:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678891', 'tblTempUsageDetail_20' ) start [2025-03-14 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678891', 'tblTempUsageDetail_20' ) end [2025-03-14 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678891', 'tblTempVendorCDR_20' ) start [2025-03-14 12:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678891', 'tblTempVendorCDR_20' ) end [2025-03-14 12:38:21] Production.INFO: ProcessCDR(1,14678891,1,1,2) [2025-03-14 12:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678891', 'tblTempUsageDetail_20' ) start [2025-03-14 12:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678891', 'tblTempUsageDetail_20' ) end [2025-03-14 12:38:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 12:38:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 12:38:27] Production.INFO: ==11152== Releasing lock... [2025-03-14 12:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 12:38:27] Production.INFO: 59 MB #Memory Used# [2025-03-14 12:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 09:39:05 [end_date_ymd] => 2025-03-14 12:39:05 [RateCDR] => 1 ) [2025-03-14 12:39: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-03-14 09:39:05' and `end` < '2025-03-14 12:39: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-03-14 12:39:19] Production.INFO: count ==4113 [2025-03-14 12:39:21] Production.ERROR: pbx CDR StartTime 2025-03-14 09:39:05 - End Time 2025-03-14 12:39:05 [2025-03-14 12:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678896', 'tblTempUsageDetail_20' ) start [2025-03-14 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678896', 'tblTempUsageDetail_20' ) end [2025-03-14 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678896', 'tblTempVendorCDR_20' ) start [2025-03-14 12:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678896', 'tblTempVendorCDR_20' ) end [2025-03-14 12:39:21] Production.INFO: ProcessCDR(1,14678896,1,1,2) [2025-03-14 12:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678896', 'tblTempUsageDetail_20' ) start [2025-03-14 12:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678896', 'tblTempUsageDetail_20' ) end [2025-03-14 12:39:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 12:39:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 12:39:26] Production.INFO: ==11257== Releasing lock... [2025-03-14 12:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 12:39:26] Production.INFO: 58.75 MB #Memory Used# [2025-03-14 12:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 09:40:06 [end_date_ymd] => 2025-03-14 12:40:06 [RateCDR] => 1 ) [2025-03-14 12:40: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-03-14 09:40:06' and `end` < '2025-03-14 12:40: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-03-14 12:40:19] Production.INFO: count ==4099 [2025-03-14 12:40:22] Production.ERROR: pbx CDR StartTime 2025-03-14 09:40:06 - End Time 2025-03-14 12:40:06 [2025-03-14 12:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 12:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678902', 'tblTempUsageDetail_20' ) start [2025-03-14 12:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678902', 'tblTempUsageDetail_20' ) end [2025-03-14 12:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678902', 'tblTempVendorCDR_20' ) start [2025-03-14 12:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678902', 'tblTempVendorCDR_20' ) end [2025-03-14 12:40:22] Production.INFO: ProcessCDR(1,14678902,1,1,2) [2025-03-14 12:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678902,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678902,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678902', 'tblTempUsageDetail_20' ) start [2025-03-14 12:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678902', 'tblTempUsageDetail_20' ) end [2025-03-14 12:40:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 12:40:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 12:40:25] Production.INFO: ==11353== Releasing lock... [2025-03-14 12:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 12:40:25] Production.INFO: 58.75 MB #Memory Used# [2025-03-14 12:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 09:41:06 [end_date_ymd] => 2025-03-14 12:41:06 [RateCDR] => 1 ) [2025-03-14 12:41: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-03-14 09:41:06' and `end` < '2025-03-14 12:41: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-03-14 12:41:19] Production.INFO: count ==4199 [2025-03-14 12:41:21] Production.ERROR: pbx CDR StartTime 2025-03-14 09:41:06 - End Time 2025-03-14 12:41:06 [2025-03-14 12:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 12:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678907', 'tblTempUsageDetail_20' ) start [2025-03-14 12:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678907', 'tblTempUsageDetail_20' ) end [2025-03-14 12:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678907', 'tblTempVendorCDR_20' ) start [2025-03-14 12:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678907', 'tblTempVendorCDR_20' ) end [2025-03-14 12:41:22] Production.INFO: ProcessCDR(1,14678907,1,1,2) [2025-03-14 12:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678907,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678907,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678907', 'tblTempUsageDetail_20' ) start [2025-03-14 12:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678907', 'tblTempUsageDetail_20' ) end [2025-03-14 12:41:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 12:41:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 12:41:27] Production.INFO: ==11462== Releasing lock... [2025-03-14 12:41:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 12:41:27] Production.INFO: 59.75 MB #Memory Used# [2025-03-14 12:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 09:42:05 [end_date_ymd] => 2025-03-14 12:42:05 [RateCDR] => 1 ) [2025-03-14 12:42: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-03-14 09:42:05' and `end` < '2025-03-14 12:42: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-03-14 12:42:18] Production.INFO: count ==4210 [2025-03-14 12:42:21] Production.ERROR: pbx CDR StartTime 2025-03-14 09:42:05 - End Time 2025-03-14 12:42:05 [2025-03-14 12:42:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678912', 'tblTempUsageDetail_20' ) start [2025-03-14 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678912', 'tblTempUsageDetail_20' ) end [2025-03-14 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678912', 'tblTempVendorCDR_20' ) start [2025-03-14 12:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678912', 'tblTempVendorCDR_20' ) end [2025-03-14 12:42:21] Production.INFO: ProcessCDR(1,14678912,1,1,2) [2025-03-14 12:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:42:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678912,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:42:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678912,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678912', 'tblTempUsageDetail_20' ) start [2025-03-14 12:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678912', 'tblTempUsageDetail_20' ) end [2025-03-14 12:42:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 12:42:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 12:42:26] Production.INFO: ==11562== Releasing lock... [2025-03-14 12:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 12:42:26] Production.INFO: 59.5 MB #Memory Used# [2025-03-14 12:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 09:43:06 [end_date_ymd] => 2025-03-14 12:43:06 [RateCDR] => 1 ) [2025-03-14 12:43: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-03-14 09:43:06' and `end` < '2025-03-14 12:43: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-03-14 12:43:19] Production.INFO: count ==4190 [2025-03-14 12:43:22] Production.ERROR: pbx CDR StartTime 2025-03-14 09:43:06 - End Time 2025-03-14 12:43:06 [2025-03-14 12:43:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 12:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678917', 'tblTempUsageDetail_20' ) start [2025-03-14 12:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678917', 'tblTempUsageDetail_20' ) end [2025-03-14 12:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678917', 'tblTempVendorCDR_20' ) start [2025-03-14 12:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678917', 'tblTempVendorCDR_20' ) end [2025-03-14 12:43:22] Production.INFO: ProcessCDR(1,14678917,1,1,2) [2025-03-14 12:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:43:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678917,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:43:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678917,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678917', 'tblTempUsageDetail_20' ) start [2025-03-14 12:43:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678917', 'tblTempUsageDetail_20' ) end [2025-03-14 12:43:28] Production.ERROR: pbx prc_insertCDR start [2025-03-14 12:43:28] Production.ERROR: pbx prc_insertCDR end [2025-03-14 12:43:28] Production.INFO: ==11663== Releasing lock... [2025-03-14 12:43:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 12:43:28] Production.INFO: 59.5 MB #Memory Used# [2025-03-14 12:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 09:44:05 [end_date_ymd] => 2025-03-14 12:44:05 [RateCDR] => 1 ) [2025-03-14 12:44: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-03-14 09:44:05' and `end` < '2025-03-14 12:44: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-03-14 12:44:18] Production.INFO: count ==4155 [2025-03-14 12:44:21] Production.ERROR: pbx CDR StartTime 2025-03-14 09:44:05 - End Time 2025-03-14 12:44:05 [2025-03-14 12:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 12:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678922', 'tblTempUsageDetail_20' ) start [2025-03-14 12:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678922', 'tblTempUsageDetail_20' ) end [2025-03-14 12:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678922', 'tblTempVendorCDR_20' ) start [2025-03-14 12:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678922', 'tblTempVendorCDR_20' ) end [2025-03-14 12:44:21] Production.INFO: ProcessCDR(1,14678922,1,1,2) [2025-03-14 12:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678922', 'tblTempUsageDetail_20' ) start [2025-03-14 12:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678922', 'tblTempUsageDetail_20' ) end [2025-03-14 12:44:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 12:44:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 12:44:27] Production.INFO: ==11805== Releasing lock... [2025-03-14 12:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 12:44:27] Production.INFO: 59 MB #Memory Used# [2025-03-14 12:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 09:45:06 [end_date_ymd] => 2025-03-14 12:45:06 [RateCDR] => 1 ) [2025-03-14 12:45: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-03-14 09:45:06' and `end` < '2025-03-14 12:45: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-03-14 12:45:19] Production.INFO: count ==4134 [2025-03-14 12:45:21] Production.ERROR: pbx CDR StartTime 2025-03-14 09:45:06 - End Time 2025-03-14 12:45:06 [2025-03-14 12:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 12:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678927', 'tblTempUsageDetail_20' ) start [2025-03-14 12:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678927', 'tblTempUsageDetail_20' ) end [2025-03-14 12:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678927', 'tblTempVendorCDR_20' ) start [2025-03-14 12:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678927', 'tblTempVendorCDR_20' ) end [2025-03-14 12:45:21] Production.INFO: ProcessCDR(1,14678927,1,1,2) [2025-03-14 12:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678927', 'tblTempUsageDetail_20' ) start [2025-03-14 12:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678927', 'tblTempUsageDetail_20' ) end [2025-03-14 12:45:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 12:45:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 12:45:26] Production.INFO: ==11908== Releasing lock... [2025-03-14 12:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 12:45:26] Production.INFO: 59 MB #Memory Used# [2025-03-14 12:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 09:46:05 [end_date_ymd] => 2025-03-14 12:46:05 [RateCDR] => 1 ) [2025-03-14 12:46: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-03-14 09:46:05' and `end` < '2025-03-14 12:46: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-03-14 12:46:18] Production.INFO: count ==4076 [2025-03-14 12:46:20] Production.ERROR: pbx CDR StartTime 2025-03-14 09:46:05 - End Time 2025-03-14 12:46:05 [2025-03-14 12:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 12:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678932', 'tblTempUsageDetail_20' ) start [2025-03-14 12:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678932', 'tblTempUsageDetail_20' ) end [2025-03-14 12:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678932', 'tblTempVendorCDR_20' ) start [2025-03-14 12:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678932', 'tblTempVendorCDR_20' ) end [2025-03-14 12:46:20] Production.INFO: ProcessCDR(1,14678932,1,1,2) [2025-03-14 12:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678932', 'tblTempUsageDetail_20' ) start [2025-03-14 12:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678932', 'tblTempUsageDetail_20' ) end [2025-03-14 12:46:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 12:46:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 12:46:25] Production.INFO: ==12007== Releasing lock... [2025-03-14 12:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 12:46:25] Production.INFO: 58.5 MB #Memory Used# [2025-03-14 12:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 09:47:06 [end_date_ymd] => 2025-03-14 12:47:06 [RateCDR] => 1 ) [2025-03-14 12:47: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-03-14 09:47:06' and `end` < '2025-03-14 12:47: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-03-14 12:47:19] Production.INFO: count ==4030 [2025-03-14 12:47:21] Production.ERROR: pbx CDR StartTime 2025-03-14 09:47:06 - End Time 2025-03-14 12:47:06 [2025-03-14 12:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678937', 'tblTempUsageDetail_20' ) start [2025-03-14 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678937', 'tblTempUsageDetail_20' ) end [2025-03-14 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678937', 'tblTempVendorCDR_20' ) start [2025-03-14 12:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678937', 'tblTempVendorCDR_20' ) end [2025-03-14 12:47:21] Production.INFO: ProcessCDR(1,14678937,1,1,2) [2025-03-14 12:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678937', 'tblTempUsageDetail_20' ) start [2025-03-14 12:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678937', 'tblTempUsageDetail_20' ) end [2025-03-14 12:47:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 12:47:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 12:47:26] Production.INFO: ==12113== Releasing lock... [2025-03-14 12:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 12:47:26] Production.INFO: 58.25 MB #Memory Used# [2025-03-14 12:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 09:48:06 [end_date_ymd] => 2025-03-14 12:48:06 [RateCDR] => 1 ) [2025-03-14 12:48: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-03-14 09:48:06' and `end` < '2025-03-14 12:48: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-03-14 12:48:20] Production.INFO: count ==4010 [2025-03-14 12:48:21] Production.ERROR: pbx CDR StartTime 2025-03-14 09:48:06 - End Time 2025-03-14 12:48:06 [2025-03-14 12:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 12:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678942', 'tblTempUsageDetail_20' ) start [2025-03-14 12:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678942', 'tblTempUsageDetail_20' ) end [2025-03-14 12:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678942', 'tblTempVendorCDR_20' ) start [2025-03-14 12:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678942', 'tblTempVendorCDR_20' ) end [2025-03-14 12:48:22] Production.INFO: ProcessCDR(1,14678942,1,1,2) [2025-03-14 12:48:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678942', 'tblTempUsageDetail_20' ) start [2025-03-14 12:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678942', 'tblTempUsageDetail_20' ) end [2025-03-14 12:48:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 12:48:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 12:48:27] Production.INFO: ==12210== Releasing lock... [2025-03-14 12:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 12:48:27] Production.INFO: 58 MB #Memory Used# [2025-03-14 12:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 09:49:06 [end_date_ymd] => 2025-03-14 12:49:06 [RateCDR] => 1 ) [2025-03-14 12:49: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-03-14 09:49:06' and `end` < '2025-03-14 12:49: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-03-14 12:49:19] Production.INFO: count ==4009 [2025-03-14 12:49:21] Production.ERROR: pbx CDR StartTime 2025-03-14 09:49:06 - End Time 2025-03-14 12:49:06 [2025-03-14 12:49:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678947', 'tblTempUsageDetail_20' ) start [2025-03-14 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678947', 'tblTempUsageDetail_20' ) end [2025-03-14 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678947', 'tblTempVendorCDR_20' ) start [2025-03-14 12:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678947', 'tblTempVendorCDR_20' ) end [2025-03-14 12:49:21] Production.INFO: ProcessCDR(1,14678947,1,1,2) [2025-03-14 12:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:49:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:49:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678947', 'tblTempUsageDetail_20' ) start [2025-03-14 12:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678947', 'tblTempUsageDetail_20' ) end [2025-03-14 12:49:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 12:49:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 12:49:26] Production.INFO: ==12308== Releasing lock... [2025-03-14 12:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 12:49:26] Production.INFO: 58 MB #Memory Used# [2025-03-14 12:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 09:50:06 [end_date_ymd] => 2025-03-14 12:50:06 [RateCDR] => 1 ) [2025-03-14 12:50: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-03-14 09:50:06' and `end` < '2025-03-14 12:50: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-03-14 12:50:19] Production.INFO: count ==4016 [2025-03-14 12:50:21] Production.ERROR: pbx CDR StartTime 2025-03-14 09:50:06 - End Time 2025-03-14 12:50:06 [2025-03-14 12:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 12:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678953', 'tblTempUsageDetail_20' ) start [2025-03-14 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678953', 'tblTempUsageDetail_20' ) end [2025-03-14 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678953', 'tblTempVendorCDR_20' ) start [2025-03-14 12:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678953', 'tblTempVendorCDR_20' ) end [2025-03-14 12:50:22] Production.INFO: ProcessCDR(1,14678953,1,1,2) [2025-03-14 12:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678953,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678953,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678953', 'tblTempUsageDetail_20' ) start [2025-03-14 12:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678953', 'tblTempUsageDetail_20' ) end [2025-03-14 12:50:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 12:50:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 12:50:27] Production.INFO: ==12412== Releasing lock... [2025-03-14 12:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 12:50:27] Production.INFO: 58.25 MB #Memory Used# [2025-03-14 12:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 09:51:06 [end_date_ymd] => 2025-03-14 12:51:06 [RateCDR] => 1 ) [2025-03-14 12:51: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-03-14 09:51:06' and `end` < '2025-03-14 12:51: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-03-14 12:51:19] Production.INFO: count ==4092 [2025-03-14 12:51:21] Production.ERROR: pbx CDR StartTime 2025-03-14 09:51:06 - End Time 2025-03-14 12:51:06 [2025-03-14 12:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678958', 'tblTempUsageDetail_20' ) start [2025-03-14 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678958', 'tblTempUsageDetail_20' ) end [2025-03-14 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678958', 'tblTempVendorCDR_20' ) start [2025-03-14 12:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678958', 'tblTempVendorCDR_20' ) end [2025-03-14 12:51:21] Production.INFO: ProcessCDR(1,14678958,1,1,2) [2025-03-14 12:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678958,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678958,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678958', 'tblTempUsageDetail_20' ) start [2025-03-14 12:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678958', 'tblTempUsageDetail_20' ) end [2025-03-14 12:51:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 12:51:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 12:51:27] Production.INFO: ==12523== Releasing lock... [2025-03-14 12:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 12:51:27] Production.INFO: 58.5 MB #Memory Used# [2025-03-14 12:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 09:52:05 [end_date_ymd] => 2025-03-14 12:52:05 [RateCDR] => 1 ) [2025-03-14 12:52: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-03-14 09:52:05' and `end` < '2025-03-14 12:52: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-03-14 12:52:18] Production.INFO: count ==4090 [2025-03-14 12:52:20] Production.ERROR: pbx CDR StartTime 2025-03-14 09:52:05 - End Time 2025-03-14 12:52:05 [2025-03-14 12:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 12:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678963', 'tblTempUsageDetail_20' ) start [2025-03-14 12:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678963', 'tblTempUsageDetail_20' ) end [2025-03-14 12:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678963', 'tblTempVendorCDR_20' ) start [2025-03-14 12:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678963', 'tblTempVendorCDR_20' ) end [2025-03-14 12:52:20] Production.INFO: ProcessCDR(1,14678963,1,1,2) [2025-03-14 12:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678963,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678963,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678963', 'tblTempUsageDetail_20' ) start [2025-03-14 12:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678963', 'tblTempUsageDetail_20' ) end [2025-03-14 12:52:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 12:52:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 12:52:26] Production.INFO: ==12621== Releasing lock... [2025-03-14 12:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 12:52:26] Production.INFO: 58.5 MB #Memory Used# [2025-03-14 12:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 09:53:06 [end_date_ymd] => 2025-03-14 12:53:06 [RateCDR] => 1 ) [2025-03-14 12:53: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-03-14 09:53:06' and `end` < '2025-03-14 12:53: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-03-14 12:53:19] Production.INFO: count ==4100 [2025-03-14 12:53:21] Production.ERROR: pbx CDR StartTime 2025-03-14 09:53:06 - End Time 2025-03-14 12:53:06 [2025-03-14 12:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678968', 'tblTempUsageDetail_20' ) start [2025-03-14 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678968', 'tblTempUsageDetail_20' ) end [2025-03-14 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678968', 'tblTempVendorCDR_20' ) start [2025-03-14 12:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678968', 'tblTempVendorCDR_20' ) end [2025-03-14 12:53:21] Production.INFO: ProcessCDR(1,14678968,1,1,2) [2025-03-14 12:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678968,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678968,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678968', 'tblTempUsageDetail_20' ) start [2025-03-14 12:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678968', 'tblTempUsageDetail_20' ) end [2025-03-14 12:53:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 12:53:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 12:53:26] Production.INFO: ==12733== Releasing lock... [2025-03-14 12:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 12:53:26] Production.INFO: 58.75 MB #Memory Used# [2025-03-14 12:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 09:54:05 [end_date_ymd] => 2025-03-14 12:54:05 [RateCDR] => 1 ) [2025-03-14 12:54: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-03-14 09:54:05' and `end` < '2025-03-14 12:54: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-03-14 12:54:18] Production.INFO: count ==4083 [2025-03-14 12:54:20] Production.ERROR: pbx CDR StartTime 2025-03-14 09:54:05 - End Time 2025-03-14 12:54:05 [2025-03-14 12:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 12:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678973', 'tblTempUsageDetail_20' ) start [2025-03-14 12:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678973', 'tblTempUsageDetail_20' ) end [2025-03-14 12:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678973', 'tblTempVendorCDR_20' ) start [2025-03-14 12:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678973', 'tblTempVendorCDR_20' ) end [2025-03-14 12:54:20] Production.INFO: ProcessCDR(1,14678973,1,1,2) [2025-03-14 12:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678973', 'tblTempUsageDetail_20' ) start [2025-03-14 12:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678973', 'tblTempUsageDetail_20' ) end [2025-03-14 12:54:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 12:54:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 12:54:25] Production.INFO: ==12887== Releasing lock... [2025-03-14 12:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 12:54:25] Production.INFO: 58.5 MB #Memory Used# [2025-03-14 12:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 09:55:06 [end_date_ymd] => 2025-03-14 12:55:06 [RateCDR] => 1 ) [2025-03-14 12:55: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-03-14 09:55:06' and `end` < '2025-03-14 12:55: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-03-14 12:55:19] Production.INFO: count ==4085 [2025-03-14 12:55:21] Production.ERROR: pbx CDR StartTime 2025-03-14 09:55:06 - End Time 2025-03-14 12:55:06 [2025-03-14 12:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678978', 'tblTempUsageDetail_20' ) start [2025-03-14 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678978', 'tblTempUsageDetail_20' ) end [2025-03-14 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678978', 'tblTempVendorCDR_20' ) start [2025-03-14 12:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678978', 'tblTempVendorCDR_20' ) end [2025-03-14 12:55:21] Production.INFO: ProcessCDR(1,14678978,1,1,2) [2025-03-14 12:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678978', 'tblTempUsageDetail_20' ) start [2025-03-14 12:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678978', 'tblTempUsageDetail_20' ) end [2025-03-14 12:55:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 12:55:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 12:55:26] Production.INFO: ==13042== Releasing lock... [2025-03-14 12:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 12:55:26] Production.INFO: 58.5 MB #Memory Used# [2025-03-14 12:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 09:56:06 [end_date_ymd] => 2025-03-14 12:56:06 [RateCDR] => 1 ) [2025-03-14 12:56: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-03-14 09:56:06' and `end` < '2025-03-14 12:56: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-03-14 12:56:19] Production.INFO: count ==4087 [2025-03-14 12:56:21] Production.ERROR: pbx CDR StartTime 2025-03-14 09:56:06 - End Time 2025-03-14 12:56:06 [2025-03-14 12:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678983', 'tblTempUsageDetail_20' ) start [2025-03-14 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678983', 'tblTempUsageDetail_20' ) end [2025-03-14 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678983', 'tblTempVendorCDR_20' ) start [2025-03-14 12:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678983', 'tblTempVendorCDR_20' ) end [2025-03-14 12:56:21] Production.INFO: ProcessCDR(1,14678983,1,1,2) [2025-03-14 12:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678983', 'tblTempUsageDetail_20' ) start [2025-03-14 12:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678983', 'tblTempUsageDetail_20' ) end [2025-03-14 12:56:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 12:56:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 12:56:26] Production.INFO: ==13194== Releasing lock... [2025-03-14 12:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 12:56:26] Production.INFO: 58.5 MB #Memory Used# [2025-03-14 12:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 09:57:05 [end_date_ymd] => 2025-03-14 12:57:05 [RateCDR] => 1 ) [2025-03-14 12:57: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-03-14 09:57:05' and `end` < '2025-03-14 12:57: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-03-14 12:57:18] Production.INFO: count ==4084 [2025-03-14 12:57:20] Production.ERROR: pbx CDR StartTime 2025-03-14 09:57:05 - End Time 2025-03-14 12:57:05 [2025-03-14 12:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 12:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678988', 'tblTempUsageDetail_20' ) start [2025-03-14 12:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678988', 'tblTempUsageDetail_20' ) end [2025-03-14 12:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678988', 'tblTempVendorCDR_20' ) start [2025-03-14 12:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678988', 'tblTempVendorCDR_20' ) end [2025-03-14 12:57:20] Production.INFO: ProcessCDR(1,14678988,1,1,2) [2025-03-14 12:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678988', 'tblTempUsageDetail_20' ) start [2025-03-14 12:57:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678988', 'tblTempUsageDetail_20' ) end [2025-03-14 12:57:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 12:57:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 12:57:26] Production.INFO: ==13348== Releasing lock... [2025-03-14 12:57:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 12:57:26] Production.INFO: 58.5 MB #Memory Used# [2025-03-14 12:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 09:58:05 [end_date_ymd] => 2025-03-14 12:58:05 [RateCDR] => 1 ) [2025-03-14 12:58: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-03-14 09:58:05' and `end` < '2025-03-14 12:58: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-03-14 12:58:18] Production.INFO: count ==4101 [2025-03-14 12:58:20] Production.ERROR: pbx CDR StartTime 2025-03-14 09:58:05 - End Time 2025-03-14 12:58:05 [2025-03-14 12:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 12:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678993', 'tblTempUsageDetail_20' ) start [2025-03-14 12:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678993', 'tblTempUsageDetail_20' ) end [2025-03-14 12:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678993', 'tblTempVendorCDR_20' ) start [2025-03-14 12:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678993', 'tblTempVendorCDR_20' ) end [2025-03-14 12:58:20] Production.INFO: ProcessCDR(1,14678993,1,1,2) [2025-03-14 12:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678993', 'tblTempUsageDetail_20' ) start [2025-03-14 12:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678993', 'tblTempUsageDetail_20' ) end [2025-03-14 12:58:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 12:58:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 12:58:25] Production.INFO: ==13502== Releasing lock... [2025-03-14 12:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 12:58:25] Production.INFO: 58.75 MB #Memory Used# [2025-03-14 12:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 09:59:05 [end_date_ymd] => 2025-03-14 12:59:05 [RateCDR] => 1 ) [2025-03-14 12:59: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-03-14 09:59:05' and `end` < '2025-03-14 12:59: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-03-14 12:59:18] Production.INFO: count ==4093 [2025-03-14 12:59:20] Production.ERROR: pbx CDR StartTime 2025-03-14 09:59:05 - End Time 2025-03-14 12:59:05 [2025-03-14 12:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 12:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678998', 'tblTempUsageDetail_20' ) start [2025-03-14 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14678998', 'tblTempUsageDetail_20' ) end [2025-03-14 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678998', 'tblTempVendorCDR_20' ) start [2025-03-14 12:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14678998', 'tblTempVendorCDR_20' ) end [2025-03-14 12:59:21] Production.INFO: ProcessCDR(1,14678998,1,1,2) [2025-03-14 12:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14678998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14678998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 12:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14678998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14678998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 12:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678998', 'tblTempUsageDetail_20' ) start [2025-03-14 12:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14678998', 'tblTempUsageDetail_20' ) end [2025-03-14 12:59:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 12:59:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 12:59:26] Production.INFO: ==13664== Releasing lock... [2025-03-14 12:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 12:59:26] Production.INFO: 58.5 MB #Memory Used# [2025-03-14 13:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 10:00:07 [end_date_ymd] => 2025-03-14 13:00:07 [RateCDR] => 1 ) [2025-03-14 13:00:07] 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-03-14 10:00:07' and `end` < '2025-03-14 13:00:07' 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-03-14 13:00:20] Production.INFO: count ==4117 [2025-03-14 13:00:22] Production.ERROR: pbx CDR StartTime 2025-03-14 10:00:07 - End Time 2025-03-14 13:00:07 [2025-03-14 13:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679004', 'tblTempUsageDetail_20' ) start [2025-03-14 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679004', 'tblTempUsageDetail_20' ) end [2025-03-14 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679004', 'tblTempVendorCDR_20' ) start [2025-03-14 13:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679004', 'tblTempVendorCDR_20' ) end [2025-03-14 13:00:22] Production.INFO: ProcessCDR(1,14679004,1,1,2) [2025-03-14 13:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679004,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679004,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679004', 'tblTempUsageDetail_20' ) start [2025-03-14 13:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679004', 'tblTempUsageDetail_20' ) end [2025-03-14 13:00:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 13:00:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 13:00:26] Production.INFO: ==13863== Releasing lock... [2025-03-14 13:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 13:00:26] Production.INFO: 58.75 MB #Memory Used# [2025-03-14 13:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 10:01:05 [end_date_ymd] => 2025-03-14 13:01:05 [RateCDR] => 1 ) [2025-03-14 13:01: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-03-14 10:01:05' and `end` < '2025-03-14 13:01: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-03-14 13:01:19] Production.INFO: count ==4200 [2025-03-14 13:01:21] Production.ERROR: pbx CDR StartTime 2025-03-14 10:01:05 - End Time 2025-03-14 13:01:05 [2025-03-14 13:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679009', 'tblTempUsageDetail_20' ) start [2025-03-14 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679009', 'tblTempUsageDetail_20' ) end [2025-03-14 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679009', 'tblTempVendorCDR_20' ) start [2025-03-14 13:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679009', 'tblTempVendorCDR_20' ) end [2025-03-14 13:01:21] Production.INFO: ProcessCDR(1,14679009,1,1,2) [2025-03-14 13:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679009,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679009,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679009', 'tblTempUsageDetail_20' ) start [2025-03-14 13:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679009', 'tblTempUsageDetail_20' ) end [2025-03-14 13:01:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 13:01:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 13:01:27] Production.INFO: ==14032== Releasing lock... [2025-03-14 13:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 13:01:27] Production.INFO: 59.5 MB #Memory Used# [2025-03-14 13:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 10:02:06 [end_date_ymd] => 2025-03-14 13:02:06 [RateCDR] => 1 ) [2025-03-14 13:02: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-03-14 10:02:06' and `end` < '2025-03-14 13:02: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-03-14 13:02:19] Production.INFO: count ==4200 [2025-03-14 13:02:21] Production.ERROR: pbx CDR StartTime 2025-03-14 10:02:06 - End Time 2025-03-14 13:02:06 [2025-03-14 13:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 13:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679014', 'tblTempUsageDetail_20' ) start [2025-03-14 13:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679014', 'tblTempUsageDetail_20' ) end [2025-03-14 13:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679014', 'tblTempVendorCDR_20' ) start [2025-03-14 13:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679014', 'tblTempVendorCDR_20' ) end [2025-03-14 13:02:21] Production.INFO: ProcessCDR(1,14679014,1,1,2) [2025-03-14 13:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679014,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679014,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679014', 'tblTempUsageDetail_20' ) start [2025-03-14 13:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679014', 'tblTempUsageDetail_20' ) end [2025-03-14 13:02:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 13:02:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 13:02:27] Production.INFO: ==14177== Releasing lock... [2025-03-14 13:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 13:02:27] Production.INFO: 59.5 MB #Memory Used# [2025-03-14 13:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 10:03:06 [end_date_ymd] => 2025-03-14 13:03:06 [RateCDR] => 1 ) [2025-03-14 13:03: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-03-14 10:03:06' and `end` < '2025-03-14 13:03: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-03-14 13:03:19] Production.INFO: count ==4194 [2025-03-14 13:03:21] Production.ERROR: pbx CDR StartTime 2025-03-14 10:03:06 - End Time 2025-03-14 13:03:06 [2025-03-14 13:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679019', 'tblTempUsageDetail_20' ) start [2025-03-14 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679019', 'tblTempUsageDetail_20' ) end [2025-03-14 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679019', 'tblTempVendorCDR_20' ) start [2025-03-14 13:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679019', 'tblTempVendorCDR_20' ) end [2025-03-14 13:03:21] Production.INFO: ProcessCDR(1,14679019,1,1,2) [2025-03-14 13:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679019,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679019,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679019', 'tblTempUsageDetail_20' ) start [2025-03-14 13:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679019', 'tblTempUsageDetail_20' ) end [2025-03-14 13:03:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 13:03:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 13:03:27] Production.INFO: ==14282== Releasing lock... [2025-03-14 13:03:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 13:03:27] Production.INFO: 59.5 MB #Memory Used# [2025-03-14 13:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 10:04:06 [end_date_ymd] => 2025-03-14 13:04:06 [RateCDR] => 1 ) [2025-03-14 13:04: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-03-14 10:04:06' and `end` < '2025-03-14 13:04: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-03-14 13:04:18] Production.INFO: count ==4171 [2025-03-14 13:04:21] Production.ERROR: pbx CDR StartTime 2025-03-14 10:04:06 - End Time 2025-03-14 13:04:06 [2025-03-14 13:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679024', 'tblTempUsageDetail_20' ) start [2025-03-14 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679024', 'tblTempUsageDetail_20' ) end [2025-03-14 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679024', 'tblTempVendorCDR_20' ) start [2025-03-14 13:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679024', 'tblTempVendorCDR_20' ) end [2025-03-14 13:04:21] Production.INFO: ProcessCDR(1,14679024,1,1,2) [2025-03-14 13:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679024', 'tblTempUsageDetail_20' ) start [2025-03-14 13:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679024', 'tblTempUsageDetail_20' ) end [2025-03-14 13:04:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 13:04:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 13:04:26] Production.INFO: ==14382== Releasing lock... [2025-03-14 13:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 13:04:26] Production.INFO: 59.25 MB #Memory Used# [2025-03-14 13:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 10:05:06 [end_date_ymd] => 2025-03-14 13:05:06 [RateCDR] => 1 ) [2025-03-14 13:05: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-03-14 10:05:06' and `end` < '2025-03-14 13:05: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-03-14 13:05:19] Production.INFO: count ==4134 [2025-03-14 13:05:21] Production.ERROR: pbx CDR StartTime 2025-03-14 10:05:06 - End Time 2025-03-14 13:05:06 [2025-03-14 13:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679029', 'tblTempUsageDetail_20' ) start [2025-03-14 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679029', 'tblTempUsageDetail_20' ) end [2025-03-14 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679029', 'tblTempVendorCDR_20' ) start [2025-03-14 13:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679029', 'tblTempVendorCDR_20' ) end [2025-03-14 13:05:21] Production.INFO: ProcessCDR(1,14679029,1,1,2) [2025-03-14 13:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679029', 'tblTempUsageDetail_20' ) start [2025-03-14 13:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679029', 'tblTempUsageDetail_20' ) end [2025-03-14 13:05:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 13:05:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 13:05:27] Production.INFO: ==14492== Releasing lock... [2025-03-14 13:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 13:05:27] Production.INFO: 59 MB #Memory Used# [2025-03-14 13:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 10:06:05 [end_date_ymd] => 2025-03-14 13:06:05 [RateCDR] => 1 ) [2025-03-14 13:06: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-03-14 10:06:05' and `end` < '2025-03-14 13:06: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-03-14 13:06:18] Production.INFO: count ==4114 [2025-03-14 13:06:20] Production.ERROR: pbx CDR StartTime 2025-03-14 10:06:05 - End Time 2025-03-14 13:06:05 [2025-03-14 13:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 13:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679034', 'tblTempUsageDetail_20' ) start [2025-03-14 13:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679034', 'tblTempUsageDetail_20' ) end [2025-03-14 13:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679034', 'tblTempVendorCDR_20' ) start [2025-03-14 13:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679034', 'tblTempVendorCDR_20' ) end [2025-03-14 13:06:20] Production.INFO: ProcessCDR(1,14679034,1,1,2) [2025-03-14 13:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679034', 'tblTempUsageDetail_20' ) start [2025-03-14 13:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679034', 'tblTempUsageDetail_20' ) end [2025-03-14 13:06:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 13:06:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 13:06:26] Production.INFO: ==14595== Releasing lock... [2025-03-14 13:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 13:06:26] Production.INFO: 58.75 MB #Memory Used# [2025-03-14 13:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 10:07:05 [end_date_ymd] => 2025-03-14 13:07:05 [RateCDR] => 1 ) [2025-03-14 13:07: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-03-14 10:07:05' and `end` < '2025-03-14 13:07: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-03-14 13:07:18] Production.INFO: count ==4100 [2025-03-14 13:07:20] Production.ERROR: pbx CDR StartTime 2025-03-14 10:07:05 - End Time 2025-03-14 13:07:05 [2025-03-14 13:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 13:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679039', 'tblTempUsageDetail_20' ) start [2025-03-14 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679039', 'tblTempUsageDetail_20' ) end [2025-03-14 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679039', 'tblTempVendorCDR_20' ) start [2025-03-14 13:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679039', 'tblTempVendorCDR_20' ) end [2025-03-14 13:07:21] Production.INFO: ProcessCDR(1,14679039,1,1,2) [2025-03-14 13:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679039', 'tblTempUsageDetail_20' ) start [2025-03-14 13:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679039', 'tblTempUsageDetail_20' ) end [2025-03-14 13:07:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 13:07:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 13:07:26] Production.INFO: ==14694== Releasing lock... [2025-03-14 13:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 13:07:26] Production.INFO: 58.75 MB #Memory Used# [2025-03-14 13:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 10:08:05 [end_date_ymd] => 2025-03-14 13:08:05 [RateCDR] => 1 ) [2025-03-14 13:08: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-03-14 10:08:05' and `end` < '2025-03-14 13:08: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-03-14 13:08:18] Production.INFO: count ==4100 [2025-03-14 13:08:20] Production.ERROR: pbx CDR StartTime 2025-03-14 10:08:05 - End Time 2025-03-14 13:08:05 [2025-03-14 13:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 13:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679044', 'tblTempUsageDetail_20' ) start [2025-03-14 13:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679044', 'tblTempUsageDetail_20' ) end [2025-03-14 13:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679044', 'tblTempVendorCDR_20' ) start [2025-03-14 13:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679044', 'tblTempVendorCDR_20' ) end [2025-03-14 13:08:20] Production.INFO: ProcessCDR(1,14679044,1,1,2) [2025-03-14 13:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679044', 'tblTempUsageDetail_20' ) start [2025-03-14 13:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679044', 'tblTempUsageDetail_20' ) end [2025-03-14 13:08:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 13:08:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 13:08:26] Production.INFO: ==14792== Releasing lock... [2025-03-14 13:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 13:08:26] Production.INFO: 58.75 MB #Memory Used# [2025-03-14 13:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 10:09:06 [end_date_ymd] => 2025-03-14 13:09:06 [RateCDR] => 1 ) [2025-03-14 13:09: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-03-14 10:09:06' and `end` < '2025-03-14 13:09: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-03-14 13:09:19] Production.INFO: count ==4112 [2025-03-14 13:09:21] Production.ERROR: pbx CDR StartTime 2025-03-14 10:09:06 - End Time 2025-03-14 13:09:06 [2025-03-14 13:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679049', 'tblTempUsageDetail_20' ) start [2025-03-14 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679049', 'tblTempUsageDetail_20' ) end [2025-03-14 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679049', 'tblTempVendorCDR_20' ) start [2025-03-14 13:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679049', 'tblTempVendorCDR_20' ) end [2025-03-14 13:09:21] Production.INFO: ProcessCDR(1,14679049,1,1,2) [2025-03-14 13:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679049', 'tblTempUsageDetail_20' ) start [2025-03-14 13:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679049', 'tblTempUsageDetail_20' ) end [2025-03-14 13:09:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 13:09:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 13:09:27] Production.INFO: ==14893== Releasing lock... [2025-03-14 13:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 13:09:27] Production.INFO: 58.75 MB #Memory Used# [2025-03-14 13:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 10:10:06 [end_date_ymd] => 2025-03-14 13:10:06 [RateCDR] => 1 ) [2025-03-14 13:10: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-03-14 10:10:06' and `end` < '2025-03-14 13:10: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-03-14 13:10:20] Production.INFO: count ==4123 [2025-03-14 13:10:22] Production.ERROR: pbx CDR StartTime 2025-03-14 10:10:06 - End Time 2025-03-14 13:10:06 [2025-03-14 13:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679055', 'tblTempUsageDetail_20' ) start [2025-03-14 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679055', 'tblTempUsageDetail_20' ) end [2025-03-14 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679055', 'tblTempVendorCDR_20' ) start [2025-03-14 13:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679055', 'tblTempVendorCDR_20' ) end [2025-03-14 13:10:22] Production.INFO: ProcessCDR(1,14679055,1,1,2) [2025-03-14 13:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679055,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679055,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679055', 'tblTempUsageDetail_20' ) start [2025-03-14 13:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679055', 'tblTempUsageDetail_20' ) end [2025-03-14 13:10:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 13:10:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 13:10:27] Production.INFO: ==15001== Releasing lock... [2025-03-14 13:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 13:10:27] Production.INFO: 59 MB #Memory Used# [2025-03-14 13:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 10:11:06 [end_date_ymd] => 2025-03-14 13:11:06 [RateCDR] => 1 ) [2025-03-14 13:11: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-03-14 10:11:06' and `end` < '2025-03-14 13:11: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-03-14 13:11:19] Production.INFO: count ==4203 [2025-03-14 13:11:21] Production.ERROR: pbx CDR StartTime 2025-03-14 10:11:06 - End Time 2025-03-14 13:11:06 [2025-03-14 13:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679060', 'tblTempUsageDetail_20' ) start [2025-03-14 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679060', 'tblTempUsageDetail_20' ) end [2025-03-14 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679060', 'tblTempVendorCDR_20' ) start [2025-03-14 13:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679060', 'tblTempVendorCDR_20' ) end [2025-03-14 13:11:21] Production.INFO: ProcessCDR(1,14679060,1,1,2) [2025-03-14 13:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679060,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679060,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679060', 'tblTempUsageDetail_20' ) start [2025-03-14 13:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679060', 'tblTempUsageDetail_20' ) end [2025-03-14 13:11:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 13:11:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 13:11:27] Production.INFO: ==15109== Releasing lock... [2025-03-14 13:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 13:11:27] Production.INFO: 59.5 MB #Memory Used# [2025-03-14 13:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 10:12:05 [end_date_ymd] => 2025-03-14 13:12:05 [RateCDR] => 1 ) [2025-03-14 13:12: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-03-14 10:12:05' and `end` < '2025-03-14 13:12: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-03-14 13:12:18] Production.INFO: count ==4192 [2025-03-14 13:12:20] Production.ERROR: pbx CDR StartTime 2025-03-14 10:12:05 - End Time 2025-03-14 13:12:05 [2025-03-14 13:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 13:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679065', 'tblTempUsageDetail_20' ) start [2025-03-14 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679065', 'tblTempUsageDetail_20' ) end [2025-03-14 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679065', 'tblTempVendorCDR_20' ) start [2025-03-14 13:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679065', 'tblTempVendorCDR_20' ) end [2025-03-14 13:12:21] Production.INFO: ProcessCDR(1,14679065,1,1,2) [2025-03-14 13:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679065,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679065,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679065', 'tblTempUsageDetail_20' ) start [2025-03-14 13:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679065', 'tblTempUsageDetail_20' ) end [2025-03-14 13:12:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 13:12:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 13:12:26] Production.INFO: ==15206== Releasing lock... [2025-03-14 13:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 13:12:26] Production.INFO: 59.5 MB #Memory Used# [2025-03-14 13:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 10:13:06 [end_date_ymd] => 2025-03-14 13:13:06 [RateCDR] => 1 ) [2025-03-14 13:13: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-03-14 10:13:06' and `end` < '2025-03-14 13:13: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-03-14 13:13:19] Production.INFO: count ==4194 [2025-03-14 13:13:21] Production.ERROR: pbx CDR StartTime 2025-03-14 10:13:06 - End Time 2025-03-14 13:13:06 [2025-03-14 13:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679070', 'tblTempUsageDetail_20' ) start [2025-03-14 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679070', 'tblTempUsageDetail_20' ) end [2025-03-14 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679070', 'tblTempVendorCDR_20' ) start [2025-03-14 13:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679070', 'tblTempVendorCDR_20' ) end [2025-03-14 13:13:21] Production.INFO: ProcessCDR(1,14679070,1,1,2) [2025-03-14 13:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679070,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679070,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679070', 'tblTempUsageDetail_20' ) start [2025-03-14 13:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679070', 'tblTempUsageDetail_20' ) end [2025-03-14 13:13:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 13:13:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 13:13:25] Production.INFO: ==15309== Releasing lock... [2025-03-14 13:13:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 13:13:25] Production.INFO: 59.5 MB #Memory Used# [2025-03-14 13:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 10:14:05 [end_date_ymd] => 2025-03-14 13:14:05 [RateCDR] => 1 ) [2025-03-14 13:14: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-03-14 10:14:05' and `end` < '2025-03-14 13:14: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-03-14 13:14:18] Production.INFO: count ==4168 [2025-03-14 13:14:20] Production.ERROR: pbx CDR StartTime 2025-03-14 10:14:05 - End Time 2025-03-14 13:14:05 [2025-03-14 13:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 13:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679075', 'tblTempUsageDetail_20' ) start [2025-03-14 13:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679075', 'tblTempUsageDetail_20' ) end [2025-03-14 13:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679075', 'tblTempVendorCDR_20' ) start [2025-03-14 13:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679075', 'tblTempVendorCDR_20' ) end [2025-03-14 13:14:20] Production.INFO: ProcessCDR(1,14679075,1,1,2) [2025-03-14 13:14:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:14:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:14:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679075', 'tblTempUsageDetail_20' ) start [2025-03-14 13:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679075', 'tblTempUsageDetail_20' ) end [2025-03-14 13:14:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 13:14:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 13:14:26] Production.INFO: ==15408== Releasing lock... [2025-03-14 13:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 13:14:26] Production.INFO: 59.25 MB #Memory Used# [2025-03-14 13:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 10:15:06 [end_date_ymd] => 2025-03-14 13:15:06 [RateCDR] => 1 ) [2025-03-14 13:15: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-03-14 10:15:06' and `end` < '2025-03-14 13:15: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-03-14 13:15:19] Production.INFO: count ==4140 [2025-03-14 13:15:21] Production.ERROR: pbx CDR StartTime 2025-03-14 10:15:06 - End Time 2025-03-14 13:15:06 [2025-03-14 13:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679080', 'tblTempUsageDetail_20' ) start [2025-03-14 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679080', 'tblTempUsageDetail_20' ) end [2025-03-14 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679080', 'tblTempVendorCDR_20' ) start [2025-03-14 13:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679080', 'tblTempVendorCDR_20' ) end [2025-03-14 13:15:21] Production.INFO: ProcessCDR(1,14679080,1,1,2) [2025-03-14 13:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679080', 'tblTempUsageDetail_20' ) start [2025-03-14 13:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679080', 'tblTempUsageDetail_20' ) end [2025-03-14 13:15:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 13:15:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 13:15:27] Production.INFO: ==15550== Releasing lock... [2025-03-14 13:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 13:15:27] Production.INFO: 59.25 MB #Memory Used# [2025-03-14 13:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 10:16:06 [end_date_ymd] => 2025-03-14 13:16:06 [RateCDR] => 1 ) [2025-03-14 13:16: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-03-14 10:16:06' and `end` < '2025-03-14 13:16: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-03-14 13:16:19] Production.INFO: count ==4122 [2025-03-14 13:16:21] Production.ERROR: pbx CDR StartTime 2025-03-14 10:16:06 - End Time 2025-03-14 13:16:06 [2025-03-14 13:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679085', 'tblTempUsageDetail_20' ) start [2025-03-14 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679085', 'tblTempUsageDetail_20' ) end [2025-03-14 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679085', 'tblTempVendorCDR_20' ) start [2025-03-14 13:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679085', 'tblTempVendorCDR_20' ) end [2025-03-14 13:16:21] Production.INFO: ProcessCDR(1,14679085,1,1,2) [2025-03-14 13:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679085', 'tblTempUsageDetail_20' ) start [2025-03-14 13:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679085', 'tblTempUsageDetail_20' ) end [2025-03-14 13:16:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 13:16:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 13:16:27] Production.INFO: ==15654== Releasing lock... [2025-03-14 13:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 13:16:27] Production.INFO: 59 MB #Memory Used# [2025-03-14 13:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 10:17:06 [end_date_ymd] => 2025-03-14 13:17:06 [RateCDR] => 1 ) [2025-03-14 13:17: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-03-14 10:17:06' and `end` < '2025-03-14 13:17: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-03-14 13:17:19] Production.INFO: count ==4102 [2025-03-14 13:17:21] Production.ERROR: pbx CDR StartTime 2025-03-14 10:17:06 - End Time 2025-03-14 13:17:06 [2025-03-14 13:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679090', 'tblTempUsageDetail_20' ) start [2025-03-14 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679090', 'tblTempUsageDetail_20' ) end [2025-03-14 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679090', 'tblTempVendorCDR_20' ) start [2025-03-14 13:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679090', 'tblTempVendorCDR_20' ) end [2025-03-14 13:17:21] Production.INFO: ProcessCDR(1,14679090,1,1,2) [2025-03-14 13:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679090', 'tblTempUsageDetail_20' ) start [2025-03-14 13:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679090', 'tblTempUsageDetail_20' ) end [2025-03-14 13:17:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 13:17:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 13:17:27] Production.INFO: ==15762== Releasing lock... [2025-03-14 13:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 13:17:27] Production.INFO: 58.75 MB #Memory Used# [2025-03-14 13:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 10:18:06 [end_date_ymd] => 2025-03-14 13:18:06 [RateCDR] => 1 ) [2025-03-14 13:18: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-03-14 10:18:06' and `end` < '2025-03-14 13:18: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-03-14 13:18:19] Production.INFO: count ==4101 [2025-03-14 13:18:21] Production.ERROR: pbx CDR StartTime 2025-03-14 10:18:06 - End Time 2025-03-14 13:18:06 [2025-03-14 13:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679095', 'tblTempUsageDetail_20' ) start [2025-03-14 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679095', 'tblTempUsageDetail_20' ) end [2025-03-14 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679095', 'tblTempVendorCDR_20' ) start [2025-03-14 13:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679095', 'tblTempVendorCDR_20' ) end [2025-03-14 13:18:21] Production.INFO: ProcessCDR(1,14679095,1,1,2) [2025-03-14 13:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679095', 'tblTempUsageDetail_20' ) start [2025-03-14 13:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679095', 'tblTempUsageDetail_20' ) end [2025-03-14 13:18:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 13:18:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 13:18:27] Production.INFO: ==15877== Releasing lock... [2025-03-14 13:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 13:18:27] Production.INFO: 58.75 MB #Memory Used# [2025-03-14 13:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 10:19:05 [end_date_ymd] => 2025-03-14 13:19:05 [RateCDR] => 1 ) [2025-03-14 13:19: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-03-14 10:19:05' and `end` < '2025-03-14 13:19: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-03-14 13:19:18] Production.INFO: count ==4084 [2025-03-14 13:19:20] Production.ERROR: pbx CDR StartTime 2025-03-14 10:19:05 - End Time 2025-03-14 13:19:05 [2025-03-14 13:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 13:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679100', 'tblTempUsageDetail_20' ) start [2025-03-14 13:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679100', 'tblTempUsageDetail_20' ) end [2025-03-14 13:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679100', 'tblTempVendorCDR_20' ) start [2025-03-14 13:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679100', 'tblTempVendorCDR_20' ) end [2025-03-14 13:19:20] Production.INFO: ProcessCDR(1,14679100,1,1,2) [2025-03-14 13:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679100', 'tblTempUsageDetail_20' ) start [2025-03-14 13:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679100', 'tblTempUsageDetail_20' ) end [2025-03-14 13:19:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 13:19:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 13:19:26] Production.INFO: ==15981== Releasing lock... [2025-03-14 13:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 13:19:26] Production.INFO: 58.5 MB #Memory Used# [2025-03-14 13:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 10:20:06 [end_date_ymd] => 2025-03-14 13:20:06 [RateCDR] => 1 ) [2025-03-14 13:20: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-03-14 10:20:06' and `end` < '2025-03-14 13:20: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-03-14 13:20:19] Production.INFO: count ==4060 [2025-03-14 13:20:21] Production.ERROR: pbx CDR StartTime 2025-03-14 10:20:06 - End Time 2025-03-14 13:20:06 [2025-03-14 13:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 13:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679105', 'tblTempUsageDetail_20' ) start [2025-03-14 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679105', 'tblTempUsageDetail_20' ) end [2025-03-14 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679105', 'tblTempVendorCDR_20' ) start [2025-03-14 13:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679105', 'tblTempVendorCDR_20' ) end [2025-03-14 13:20:22] Production.INFO: ProcessCDR(1,14679105,1,1,2) [2025-03-14 13:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:20:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679105', 'tblTempUsageDetail_20' ) start [2025-03-14 13:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679105', 'tblTempUsageDetail_20' ) end [2025-03-14 13:20:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 13:20:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 13:20:27] Production.INFO: ==16089== Releasing lock... [2025-03-14 13:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 13:20:27] Production.INFO: 58.25 MB #Memory Used# [2025-03-14 13:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 10:21:05 [end_date_ymd] => 2025-03-14 13:21:05 [RateCDR] => 1 ) [2025-03-14 13:21: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-03-14 10:21:05' and `end` < '2025-03-14 13:21: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-03-14 13:21:18] Production.INFO: count ==4115 [2025-03-14 13:21:20] Production.ERROR: pbx CDR StartTime 2025-03-14 10:21:05 - End Time 2025-03-14 13:21:05 [2025-03-14 13:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 13:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679111', 'tblTempUsageDetail_20' ) start [2025-03-14 13:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679111', 'tblTempUsageDetail_20' ) end [2025-03-14 13:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679111', 'tblTempVendorCDR_20' ) start [2025-03-14 13:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679111', 'tblTempVendorCDR_20' ) end [2025-03-14 13:21:20] Production.INFO: ProcessCDR(1,14679111,1,1,2) [2025-03-14 13:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679111,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679111,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679111', 'tblTempUsageDetail_20' ) start [2025-03-14 13:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679111', 'tblTempUsageDetail_20' ) end [2025-03-14 13:21:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 13:21:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 13:21:26] Production.INFO: ==16193== Releasing lock... [2025-03-14 13:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 13:21:26] Production.INFO: 58.75 MB #Memory Used# [2025-03-14 13:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 10:22:06 [end_date_ymd] => 2025-03-14 13:22:06 [RateCDR] => 1 ) [2025-03-14 13:22: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-03-14 10:22:06' and `end` < '2025-03-14 13:22: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-03-14 13:22:19] Production.INFO: count ==4110 [2025-03-14 13:22:21] Production.ERROR: pbx CDR StartTime 2025-03-14 10:22:06 - End Time 2025-03-14 13:22:06 [2025-03-14 13:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679116', 'tblTempUsageDetail_20' ) start [2025-03-14 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679116', 'tblTempUsageDetail_20' ) end [2025-03-14 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679116', 'tblTempVendorCDR_20' ) start [2025-03-14 13:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679116', 'tblTempVendorCDR_20' ) end [2025-03-14 13:22:21] Production.INFO: ProcessCDR(1,14679116,1,1,2) [2025-03-14 13:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679116,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679116,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679116', 'tblTempUsageDetail_20' ) start [2025-03-14 13:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679116', 'tblTempUsageDetail_20' ) end [2025-03-14 13:22:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 13:22:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 13:22:27] Production.INFO: ==16303== Releasing lock... [2025-03-14 13:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 13:22:27] Production.INFO: 58.75 MB #Memory Used# [2025-03-14 13:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 10:23:05 [end_date_ymd] => 2025-03-14 13:23:05 [RateCDR] => 1 ) [2025-03-14 13:23: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-03-14 10:23:05' and `end` < '2025-03-14 13:23: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-03-14 13:23:18] Production.INFO: count ==4089 [2025-03-14 13:23:20] Production.ERROR: pbx CDR StartTime 2025-03-14 10:23:05 - End Time 2025-03-14 13:23:05 [2025-03-14 13:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 13:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679121', 'tblTempUsageDetail_20' ) start [2025-03-14 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679121', 'tblTempUsageDetail_20' ) end [2025-03-14 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679121', 'tblTempVendorCDR_20' ) start [2025-03-14 13:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679121', 'tblTempVendorCDR_20' ) end [2025-03-14 13:23:21] Production.INFO: ProcessCDR(1,14679121,1,1,2) [2025-03-14 13:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679121,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679121,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679121', 'tblTempUsageDetail_20' ) start [2025-03-14 13:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679121', 'tblTempUsageDetail_20' ) end [2025-03-14 13:23:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 13:23:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 13:23:26] Production.INFO: ==16403== Releasing lock... [2025-03-14 13:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 13:23:26] Production.INFO: 58.5 MB #Memory Used# [2025-03-14 13:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 10:24:06 [end_date_ymd] => 2025-03-14 13:24:06 [RateCDR] => 1 ) [2025-03-14 13:24: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-03-14 10:24:06' and `end` < '2025-03-14 13:24: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-03-14 13:24:19] Production.INFO: count ==4060 [2025-03-14 13:24:20] Production.ERROR: pbx CDR StartTime 2025-03-14 10:24:06 - End Time 2025-03-14 13:24:06 [2025-03-14 13:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 13:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679126', 'tblTempUsageDetail_20' ) start [2025-03-14 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679126', 'tblTempUsageDetail_20' ) end [2025-03-14 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679126', 'tblTempVendorCDR_20' ) start [2025-03-14 13:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679126', 'tblTempVendorCDR_20' ) end [2025-03-14 13:24:21] Production.INFO: ProcessCDR(1,14679126,1,1,2) [2025-03-14 13:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679126', 'tblTempUsageDetail_20' ) start [2025-03-14 13:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679126', 'tblTempUsageDetail_20' ) end [2025-03-14 13:24:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 13:24:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 13:24:26] Production.INFO: ==16492== Releasing lock... [2025-03-14 13:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 13:24:26] Production.INFO: 58.25 MB #Memory Used# [2025-03-14 13:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 10:25:05 [end_date_ymd] => 2025-03-14 13:25:05 [RateCDR] => 1 ) [2025-03-14 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-03-14 10:25:05' and `end` < '2025-03-14 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-03-14 13:25:19] Production.INFO: count ==4052 [2025-03-14 13:25:20] Production.ERROR: pbx CDR StartTime 2025-03-14 10:25:05 - End Time 2025-03-14 13:25:05 [2025-03-14 13:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 13:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679131', 'tblTempUsageDetail_20' ) start [2025-03-14 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679131', 'tblTempUsageDetail_20' ) end [2025-03-14 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679131', 'tblTempVendorCDR_20' ) start [2025-03-14 13:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679131', 'tblTempVendorCDR_20' ) end [2025-03-14 13:25:21] Production.INFO: ProcessCDR(1,14679131,1,1,2) [2025-03-14 13:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679131', 'tblTempUsageDetail_20' ) start [2025-03-14 13:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679131', 'tblTempUsageDetail_20' ) end [2025-03-14 13:25:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 13:25:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 13:25:26] Production.INFO: ==16566== Releasing lock... [2025-03-14 13:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 13:25:26] Production.INFO: 58.25 MB #Memory Used# [2025-03-14 13:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 10:26:06 [end_date_ymd] => 2025-03-14 13:26:06 [RateCDR] => 1 ) [2025-03-14 13:26: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-03-14 10:26:06' and `end` < '2025-03-14 13:26: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-03-14 13:26:19] Production.INFO: count ==4049 [2025-03-14 13:26:21] Production.ERROR: pbx CDR StartTime 2025-03-14 10:26:06 - End Time 2025-03-14 13:26:06 [2025-03-14 13:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679136', 'tblTempUsageDetail_20' ) start [2025-03-14 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679136', 'tblTempUsageDetail_20' ) end [2025-03-14 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679136', 'tblTempVendorCDR_20' ) start [2025-03-14 13:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679136', 'tblTempVendorCDR_20' ) end [2025-03-14 13:26:21] Production.INFO: ProcessCDR(1,14679136,1,1,2) [2025-03-14 13:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:26:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:26:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:26:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679136', 'tblTempUsageDetail_20' ) start [2025-03-14 13:26:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679136', 'tblTempUsageDetail_20' ) end [2025-03-14 13:26:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 13:26:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 13:26:25] Production.INFO: ==16644== Releasing lock... [2025-03-14 13:26:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 13:26:25] Production.INFO: 58.5 MB #Memory Used# [2025-03-14 13:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 10:27:05 [end_date_ymd] => 2025-03-14 13:27:05 [RateCDR] => 1 ) [2025-03-14 13:27: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-03-14 10:27:05' and `end` < '2025-03-14 13:27: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-03-14 13:27:18] Production.INFO: count ==4020 [2025-03-14 13:27:20] Production.ERROR: pbx CDR StartTime 2025-03-14 10:27:05 - End Time 2025-03-14 13:27:05 [2025-03-14 13:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 13:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679141', 'tblTempUsageDetail_20' ) start [2025-03-14 13:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679141', 'tblTempUsageDetail_20' ) end [2025-03-14 13:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679141', 'tblTempVendorCDR_20' ) start [2025-03-14 13:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679141', 'tblTempVendorCDR_20' ) end [2025-03-14 13:27:20] Production.INFO: ProcessCDR(1,14679141,1,1,2) [2025-03-14 13:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679141', 'tblTempUsageDetail_20' ) start [2025-03-14 13:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679141', 'tblTempUsageDetail_20' ) end [2025-03-14 13:27:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 13:27:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 13:27:25] Production.INFO: ==16717== Releasing lock... [2025-03-14 13:27:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 13:27:25] Production.INFO: 58 MB #Memory Used# [2025-03-14 13:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 10:28:06 [end_date_ymd] => 2025-03-14 13:28:06 [RateCDR] => 1 ) [2025-03-14 13:28: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-03-14 10:28:06' and `end` < '2025-03-14 13:28: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-03-14 13:28:19] Production.INFO: count ==4019 [2025-03-14 13:28:20] Production.ERROR: pbx CDR StartTime 2025-03-14 10:28:06 - End Time 2025-03-14 13:28:06 [2025-03-14 13:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 13:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679146', 'tblTempUsageDetail_20' ) start [2025-03-14 13:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679146', 'tblTempUsageDetail_20' ) end [2025-03-14 13:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679146', 'tblTempVendorCDR_20' ) start [2025-03-14 13:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679146', 'tblTempVendorCDR_20' ) end [2025-03-14 13:28:20] Production.INFO: ProcessCDR(1,14679146,1,1,2) [2025-03-14 13:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679146', 'tblTempUsageDetail_20' ) start [2025-03-14 13:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679146', 'tblTempUsageDetail_20' ) end [2025-03-14 13:28:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 13:28:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 13:28:25] Production.INFO: ==16793== Releasing lock... [2025-03-14 13:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 13:28:25] Production.INFO: 58 MB #Memory Used# [2025-03-14 13:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 10:29:05 [end_date_ymd] => 2025-03-14 13:29:05 [RateCDR] => 1 ) [2025-03-14 13:29: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-03-14 10:29:05' and `end` < '2025-03-14 13:29: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-03-14 13:29:18] Production.INFO: count ==4024 [2025-03-14 13:29:20] Production.ERROR: pbx CDR StartTime 2025-03-14 10:29:05 - End Time 2025-03-14 13:29:05 [2025-03-14 13:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 13:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679151', 'tblTempUsageDetail_20' ) start [2025-03-14 13:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679151', 'tblTempUsageDetail_20' ) end [2025-03-14 13:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679151', 'tblTempVendorCDR_20' ) start [2025-03-14 13:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679151', 'tblTempVendorCDR_20' ) end [2025-03-14 13:29:20] Production.INFO: ProcessCDR(1,14679151,1,1,2) [2025-03-14 13:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679151', 'tblTempUsageDetail_20' ) start [2025-03-14 13:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679151', 'tblTempUsageDetail_20' ) end [2025-03-14 13:29:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 13:29:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 13:29:25] Production.INFO: ==16867== Releasing lock... [2025-03-14 13:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 13:29:25] Production.INFO: 58 MB #Memory Used# [2025-03-14 13:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 10:30:05 [end_date_ymd] => 2025-03-14 13:30:05 [RateCDR] => 1 ) [2025-03-14 13:30: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-03-14 10:30:05' and `end` < '2025-03-14 13:30: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-03-14 13:30:18] Production.INFO: count ==4029 [2025-03-14 13:30:20] Production.ERROR: pbx CDR StartTime 2025-03-14 10:30:05 - End Time 2025-03-14 13:30:05 [2025-03-14 13:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 13:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679157', 'tblTempUsageDetail_20' ) start [2025-03-14 13:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679157', 'tblTempUsageDetail_20' ) end [2025-03-14 13:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679157', 'tblTempVendorCDR_20' ) start [2025-03-14 13:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679157', 'tblTempVendorCDR_20' ) end [2025-03-14 13:30:20] Production.INFO: ProcessCDR(1,14679157,1,1,2) [2025-03-14 13:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679157,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679157,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679157', 'tblTempUsageDetail_20' ) start [2025-03-14 13:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679157', 'tblTempUsageDetail_20' ) end [2025-03-14 13:30:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 13:30:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 13:30:26] Production.INFO: ==16945== Releasing lock... [2025-03-14 13:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 13:30:26] Production.INFO: 58.25 MB #Memory Used# [2025-03-14 13:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 10:31:05 [end_date_ymd] => 2025-03-14 13:31:05 [RateCDR] => 1 ) [2025-03-14 13:31: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-03-14 10:31:05' and `end` < '2025-03-14 13:31: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-03-14 13:31:19] Production.INFO: count ==4143 [2025-03-14 13:31:20] Production.ERROR: pbx CDR StartTime 2025-03-14 10:31:05 - End Time 2025-03-14 13:31:05 [2025-03-14 13:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 13:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679162', 'tblTempUsageDetail_20' ) start [2025-03-14 13:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679162', 'tblTempUsageDetail_20' ) end [2025-03-14 13:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679162', 'tblTempVendorCDR_20' ) start [2025-03-14 13:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679162', 'tblTempVendorCDR_20' ) end [2025-03-14 13:31:20] Production.INFO: ProcessCDR(1,14679162,1,1,2) [2025-03-14 13:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679162,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:31:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679162,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:31:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679162', 'tblTempUsageDetail_20' ) start [2025-03-14 13:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679162', 'tblTempUsageDetail_20' ) end [2025-03-14 13:31:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 13:31:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 13:31:26] Production.INFO: ==17058== Releasing lock... [2025-03-14 13:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 13:31:26] Production.INFO: 59 MB #Memory Used# [2025-03-14 13:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 10:32:05 [end_date_ymd] => 2025-03-14 13:32:05 [RateCDR] => 1 ) [2025-03-14 13:32: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-03-14 10:32:05' and `end` < '2025-03-14 13:32: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-03-14 13:32:19] Production.INFO: count ==4139 [2025-03-14 13:32:20] Production.ERROR: pbx CDR StartTime 2025-03-14 10:32:05 - End Time 2025-03-14 13:32:05 [2025-03-14 13:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 13:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679167', 'tblTempUsageDetail_20' ) start [2025-03-14 13:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679167', 'tblTempUsageDetail_20' ) end [2025-03-14 13:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679167', 'tblTempVendorCDR_20' ) start [2025-03-14 13:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679167', 'tblTempVendorCDR_20' ) end [2025-03-14 13:32:20] Production.INFO: ProcessCDR(1,14679167,1,1,2) [2025-03-14 13:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679167,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:32:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679167,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679167', 'tblTempUsageDetail_20' ) start [2025-03-14 13:32:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679167', 'tblTempUsageDetail_20' ) end [2025-03-14 13:32:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 13:32:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 13:32:26] Production.INFO: ==17134== Releasing lock... [2025-03-14 13:32:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 13:32:26] Production.INFO: 59.25 MB #Memory Used# [2025-03-14 13:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 10:33:05 [end_date_ymd] => 2025-03-14 13:33:05 [RateCDR] => 1 ) [2025-03-14 13:33: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-03-14 10:33:05' and `end` < '2025-03-14 13:33: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-03-14 13:33:18] Production.INFO: count ==4148 [2025-03-14 13:33:20] Production.ERROR: pbx CDR StartTime 2025-03-14 10:33:05 - End Time 2025-03-14 13:33:05 [2025-03-14 13:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 13:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679172', 'tblTempUsageDetail_20' ) start [2025-03-14 13:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679172', 'tblTempUsageDetail_20' ) end [2025-03-14 13:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679172', 'tblTempVendorCDR_20' ) start [2025-03-14 13:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679172', 'tblTempVendorCDR_20' ) end [2025-03-14 13:33:20] Production.INFO: ProcessCDR(1,14679172,1,1,2) [2025-03-14 13:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:33:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679172,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:33:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:33:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679172,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679172', 'tblTempUsageDetail_20' ) start [2025-03-14 13:33:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679172', 'tblTempUsageDetail_20' ) end [2025-03-14 13:33:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 13:33:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 13:33:25] Production.INFO: ==17208== Releasing lock... [2025-03-14 13:33:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 13:33:25] Production.INFO: 59 MB #Memory Used# [2025-03-14 13:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 10:34:06 [end_date_ymd] => 2025-03-14 13:34:06 [RateCDR] => 1 ) [2025-03-14 13:34: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-03-14 10:34:06' and `end` < '2025-03-14 13:34: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-03-14 13:34:19] Production.INFO: count ==4159 [2025-03-14 13:34:20] Production.ERROR: pbx CDR StartTime 2025-03-14 10:34:06 - End Time 2025-03-14 13:34:06 [2025-03-14 13:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 13:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679177', 'tblTempUsageDetail_20' ) start [2025-03-14 13:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679177', 'tblTempUsageDetail_20' ) end [2025-03-14 13:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679177', 'tblTempVendorCDR_20' ) start [2025-03-14 13:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679177', 'tblTempVendorCDR_20' ) end [2025-03-14 13:34:20] Production.INFO: ProcessCDR(1,14679177,1,1,2) [2025-03-14 13:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679177,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679177,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679177', 'tblTempUsageDetail_20' ) start [2025-03-14 13:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679177', 'tblTempUsageDetail_20' ) end [2025-03-14 13:34:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 13:34:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 13:34:25] Production.INFO: ==17283== Releasing lock... [2025-03-14 13:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 13:34:25] Production.INFO: 59.25 MB #Memory Used# [2025-03-14 13:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 10:35:06 [end_date_ymd] => 2025-03-14 13:35:06 [RateCDR] => 1 ) [2025-03-14 13:35: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-03-14 10:35:06' and `end` < '2025-03-14 13:35: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-03-14 13:35:19] Production.INFO: count ==4171 [2025-03-14 13:35:21] Production.ERROR: pbx CDR StartTime 2025-03-14 10:35:06 - End Time 2025-03-14 13:35:06 [2025-03-14 13:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 13:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679182', 'tblTempUsageDetail_20' ) start [2025-03-14 13:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679182', 'tblTempUsageDetail_20' ) end [2025-03-14 13:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679182', 'tblTempVendorCDR_20' ) start [2025-03-14 13:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679182', 'tblTempVendorCDR_20' ) end [2025-03-14 13:35:21] Production.INFO: ProcessCDR(1,14679182,1,1,2) [2025-03-14 13:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:35:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679182', 'tblTempUsageDetail_20' ) start [2025-03-14 13:35:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679182', 'tblTempUsageDetail_20' ) end [2025-03-14 13:35:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 13:35:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 13:35:27] Production.INFO: ==17359== Releasing lock... [2025-03-14 13:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 13:35:27] Production.INFO: 59.25 MB #Memory Used# [2025-03-14 13:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 10:36:06 [end_date_ymd] => 2025-03-14 13:36:06 [RateCDR] => 1 ) [2025-03-14 13:36: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-03-14 10:36:06' and `end` < '2025-03-14 13:36: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-03-14 13:36:18] Production.INFO: count ==4174 [2025-03-14 13:36:20] Production.ERROR: pbx CDR StartTime 2025-03-14 10:36:06 - End Time 2025-03-14 13:36:06 [2025-03-14 13:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 13:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679187', 'tblTempUsageDetail_20' ) start [2025-03-14 13:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679187', 'tblTempUsageDetail_20' ) end [2025-03-14 13:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679187', 'tblTempVendorCDR_20' ) start [2025-03-14 13:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679187', 'tblTempVendorCDR_20' ) end [2025-03-14 13:36:20] Production.INFO: ProcessCDR(1,14679187,1,1,2) [2025-03-14 13:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679187', 'tblTempUsageDetail_20' ) start [2025-03-14 13:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679187', 'tblTempUsageDetail_20' ) end [2025-03-14 13:36:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 13:36:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 13:36:26] Production.INFO: ==17431== Releasing lock... [2025-03-14 13:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 13:36:26] Production.INFO: 59.25 MB #Memory Used# [2025-03-14 13:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 10:37:05 [end_date_ymd] => 2025-03-14 13:37:05 [RateCDR] => 1 ) [2025-03-14 13:37: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-03-14 10:37:05' and `end` < '2025-03-14 13:37: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-03-14 13:37:18] Production.INFO: count ==4183 [2025-03-14 13:37:20] Production.ERROR: pbx CDR StartTime 2025-03-14 10:37:05 - End Time 2025-03-14 13:37:05 [2025-03-14 13:37:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 13:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679192', 'tblTempUsageDetail_20' ) start [2025-03-14 13:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679192', 'tblTempUsageDetail_20' ) end [2025-03-14 13:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679192', 'tblTempVendorCDR_20' ) start [2025-03-14 13:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679192', 'tblTempVendorCDR_20' ) end [2025-03-14 13:37:20] Production.INFO: ProcessCDR(1,14679192,1,1,2) [2025-03-14 13:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:37:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679192', 'tblTempUsageDetail_20' ) start [2025-03-14 13:37:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679192', 'tblTempUsageDetail_20' ) end [2025-03-14 13:37:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 13:37:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 13:37:25] Production.INFO: ==17505== Releasing lock... [2025-03-14 13:37:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 13:37:25] Production.INFO: 59.25 MB #Memory Used# [2025-03-14 13:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 10:38:05 [end_date_ymd] => 2025-03-14 13:38:05 [RateCDR] => 1 ) [2025-03-14 13:38: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-03-14 10:38:05' and `end` < '2025-03-14 13:38: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-03-14 13:38:18] Production.INFO: count ==4185 [2025-03-14 13:38:20] Production.ERROR: pbx CDR StartTime 2025-03-14 10:38:05 - End Time 2025-03-14 13:38:05 [2025-03-14 13:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 13:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679197', 'tblTempUsageDetail_20' ) start [2025-03-14 13:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679197', 'tblTempUsageDetail_20' ) end [2025-03-14 13:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679197', 'tblTempVendorCDR_20' ) start [2025-03-14 13:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679197', 'tblTempVendorCDR_20' ) end [2025-03-14 13:38:20] Production.INFO: ProcessCDR(1,14679197,1,1,2) [2025-03-14 13:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679197', 'tblTempUsageDetail_20' ) start [2025-03-14 13:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679197', 'tblTempUsageDetail_20' ) end [2025-03-14 13:38:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 13:38:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 13:38:25] Production.INFO: ==17581== Releasing lock... [2025-03-14 13:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 13:38:25] Production.INFO: 59.25 MB #Memory Used# [2025-03-14 13:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 10:39:05 [end_date_ymd] => 2025-03-14 13:39:05 [RateCDR] => 1 ) [2025-03-14 13:39: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-03-14 10:39:05' and `end` < '2025-03-14 13:39: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-03-14 13:39:18] Production.INFO: count ==4184 [2025-03-14 13:39:19] Production.ERROR: pbx CDR StartTime 2025-03-14 10:39:05 - End Time 2025-03-14 13:39:05 [2025-03-14 13:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 13:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679202', 'tblTempUsageDetail_20' ) start [2025-03-14 13:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679202', 'tblTempUsageDetail_20' ) end [2025-03-14 13:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679202', 'tblTempVendorCDR_20' ) start [2025-03-14 13:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679202', 'tblTempVendorCDR_20' ) end [2025-03-14 13:39:20] Production.INFO: ProcessCDR(1,14679202,1,1,2) [2025-03-14 13:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679202', 'tblTempUsageDetail_20' ) start [2025-03-14 13:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679202', 'tblTempUsageDetail_20' ) end [2025-03-14 13:39:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 13:39:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 13:39:25] Production.INFO: ==17656== Releasing lock... [2025-03-14 13:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 13:39:25] Production.INFO: 59.25 MB #Memory Used# [2025-03-14 13:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 10:40:06 [end_date_ymd] => 2025-03-14 13:40:06 [RateCDR] => 1 ) [2025-03-14 13:40: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-03-14 10:40:06' and `end` < '2025-03-14 13:40: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-03-14 13:40:19] Production.INFO: count ==4211 [2025-03-14 13:40:21] Production.ERROR: pbx CDR StartTime 2025-03-14 10:40:06 - End Time 2025-03-14 13:40:06 [2025-03-14 13:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 13:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679208', 'tblTempUsageDetail_20' ) start [2025-03-14 13:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679208', 'tblTempUsageDetail_20' ) end [2025-03-14 13:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679208', 'tblTempVendorCDR_20' ) start [2025-03-14 13:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679208', 'tblTempVendorCDR_20' ) end [2025-03-14 13:40:21] Production.INFO: ProcessCDR(1,14679208,1,1,2) [2025-03-14 13:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679208,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679208,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679208', 'tblTempUsageDetail_20' ) start [2025-03-14 13:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679208', 'tblTempUsageDetail_20' ) end [2025-03-14 13:40:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 13:40:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 13:40:26] Production.INFO: ==17732== Releasing lock... [2025-03-14 13:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 13:40:26] Production.INFO: 59.5 MB #Memory Used# [2025-03-14 13:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 10:41:06 [end_date_ymd] => 2025-03-14 13:41:06 [RateCDR] => 1 ) [2025-03-14 13:41: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-03-14 10:41:06' and `end` < '2025-03-14 13:41: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-03-14 13:41:19] Production.INFO: count ==4338 [2025-03-14 13:41:21] Production.ERROR: pbx CDR StartTime 2025-03-14 10:41:06 - End Time 2025-03-14 13:41:06 [2025-03-14 13:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679213', 'tblTempUsageDetail_20' ) start [2025-03-14 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679213', 'tblTempUsageDetail_20' ) end [2025-03-14 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679213', 'tblTempVendorCDR_20' ) start [2025-03-14 13:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679213', 'tblTempVendorCDR_20' ) end [2025-03-14 13:41:21] Production.INFO: ProcessCDR(1,14679213,1,1,2) [2025-03-14 13:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679213,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679213,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679213', 'tblTempUsageDetail_20' ) start [2025-03-14 13:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679213', 'tblTempUsageDetail_20' ) end [2025-03-14 13:41:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 13:41:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 13:41:26] Production.INFO: ==17810== Releasing lock... [2025-03-14 13:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 13:41:26] Production.INFO: 60.5 MB #Memory Used# [2025-03-14 13:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 10:42:06 [end_date_ymd] => 2025-03-14 13:42:06 [RateCDR] => 1 ) [2025-03-14 13:42: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-03-14 10:42:06' and `end` < '2025-03-14 13:42: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-03-14 13:42:19] Production.INFO: count ==4347 [2025-03-14 13:42:20] Production.ERROR: pbx CDR StartTime 2025-03-14 10:42:06 - End Time 2025-03-14 13:42:06 [2025-03-14 13:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 13:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679218', 'tblTempUsageDetail_20' ) start [2025-03-14 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679218', 'tblTempUsageDetail_20' ) end [2025-03-14 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679218', 'tblTempVendorCDR_20' ) start [2025-03-14 13:42:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679218', 'tblTempVendorCDR_20' ) end [2025-03-14 13:42:21] Production.INFO: ProcessCDR(1,14679218,1,1,2) [2025-03-14 13:42:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:42:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679218,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:42:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:42:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679218,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679218', 'tblTempUsageDetail_20' ) start [2025-03-14 13:42:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679218', 'tblTempUsageDetail_20' ) end [2025-03-14 13:42:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 13:42:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 13:42:26] Production.INFO: ==17892== Releasing lock... [2025-03-14 13:42:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 13:42:26] Production.INFO: 60.5 MB #Memory Used# [2025-03-14 13:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 10:43:05 [end_date_ymd] => 2025-03-14 13:43:05 [RateCDR] => 1 ) [2025-03-14 13:43: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-03-14 10:43:05' and `end` < '2025-03-14 13:43: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-03-14 13:43:18] Production.INFO: count ==4361 [2025-03-14 13:43:20] Production.ERROR: pbx CDR StartTime 2025-03-14 10:43:05 - End Time 2025-03-14 13:43:05 [2025-03-14 13:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 13:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679223', 'tblTempUsageDetail_20' ) start [2025-03-14 13:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679223', 'tblTempUsageDetail_20' ) end [2025-03-14 13:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679223', 'tblTempVendorCDR_20' ) start [2025-03-14 13:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679223', 'tblTempVendorCDR_20' ) end [2025-03-14 13:43:20] Production.INFO: ProcessCDR(1,14679223,1,1,2) [2025-03-14 13:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679223,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679223,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679223', 'tblTempUsageDetail_20' ) start [2025-03-14 13:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679223', 'tblTempUsageDetail_20' ) end [2025-03-14 13:43:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 13:43:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 13:43:25] Production.INFO: ==17969== Releasing lock... [2025-03-14 13:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 13:43:25] Production.INFO: 60.75 MB #Memory Used# [2025-03-14 13:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 10:44:06 [end_date_ymd] => 2025-03-14 13:44:06 [RateCDR] => 1 ) [2025-03-14 13:44: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-03-14 10:44:06' and `end` < '2025-03-14 13:44: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-03-14 13:44:19] Production.INFO: count ==4361 [2025-03-14 13:44:21] Production.ERROR: pbx CDR StartTime 2025-03-14 10:44:06 - End Time 2025-03-14 13:44:06 [2025-03-14 13:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679228', 'tblTempUsageDetail_20' ) start [2025-03-14 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679228', 'tblTempUsageDetail_20' ) end [2025-03-14 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679228', 'tblTempVendorCDR_20' ) start [2025-03-14 13:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679228', 'tblTempVendorCDR_20' ) end [2025-03-14 13:44:21] Production.INFO: ProcessCDR(1,14679228,1,1,2) [2025-03-14 13:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:44:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679228', 'tblTempUsageDetail_20' ) start [2025-03-14 13:44:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679228', 'tblTempUsageDetail_20' ) end [2025-03-14 13:44:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 13:44:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 13:44:26] Production.INFO: ==18043== Releasing lock... [2025-03-14 13:44:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 13:44:26] Production.INFO: 60.75 MB #Memory Used# [2025-03-14 13:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 10:45:05 [end_date_ymd] => 2025-03-14 13:45:05 [RateCDR] => 1 ) [2025-03-14 13:45: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-03-14 10:45:05' and `end` < '2025-03-14 13:45: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-03-14 13:45:18] Production.INFO: count ==4371 [2025-03-14 13:45:20] Production.ERROR: pbx CDR StartTime 2025-03-14 10:45:05 - End Time 2025-03-14 13:45:05 [2025-03-14 13:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 13:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679233', 'tblTempUsageDetail_20' ) start [2025-03-14 13:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679233', 'tblTempUsageDetail_20' ) end [2025-03-14 13:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679233', 'tblTempVendorCDR_20' ) start [2025-03-14 13:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679233', 'tblTempVendorCDR_20' ) end [2025-03-14 13:45:20] Production.INFO: ProcessCDR(1,14679233,1,1,2) [2025-03-14 13:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679233', 'tblTempUsageDetail_20' ) start [2025-03-14 13:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679233', 'tblTempUsageDetail_20' ) end [2025-03-14 13:45:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 13:45:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 13:45:25] Production.INFO: ==18121== Releasing lock... [2025-03-14 13:45:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 13:45:25] Production.INFO: 60.75 MB #Memory Used# [2025-03-14 13:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 10:46:05 [end_date_ymd] => 2025-03-14 13:46:05 [RateCDR] => 1 ) [2025-03-14 13:46: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-03-14 10:46:05' and `end` < '2025-03-14 13:46: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-03-14 13:46:19] Production.INFO: count ==4359 [2025-03-14 13:46:20] Production.ERROR: pbx CDR StartTime 2025-03-14 10:46:05 - End Time 2025-03-14 13:46:05 [2025-03-14 13:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 13:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679238', 'tblTempUsageDetail_20' ) start [2025-03-14 13:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679238', 'tblTempUsageDetail_20' ) end [2025-03-14 13:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679238', 'tblTempVendorCDR_20' ) start [2025-03-14 13:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679238', 'tblTempVendorCDR_20' ) end [2025-03-14 13:46:20] Production.INFO: ProcessCDR(1,14679238,1,1,2) [2025-03-14 13:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679238', 'tblTempUsageDetail_20' ) start [2025-03-14 13:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679238', 'tblTempUsageDetail_20' ) end [2025-03-14 13:46:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 13:46:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 13:46:25] Production.INFO: ==18239== Releasing lock... [2025-03-14 13:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 13:46:25] Production.INFO: 60.75 MB #Memory Used# [2025-03-14 13:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 10:47:05 [end_date_ymd] => 2025-03-14 13:47:05 [RateCDR] => 1 ) [2025-03-14 13:47: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-03-14 10:47:05' and `end` < '2025-03-14 13:47: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-03-14 13:47:18] Production.INFO: count ==4359 [2025-03-14 13:47:20] Production.ERROR: pbx CDR StartTime 2025-03-14 10:47:05 - End Time 2025-03-14 13:47:05 [2025-03-14 13:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 13:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679243', 'tblTempUsageDetail_20' ) start [2025-03-14 13:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679243', 'tblTempUsageDetail_20' ) end [2025-03-14 13:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679243', 'tblTempVendorCDR_20' ) start [2025-03-14 13:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679243', 'tblTempVendorCDR_20' ) end [2025-03-14 13:47:20] Production.INFO: ProcessCDR(1,14679243,1,1,2) [2025-03-14 13:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:47:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:47:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679243', 'tblTempUsageDetail_20' ) start [2025-03-14 13:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679243', 'tblTempUsageDetail_20' ) end [2025-03-14 13:47:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 13:47:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 13:47:25] Production.INFO: ==18316== Releasing lock... [2025-03-14 13:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 13:47:25] Production.INFO: 60.75 MB #Memory Used# [2025-03-14 13:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 10:48:06 [end_date_ymd] => 2025-03-14 13:48:06 [RateCDR] => 1 ) [2025-03-14 13:48: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-03-14 10:48:06' and `end` < '2025-03-14 13:48: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-03-14 13:48:19] Production.INFO: count ==4359 [2025-03-14 13:48:20] Production.ERROR: pbx CDR StartTime 2025-03-14 10:48:06 - End Time 2025-03-14 13:48:06 [2025-03-14 13:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 13:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679248', 'tblTempUsageDetail_20' ) start [2025-03-14 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679248', 'tblTempUsageDetail_20' ) end [2025-03-14 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679248', 'tblTempVendorCDR_20' ) start [2025-03-14 13:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679248', 'tblTempVendorCDR_20' ) end [2025-03-14 13:48:21] Production.INFO: ProcessCDR(1,14679248,1,1,2) [2025-03-14 13:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:48:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679248', 'tblTempUsageDetail_20' ) start [2025-03-14 13:48:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679248', 'tblTempUsageDetail_20' ) end [2025-03-14 13:48:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 13:48:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 13:48:26] Production.INFO: ==18390== Releasing lock... [2025-03-14 13:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 13:48:26] Production.INFO: 60.75 MB #Memory Used# [2025-03-14 13:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 10:49:05 [end_date_ymd] => 2025-03-14 13:49:05 [RateCDR] => 1 ) [2025-03-14 13:49: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-03-14 10:49:05' and `end` < '2025-03-14 13:49: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-03-14 13:49:18] Production.INFO: count ==4337 [2025-03-14 13:49:20] Production.ERROR: pbx CDR StartTime 2025-03-14 10:49:05 - End Time 2025-03-14 13:49:05 [2025-03-14 13:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 13:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679253', 'tblTempUsageDetail_20' ) start [2025-03-14 13:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679253', 'tblTempUsageDetail_20' ) end [2025-03-14 13:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679253', 'tblTempVendorCDR_20' ) start [2025-03-14 13:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679253', 'tblTempVendorCDR_20' ) end [2025-03-14 13:49:20] Production.INFO: ProcessCDR(1,14679253,1,1,2) [2025-03-14 13:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679253', 'tblTempUsageDetail_20' ) start [2025-03-14 13:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679253', 'tblTempUsageDetail_20' ) end [2025-03-14 13:49:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 13:49:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 13:49:25] Production.INFO: ==18467== Releasing lock... [2025-03-14 13:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 13:49:25] Production.INFO: 60.75 MB #Memory Used# [2025-03-14 13:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 10:50:06 [end_date_ymd] => 2025-03-14 13:50:06 [RateCDR] => 1 ) [2025-03-14 13:50: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-03-14 10:50:06' and `end` < '2025-03-14 13:50: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-03-14 13:50:19] Production.INFO: count ==4348 [2025-03-14 13:50:21] Production.ERROR: pbx CDR StartTime 2025-03-14 10:50:06 - End Time 2025-03-14 13:50:06 [2025-03-14 13:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 13:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679259', 'tblTempUsageDetail_20' ) start [2025-03-14 13:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679259', 'tblTempUsageDetail_20' ) end [2025-03-14 13:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679259', 'tblTempVendorCDR_20' ) start [2025-03-14 13:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679259', 'tblTempVendorCDR_20' ) end [2025-03-14 13:50:21] Production.INFO: ProcessCDR(1,14679259,1,1,2) [2025-03-14 13:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679259,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679259,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679259', 'tblTempUsageDetail_20' ) start [2025-03-14 13:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679259', 'tblTempUsageDetail_20' ) end [2025-03-14 13:50:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 13:50:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 13:50:26] Production.INFO: ==18545== Releasing lock... [2025-03-14 13:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 13:50:26] Production.INFO: 60.5 MB #Memory Used# [2025-03-14 13:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 10:51:05 [end_date_ymd] => 2025-03-14 13:51:05 [RateCDR] => 1 ) [2025-03-14 13:51: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-03-14 10:51:05' and `end` < '2025-03-14 13:51: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-03-14 13:51:18] Production.INFO: count ==4466 [2025-03-14 13:51:20] Production.ERROR: pbx CDR StartTime 2025-03-14 10:51:05 - End Time 2025-03-14 13:51:05 [2025-03-14 13:51:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 13:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679264', 'tblTempUsageDetail_20' ) start [2025-03-14 13:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679264', 'tblTempUsageDetail_20' ) end [2025-03-14 13:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679264', 'tblTempVendorCDR_20' ) start [2025-03-14 13:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679264', 'tblTempVendorCDR_20' ) end [2025-03-14 13:51:20] Production.INFO: ProcessCDR(1,14679264,1,1,2) [2025-03-14 13:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679264,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:51:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679264,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679264', 'tblTempUsageDetail_20' ) start [2025-03-14 13:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679264', 'tblTempUsageDetail_20' ) end [2025-03-14 13:51:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 13:51:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 13:51:25] Production.INFO: ==18621== Releasing lock... [2025-03-14 13:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 13:51:25] Production.INFO: 61.5 MB #Memory Used# [2025-03-14 13:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 10:52:05 [end_date_ymd] => 2025-03-14 13:52:05 [RateCDR] => 1 ) [2025-03-14 13:52: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-03-14 10:52:05' and `end` < '2025-03-14 13:52: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-03-14 13:52:18] Production.INFO: count ==4450 [2025-03-14 13:52:20] Production.ERROR: pbx CDR StartTime 2025-03-14 10:52:05 - End Time 2025-03-14 13:52:05 [2025-03-14 13:52:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 13:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679269', 'tblTempUsageDetail_20' ) start [2025-03-14 13:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679269', 'tblTempUsageDetail_20' ) end [2025-03-14 13:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679269', 'tblTempVendorCDR_20' ) start [2025-03-14 13:52:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679269', 'tblTempVendorCDR_20' ) end [2025-03-14 13:52:20] Production.INFO: ProcessCDR(1,14679269,1,1,2) [2025-03-14 13:52:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:52:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679269,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:52:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:52:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679269,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679269', 'tblTempUsageDetail_20' ) start [2025-03-14 13:52:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679269', 'tblTempUsageDetail_20' ) end [2025-03-14 13:52:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 13:52:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 13:52:25] Production.INFO: ==18695== Releasing lock... [2025-03-14 13:52:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 13:52:25] Production.INFO: 61.25 MB #Memory Used# [2025-03-14 13:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 10:53:05 [end_date_ymd] => 2025-03-14 13:53:05 [RateCDR] => 1 ) [2025-03-14 13:53: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-03-14 10:53:05' and `end` < '2025-03-14 13:53: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-03-14 13:53:18] Production.INFO: count ==4453 [2025-03-14 13:53:20] Production.ERROR: pbx CDR StartTime 2025-03-14 10:53:05 - End Time 2025-03-14 13:53:05 [2025-03-14 13:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 13:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679274', 'tblTempUsageDetail_20' ) start [2025-03-14 13:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679274', 'tblTempUsageDetail_20' ) end [2025-03-14 13:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679274', 'tblTempVendorCDR_20' ) start [2025-03-14 13:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679274', 'tblTempVendorCDR_20' ) end [2025-03-14 13:53:20] Production.INFO: ProcessCDR(1,14679274,1,1,2) [2025-03-14 13:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:53:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679274,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:53:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679274,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679274', 'tblTempUsageDetail_20' ) start [2025-03-14 13:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679274', 'tblTempUsageDetail_20' ) end [2025-03-14 13:53:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 13:53:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 13:53:25] Production.INFO: ==18769== Releasing lock... [2025-03-14 13:53:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 13:53:25] Production.INFO: 61.25 MB #Memory Used# [2025-03-14 13:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 10:54:05 [end_date_ymd] => 2025-03-14 13:54:05 [RateCDR] => 1 ) [2025-03-14 13:54: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-03-14 10:54:05' and `end` < '2025-03-14 13:54: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-03-14 13:54:19] Production.INFO: count ==4445 [2025-03-14 13:54:20] Production.ERROR: pbx CDR StartTime 2025-03-14 10:54:05 - End Time 2025-03-14 13:54:05 [2025-03-14 13:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 13:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679279', 'tblTempUsageDetail_20' ) start [2025-03-14 13:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679279', 'tblTempUsageDetail_20' ) end [2025-03-14 13:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679279', 'tblTempVendorCDR_20' ) start [2025-03-14 13:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679279', 'tblTempVendorCDR_20' ) end [2025-03-14 13:54:20] Production.INFO: ProcessCDR(1,14679279,1,1,2) [2025-03-14 13:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679279,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679279,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679279', 'tblTempUsageDetail_20' ) start [2025-03-14 13:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679279', 'tblTempUsageDetail_20' ) end [2025-03-14 13:54:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 13:54:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 13:54:26] Production.INFO: ==18846== Releasing lock... [2025-03-14 13:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 13:54:26] Production.INFO: 61.25 MB #Memory Used# [2025-03-14 13:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 10:55:05 [end_date_ymd] => 2025-03-14 13:55:05 [RateCDR] => 1 ) [2025-03-14 13:55: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-03-14 10:55:05' and `end` < '2025-03-14 13:55: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-03-14 13:55:18] Production.INFO: count ==4453 [2025-03-14 13:55:20] Production.ERROR: pbx CDR StartTime 2025-03-14 10:55:05 - End Time 2025-03-14 13:55:05 [2025-03-14 13:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 13:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679284', 'tblTempUsageDetail_20' ) start [2025-03-14 13:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679284', 'tblTempUsageDetail_20' ) end [2025-03-14 13:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679284', 'tblTempVendorCDR_20' ) start [2025-03-14 13:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679284', 'tblTempVendorCDR_20' ) end [2025-03-14 13:55:20] Production.INFO: ProcessCDR(1,14679284,1,1,2) [2025-03-14 13:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679284', 'tblTempUsageDetail_20' ) start [2025-03-14 13:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679284', 'tblTempUsageDetail_20' ) end [2025-03-14 13:55:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 13:55:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 13:55:25] Production.INFO: ==18926== Releasing lock... [2025-03-14 13:55:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 13:55:25] Production.INFO: 61.25 MB #Memory Used# [2025-03-14 13:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 10:56:06 [end_date_ymd] => 2025-03-14 13:56:06 [RateCDR] => 1 ) [2025-03-14 13:56: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-03-14 10:56:06' and `end` < '2025-03-14 13:56: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-03-14 13:56:19] Production.INFO: count ==4465 [2025-03-14 13:56:20] Production.ERROR: pbx CDR StartTime 2025-03-14 10:56:06 - End Time 2025-03-14 13:56:06 [2025-03-14 13:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 13:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679289', 'tblTempUsageDetail_20' ) start [2025-03-14 13:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679289', 'tblTempUsageDetail_20' ) end [2025-03-14 13:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679289', 'tblTempVendorCDR_20' ) start [2025-03-14 13:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679289', 'tblTempVendorCDR_20' ) end [2025-03-14 13:56:20] Production.INFO: ProcessCDR(1,14679289,1,1,2) [2025-03-14 13:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:56:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679289', 'tblTempUsageDetail_20' ) start [2025-03-14 13:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679289', 'tblTempUsageDetail_20' ) end [2025-03-14 13:56:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 13:56:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 13:56:26] Production.INFO: ==19001== Releasing lock... [2025-03-14 13:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 13:56:26] Production.INFO: 61.5 MB #Memory Used# [2025-03-14 13:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 10:57:05 [end_date_ymd] => 2025-03-14 13:57:05 [RateCDR] => 1 ) [2025-03-14 13:57: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-03-14 10:57:05' and `end` < '2025-03-14 13:57: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-03-14 13:57:18] Production.INFO: count ==4475 [2025-03-14 13:57:20] Production.ERROR: pbx CDR StartTime 2025-03-14 10:57:05 - End Time 2025-03-14 13:57:05 [2025-03-14 13:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 13:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679294', 'tblTempUsageDetail_20' ) start [2025-03-14 13:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679294', 'tblTempUsageDetail_20' ) end [2025-03-14 13:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679294', 'tblTempVendorCDR_20' ) start [2025-03-14 13:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679294', 'tblTempVendorCDR_20' ) end [2025-03-14 13:57:20] Production.INFO: ProcessCDR(1,14679294,1,1,2) [2025-03-14 13:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679294', 'tblTempUsageDetail_20' ) start [2025-03-14 13:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679294', 'tblTempUsageDetail_20' ) end [2025-03-14 13:57:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 13:57:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 13:57:25] Production.INFO: ==19074== Releasing lock... [2025-03-14 13:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 13:57:25] Production.INFO: 61.5 MB #Memory Used# [2025-03-14 13:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 10:58:05 [end_date_ymd] => 2025-03-14 13:58:05 [RateCDR] => 1 ) [2025-03-14 13:58: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-03-14 10:58:05' and `end` < '2025-03-14 13:58: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-03-14 13:58:18] Production.INFO: count ==4479 [2025-03-14 13:58:20] Production.ERROR: pbx CDR StartTime 2025-03-14 10:58:05 - End Time 2025-03-14 13:58:05 [2025-03-14 13:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 13:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679299', 'tblTempUsageDetail_20' ) start [2025-03-14 13:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679299', 'tblTempUsageDetail_20' ) end [2025-03-14 13:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679299', 'tblTempVendorCDR_20' ) start [2025-03-14 13:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679299', 'tblTempVendorCDR_20' ) end [2025-03-14 13:58:20] Production.INFO: ProcessCDR(1,14679299,1,1,2) [2025-03-14 13:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679299', 'tblTempUsageDetail_20' ) start [2025-03-14 13:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679299', 'tblTempUsageDetail_20' ) end [2025-03-14 13:58:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 13:58:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 13:58:25] Production.INFO: ==19152== Releasing lock... [2025-03-14 13:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 13:58:25] Production.INFO: 61.5 MB #Memory Used# [2025-03-14 13:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 10:59:05 [end_date_ymd] => 2025-03-14 13:59:05 [RateCDR] => 1 ) [2025-03-14 13:59: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-03-14 10:59:05' and `end` < '2025-03-14 13:59: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-03-14 13:59:18] Production.INFO: count ==4484 [2025-03-14 13:59:20] Production.ERROR: pbx CDR StartTime 2025-03-14 10:59:05 - End Time 2025-03-14 13:59:05 [2025-03-14 13:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 13:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679304', 'tblTempUsageDetail_20' ) start [2025-03-14 13:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679304', 'tblTempUsageDetail_20' ) end [2025-03-14 13:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679304', 'tblTempVendorCDR_20' ) start [2025-03-14 13:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679304', 'tblTempVendorCDR_20' ) end [2025-03-14 13:59:20] Production.INFO: ProcessCDR(1,14679304,1,1,2) [2025-03-14 13:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 13:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 13:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679304', 'tblTempUsageDetail_20' ) start [2025-03-14 13:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679304', 'tblTempUsageDetail_20' ) end [2025-03-14 13:59:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 13:59:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 13:59:24] Production.INFO: ==19223== Releasing lock... [2025-03-14 13:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 13:59:24] Production.INFO: 61.5 MB #Memory Used# [2025-03-14 14:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 11:00:06 [end_date_ymd] => 2025-03-14 14:00:06 [RateCDR] => 1 ) [2025-03-14 14:00: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-03-14 11:00:06' and `end` < '2025-03-14 14:00: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-03-14 14:00:19] Production.INFO: count ==4481 [2025-03-14 14:00:21] Production.ERROR: pbx CDR StartTime 2025-03-14 11:00:06 - End Time 2025-03-14 14:00:06 [2025-03-14 14:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 14:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679309', 'tblTempUsageDetail_20' ) start [2025-03-14 14:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679309', 'tblTempUsageDetail_20' ) end [2025-03-14 14:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679309', 'tblTempVendorCDR_20' ) start [2025-03-14 14:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679309', 'tblTempVendorCDR_20' ) end [2025-03-14 14:00:21] Production.INFO: ProcessCDR(1,14679309,1,1,2) [2025-03-14 14:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:00:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679309', 'tblTempUsageDetail_20' ) start [2025-03-14 14:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679309', 'tblTempUsageDetail_20' ) end [2025-03-14 14:00:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 14:00:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 14:00:27] Production.INFO: ==19300== Releasing lock... [2025-03-14 14:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 14:00:27] Production.INFO: 61.5 MB #Memory Used# [2025-03-14 14:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 11:01:05 [end_date_ymd] => 2025-03-14 14:01:05 [RateCDR] => 1 ) [2025-03-14 14:01: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-03-14 11:01:05' and `end` < '2025-03-14 14:01: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-03-14 14:01:18] Production.INFO: count ==4511 [2025-03-14 14:01:20] Production.ERROR: pbx CDR StartTime 2025-03-14 11:01:05 - End Time 2025-03-14 14:01:05 [2025-03-14 14:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 14:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679315', 'tblTempUsageDetail_20' ) start [2025-03-14 14:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679315', 'tblTempUsageDetail_20' ) end [2025-03-14 14:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679315', 'tblTempVendorCDR_20' ) start [2025-03-14 14:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679315', 'tblTempVendorCDR_20' ) end [2025-03-14 14:01:20] Production.INFO: ProcessCDR(1,14679315,1,1,2) [2025-03-14 14:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679315,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679315,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679315', 'tblTempUsageDetail_20' ) start [2025-03-14 14:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679315', 'tblTempUsageDetail_20' ) end [2025-03-14 14:01:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 14:01:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 14:01:25] Production.INFO: ==19391== Releasing lock... [2025-03-14 14:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 14:01:25] Production.INFO: 61.75 MB #Memory Used# [2025-03-14 14:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 11:02:05 [end_date_ymd] => 2025-03-14 14:02:05 [RateCDR] => 1 ) [2025-03-14 14:02: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-03-14 11:02:05' and `end` < '2025-03-14 14:02: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-03-14 14:02:18] Production.INFO: count ==4525 [2025-03-14 14:02:20] Production.ERROR: pbx CDR StartTime 2025-03-14 11:02:05 - End Time 2025-03-14 14:02:05 [2025-03-14 14:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 14:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679320', 'tblTempUsageDetail_20' ) start [2025-03-14 14:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679320', 'tblTempUsageDetail_20' ) end [2025-03-14 14:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679320', 'tblTempVendorCDR_20' ) start [2025-03-14 14:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679320', 'tblTempVendorCDR_20' ) end [2025-03-14 14:02:20] Production.INFO: ProcessCDR(1,14679320,1,1,2) [2025-03-14 14:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679320,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679320,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679320', 'tblTempUsageDetail_20' ) start [2025-03-14 14:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679320', 'tblTempUsageDetail_20' ) end [2025-03-14 14:02:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 14:02:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 14:02:25] Production.INFO: ==19501== Releasing lock... [2025-03-14 14:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 14:02:25] Production.INFO: 61.75 MB #Memory Used# [2025-03-14 14:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 11:03:05 [end_date_ymd] => 2025-03-14 14:03:05 [RateCDR] => 1 ) [2025-03-14 14:03: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-03-14 11:03:05' and `end` < '2025-03-14 14:03: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-03-14 14:03:18] Production.INFO: count ==4570 [2025-03-14 14:03:20] Production.ERROR: pbx CDR StartTime 2025-03-14 11:03:05 - End Time 2025-03-14 14:03:05 [2025-03-14 14:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 14:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679325', 'tblTempUsageDetail_20' ) start [2025-03-14 14:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679325', 'tblTempUsageDetail_20' ) end [2025-03-14 14:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679325', 'tblTempVendorCDR_20' ) start [2025-03-14 14:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679325', 'tblTempVendorCDR_20' ) end [2025-03-14 14:03:20] Production.INFO: ProcessCDR(1,14679325,1,1,2) [2025-03-14 14:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679325,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679325,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679325', 'tblTempUsageDetail_20' ) start [2025-03-14 14:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679325', 'tblTempUsageDetail_20' ) end [2025-03-14 14:03:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 14:03:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 14:03:25] Production.INFO: ==19574== Releasing lock... [2025-03-14 14:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 14:03:25] Production.INFO: 62.25 MB #Memory Used# [2025-03-14 14:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 11:04:06 [end_date_ymd] => 2025-03-14 14:04:06 [RateCDR] => 1 ) [2025-03-14 14:04: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-03-14 11:04:06' and `end` < '2025-03-14 14:04: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-03-14 14:04:19] Production.INFO: count ==4594 [2025-03-14 14:04:21] Production.ERROR: pbx CDR StartTime 2025-03-14 11:04:06 - End Time 2025-03-14 14:04:06 [2025-03-14 14:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679330', 'tblTempUsageDetail_20' ) start [2025-03-14 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679330', 'tblTempUsageDetail_20' ) end [2025-03-14 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679330', 'tblTempVendorCDR_20' ) start [2025-03-14 14:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679330', 'tblTempVendorCDR_20' ) end [2025-03-14 14:04:21] Production.INFO: ProcessCDR(1,14679330,1,1,2) [2025-03-14 14:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679330', 'tblTempUsageDetail_20' ) start [2025-03-14 14:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679330', 'tblTempUsageDetail_20' ) end [2025-03-14 14:04:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 14:04:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 14:04:26] Production.INFO: ==19650== Releasing lock... [2025-03-14 14:04:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 14:04:26] Production.INFO: 62.5 MB #Memory Used# [2025-03-14 14:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 11:05:04 [end_date_ymd] => 2025-03-14 14:05:04 [RateCDR] => 1 ) [2025-03-14 14:05: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-03-14 11:05:04' and `end` < '2025-03-14 14:05: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-03-14 14:05:18] Production.INFO: count ==4636 [2025-03-14 14:05:20] Production.ERROR: pbx CDR StartTime 2025-03-14 11:05:04 - End Time 2025-03-14 14:05:04 [2025-03-14 14:05:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 14:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679335', 'tblTempUsageDetail_20' ) start [2025-03-14 14:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679335', 'tblTempUsageDetail_20' ) end [2025-03-14 14:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679335', 'tblTempVendorCDR_20' ) start [2025-03-14 14:05:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679335', 'tblTempVendorCDR_20' ) end [2025-03-14 14:05:20] Production.INFO: ProcessCDR(1,14679335,1,1,2) [2025-03-14 14:05:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679335', 'tblTempUsageDetail_20' ) start [2025-03-14 14:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679335', 'tblTempUsageDetail_20' ) end [2025-03-14 14:05:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 14:05:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 14:05:25] Production.INFO: ==19722== Releasing lock... [2025-03-14 14:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 14:05:25] Production.INFO: 62.75 MB #Memory Used# [2025-03-14 14:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 11:06:05 [end_date_ymd] => 2025-03-14 14:06:05 [RateCDR] => 1 ) [2025-03-14 14:06: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-03-14 11:06:05' and `end` < '2025-03-14 14:06: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-03-14 14:06:18] Production.INFO: count ==4640 [2025-03-14 14:06:20] Production.ERROR: pbx CDR StartTime 2025-03-14 11:06:05 - End Time 2025-03-14 14:06:05 [2025-03-14 14:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 14:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679340', 'tblTempUsageDetail_20' ) start [2025-03-14 14:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679340', 'tblTempUsageDetail_20' ) end [2025-03-14 14:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679340', 'tblTempVendorCDR_20' ) start [2025-03-14 14:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679340', 'tblTempVendorCDR_20' ) end [2025-03-14 14:06:20] Production.INFO: ProcessCDR(1,14679340,1,1,2) [2025-03-14 14:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:06:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:06:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679340', 'tblTempUsageDetail_20' ) start [2025-03-14 14:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679340', 'tblTempUsageDetail_20' ) end [2025-03-14 14:06:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 14:06:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 14:06:25] Production.INFO: ==19797== Releasing lock... [2025-03-14 14:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 14:06:25] Production.INFO: 62.75 MB #Memory Used# [2025-03-14 14:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 11:07:06 [end_date_ymd] => 2025-03-14 14:07:06 [RateCDR] => 1 ) [2025-03-14 14:07: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-03-14 11:07:06' and `end` < '2025-03-14 14:07: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-03-14 14:07:19] Production.INFO: count ==4640 [2025-03-14 14:07:21] Production.ERROR: pbx CDR StartTime 2025-03-14 11:07:06 - End Time 2025-03-14 14:07:06 [2025-03-14 14:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 14:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679345', 'tblTempUsageDetail_20' ) start [2025-03-14 14:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679345', 'tblTempUsageDetail_20' ) end [2025-03-14 14:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679345', 'tblTempVendorCDR_20' ) start [2025-03-14 14:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679345', 'tblTempVendorCDR_20' ) end [2025-03-14 14:07:21] Production.INFO: ProcessCDR(1,14679345,1,1,2) [2025-03-14 14:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:07:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679345', 'tblTempUsageDetail_20' ) start [2025-03-14 14:07:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679345', 'tblTempUsageDetail_20' ) end [2025-03-14 14:07:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 14:07:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 14:07:26] Production.INFO: ==19869== Releasing lock... [2025-03-14 14:07:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 14:07:26] Production.INFO: 62.75 MB #Memory Used# [2025-03-14 14:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 11:08:06 [end_date_ymd] => 2025-03-14 14:08:06 [RateCDR] => 1 ) [2025-03-14 14:08: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-03-14 11:08:06' and `end` < '2025-03-14 14:08: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-03-14 14:08:19] Production.INFO: count ==4668 [2025-03-14 14:08:20] Production.ERROR: pbx CDR StartTime 2025-03-14 11:08:06 - End Time 2025-03-14 14:08:06 [2025-03-14 14:08:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 14:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679350', 'tblTempUsageDetail_20' ) start [2025-03-14 14:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679350', 'tblTempUsageDetail_20' ) end [2025-03-14 14:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679350', 'tblTempVendorCDR_20' ) start [2025-03-14 14:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679350', 'tblTempVendorCDR_20' ) end [2025-03-14 14:08:21] Production.INFO: ProcessCDR(1,14679350,1,1,2) [2025-03-14 14:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:08:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:08:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679350', 'tblTempUsageDetail_20' ) start [2025-03-14 14:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679350', 'tblTempUsageDetail_20' ) end [2025-03-14 14:08:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 14:08:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 14:08:26] Production.INFO: ==19945== Releasing lock... [2025-03-14 14:08:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 14:08:26] Production.INFO: 63 MB #Memory Used# [2025-03-14 14:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 11:09:05 [end_date_ymd] => 2025-03-14 14:09:05 [RateCDR] => 1 ) [2025-03-14 14:09: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-03-14 11:09:05' and `end` < '2025-03-14 14:09: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-03-14 14:09:18] Production.INFO: count ==4674 [2025-03-14 14:09:20] Production.ERROR: pbx CDR StartTime 2025-03-14 11:09:05 - End Time 2025-03-14 14:09:05 [2025-03-14 14:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 14:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679355', 'tblTempUsageDetail_20' ) start [2025-03-14 14:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679355', 'tblTempUsageDetail_20' ) end [2025-03-14 14:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679355', 'tblTempVendorCDR_20' ) start [2025-03-14 14:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679355', 'tblTempVendorCDR_20' ) end [2025-03-14 14:09:20] Production.INFO: ProcessCDR(1,14679355,1,1,2) [2025-03-14 14:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679355', 'tblTempUsageDetail_20' ) start [2025-03-14 14:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679355', 'tblTempUsageDetail_20' ) end [2025-03-14 14:09:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 14:09:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 14:09:26] Production.INFO: ==20018== Releasing lock... [2025-03-14 14:09:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 14:09:26] Production.INFO: 63 MB #Memory Used# [2025-03-14 14:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 11:10:06 [end_date_ymd] => 2025-03-14 14:10:06 [RateCDR] => 1 ) [2025-03-14 14:10: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-03-14 11:10:06' and `end` < '2025-03-14 14:10: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-03-14 14:10:20] Production.INFO: count ==4681 [2025-03-14 14:10:22] Production.ERROR: pbx CDR StartTime 2025-03-14 11:10:06 - End Time 2025-03-14 14:10:06 [2025-03-14 14:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 14:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679361', 'tblTempUsageDetail_20' ) start [2025-03-14 14:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679361', 'tblTempUsageDetail_20' ) end [2025-03-14 14:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679361', 'tblTempVendorCDR_20' ) start [2025-03-14 14:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679361', 'tblTempVendorCDR_20' ) end [2025-03-14 14:10:22] Production.INFO: ProcessCDR(1,14679361,1,1,2) [2025-03-14 14:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679361,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:10:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679361,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679361', 'tblTempUsageDetail_20' ) start [2025-03-14 14:10:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679361', 'tblTempUsageDetail_20' ) end [2025-03-14 14:10:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 14:10:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 14:10:27] Production.INFO: ==20100== Releasing lock... [2025-03-14 14:10:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 14:10:27] Production.INFO: 63 MB #Memory Used# [2025-03-14 14:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 11:11:05 [end_date_ymd] => 2025-03-14 14:11:05 [RateCDR] => 1 ) [2025-03-14 14:11: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-03-14 11:11:05' and `end` < '2025-03-14 14:11: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-03-14 14:11:18] Production.INFO: count ==4683 [2025-03-14 14:11:20] Production.ERROR: pbx CDR StartTime 2025-03-14 11:11:05 - End Time 2025-03-14 14:11:05 [2025-03-14 14:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 14:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679366', 'tblTempUsageDetail_20' ) start [2025-03-14 14:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679366', 'tblTempUsageDetail_20' ) end [2025-03-14 14:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679366', 'tblTempVendorCDR_20' ) start [2025-03-14 14:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679366', 'tblTempVendorCDR_20' ) end [2025-03-14 14:11:20] Production.INFO: ProcessCDR(1,14679366,1,1,2) [2025-03-14 14:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:11:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679366,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:11:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:11:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679366,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679366', 'tblTempUsageDetail_20' ) start [2025-03-14 14:11:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679366', 'tblTempUsageDetail_20' ) end [2025-03-14 14:11:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 14:11:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 14:11:25] Production.INFO: ==20173== Releasing lock... [2025-03-14 14:11:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 14:11:25] Production.INFO: 63 MB #Memory Used# [2025-03-14 14:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 11:12:06 [end_date_ymd] => 2025-03-14 14:12:06 [RateCDR] => 1 ) [2025-03-14 14:12: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-03-14 11:12:06' and `end` < '2025-03-14 14:12: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-03-14 14:12:19] Production.INFO: count ==4674 [2025-03-14 14:12:21] Production.ERROR: pbx CDR StartTime 2025-03-14 11:12:06 - End Time 2025-03-14 14:12:06 [2025-03-14 14:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 14:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679371', 'tblTempUsageDetail_20' ) start [2025-03-14 14:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679371', 'tblTempUsageDetail_20' ) end [2025-03-14 14:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679371', 'tblTempVendorCDR_20' ) start [2025-03-14 14:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679371', 'tblTempVendorCDR_20' ) end [2025-03-14 14:12:21] Production.INFO: ProcessCDR(1,14679371,1,1,2) [2025-03-14 14:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679371,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679371,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679371', 'tblTempUsageDetail_20' ) start [2025-03-14 14:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679371', 'tblTempUsageDetail_20' ) end [2025-03-14 14:12:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 14:12:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 14:12:26] Production.INFO: ==20246== Releasing lock... [2025-03-14 14:12:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 14:12:26] Production.INFO: 63 MB #Memory Used# [2025-03-14 14:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 11:13:05 [end_date_ymd] => 2025-03-14 14:13:05 [RateCDR] => 1 ) [2025-03-14 14:13: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-03-14 11:13:05' and `end` < '2025-03-14 14:13: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-03-14 14:13:19] Production.INFO: count ==4681 [2025-03-14 14:13:20] Production.ERROR: pbx CDR StartTime 2025-03-14 11:13:05 - End Time 2025-03-14 14:13:05 [2025-03-14 14:13:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 14:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679376', 'tblTempUsageDetail_20' ) start [2025-03-14 14:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679376', 'tblTempUsageDetail_20' ) end [2025-03-14 14:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679376', 'tblTempVendorCDR_20' ) start [2025-03-14 14:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679376', 'tblTempVendorCDR_20' ) end [2025-03-14 14:13:21] Production.INFO: ProcessCDR(1,14679376,1,1,2) [2025-03-14 14:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:13:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679376,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:13:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:13:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679376,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:13:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679376', 'tblTempUsageDetail_20' ) start [2025-03-14 14:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679376', 'tblTempUsageDetail_20' ) end [2025-03-14 14:13:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 14:13:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 14:13:26] Production.INFO: ==20319== Releasing lock... [2025-03-14 14:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 14:13:26] Production.INFO: 63 MB #Memory Used# [2025-03-14 14:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 11:14:06 [end_date_ymd] => 2025-03-14 14:14:06 [RateCDR] => 1 ) [2025-03-14 14:14: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-03-14 11:14:06' and `end` < '2025-03-14 14:14: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-03-14 14:14:19] Production.INFO: count ==4653 [2025-03-14 14:14:21] Production.ERROR: pbx CDR StartTime 2025-03-14 11:14:06 - End Time 2025-03-14 14:14:06 [2025-03-14 14:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679381', 'tblTempUsageDetail_20' ) start [2025-03-14 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679381', 'tblTempUsageDetail_20' ) end [2025-03-14 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679381', 'tblTempVendorCDR_20' ) start [2025-03-14 14:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679381', 'tblTempVendorCDR_20' ) end [2025-03-14 14:14:21] Production.INFO: ProcessCDR(1,14679381,1,1,2) [2025-03-14 14:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679381', 'tblTempUsageDetail_20' ) start [2025-03-14 14:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679381', 'tblTempUsageDetail_20' ) end [2025-03-14 14:14:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 14:14:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 14:14:26] Production.INFO: ==20392== Releasing lock... [2025-03-14 14:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 14:14:26] Production.INFO: 62.75 MB #Memory Used# [2025-03-14 14:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 11:15:05 [end_date_ymd] => 2025-03-14 14:15:05 [RateCDR] => 1 ) [2025-03-14 14:15: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-03-14 11:15:05' and `end` < '2025-03-14 14:15: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-03-14 14:15:18] Production.INFO: count ==4643 [2025-03-14 14:15:20] Production.ERROR: pbx CDR StartTime 2025-03-14 11:15:05 - End Time 2025-03-14 14:15:05 [2025-03-14 14:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 14:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679386', 'tblTempUsageDetail_20' ) start [2025-03-14 14:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679386', 'tblTempUsageDetail_20' ) end [2025-03-14 14:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679386', 'tblTempVendorCDR_20' ) start [2025-03-14 14:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679386', 'tblTempVendorCDR_20' ) end [2025-03-14 14:15:20] Production.INFO: ProcessCDR(1,14679386,1,1,2) [2025-03-14 14:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:15:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:15:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:15:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679386', 'tblTempUsageDetail_20' ) start [2025-03-14 14:15:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679386', 'tblTempUsageDetail_20' ) end [2025-03-14 14:15:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 14:15:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 14:15:25] Production.INFO: ==20465== Releasing lock... [2025-03-14 14:15:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 14:15:25] Production.INFO: 62.75 MB #Memory Used# [2025-03-14 14:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 11:16:05 [end_date_ymd] => 2025-03-14 14:16:05 [RateCDR] => 1 ) [2025-03-14 14:16: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-03-14 11:16:05' and `end` < '2025-03-14 14:16: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-03-14 14:16:18] Production.INFO: count ==4652 [2025-03-14 14:16:20] Production.ERROR: pbx CDR StartTime 2025-03-14 11:16:05 - End Time 2025-03-14 14:16:05 [2025-03-14 14:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 14:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679391', 'tblTempUsageDetail_20' ) start [2025-03-14 14:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679391', 'tblTempUsageDetail_20' ) end [2025-03-14 14:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679391', 'tblTempVendorCDR_20' ) start [2025-03-14 14:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679391', 'tblTempVendorCDR_20' ) end [2025-03-14 14:16:20] Production.INFO: ProcessCDR(1,14679391,1,1,2) [2025-03-14 14:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679391', 'tblTempUsageDetail_20' ) start [2025-03-14 14:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679391', 'tblTempUsageDetail_20' ) end [2025-03-14 14:16:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 14:16:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 14:16:25] Production.INFO: ==20542== Releasing lock... [2025-03-14 14:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 14:16:25] Production.INFO: 62.75 MB #Memory Used# [2025-03-14 14:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 11:17:05 [end_date_ymd] => 2025-03-14 14:17:05 [RateCDR] => 1 ) [2025-03-14 14:17: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-03-14 11:17:05' and `end` < '2025-03-14 14:17: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-03-14 14:17:18] Production.INFO: count ==4626 [2025-03-14 14:17:20] Production.ERROR: pbx CDR StartTime 2025-03-14 11:17:05 - End Time 2025-03-14 14:17:05 [2025-03-14 14:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 14:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679396', 'tblTempUsageDetail_20' ) start [2025-03-14 14:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679396', 'tblTempUsageDetail_20' ) end [2025-03-14 14:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679396', 'tblTempVendorCDR_20' ) start [2025-03-14 14:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679396', 'tblTempVendorCDR_20' ) end [2025-03-14 14:17:20] Production.INFO: ProcessCDR(1,14679396,1,1,2) [2025-03-14 14:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679396', 'tblTempUsageDetail_20' ) start [2025-03-14 14:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679396', 'tblTempUsageDetail_20' ) end [2025-03-14 14:17:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 14:17:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 14:17:26] Production.INFO: ==20655== Releasing lock... [2025-03-14 14:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 14:17:26] Production.INFO: 62.75 MB #Memory Used# [2025-03-14 14:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 11:18:06 [end_date_ymd] => 2025-03-14 14:18:06 [RateCDR] => 1 ) [2025-03-14 14:18: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-03-14 11:18:06' and `end` < '2025-03-14 14:18: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-03-14 14:18:19] Production.INFO: count ==4637 [2025-03-14 14:18:21] Production.ERROR: pbx CDR StartTime 2025-03-14 11:18:06 - End Time 2025-03-14 14:18:06 [2025-03-14 14:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679401', 'tblTempUsageDetail_20' ) start [2025-03-14 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679401', 'tblTempUsageDetail_20' ) end [2025-03-14 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679401', 'tblTempVendorCDR_20' ) start [2025-03-14 14:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679401', 'tblTempVendorCDR_20' ) end [2025-03-14 14:18:21] Production.INFO: ProcessCDR(1,14679401,1,1,2) [2025-03-14 14:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:18:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679401', 'tblTempUsageDetail_20' ) start [2025-03-14 14:18:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679401', 'tblTempUsageDetail_20' ) end [2025-03-14 14:18:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 14:18:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 14:18:26] Production.INFO: ==20727== Releasing lock... [2025-03-14 14:18:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 14:18:26] Production.INFO: 62.75 MB #Memory Used# [2025-03-14 14:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 11:19:05 [end_date_ymd] => 2025-03-14 14:19:05 [RateCDR] => 1 ) [2025-03-14 14:19: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-03-14 11:19:05' and `end` < '2025-03-14 14:19: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-03-14 14:19:18] Production.INFO: count ==4638 [2025-03-14 14:19:20] Production.ERROR: pbx CDR StartTime 2025-03-14 11:19:05 - End Time 2025-03-14 14:19:05 [2025-03-14 14:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 14:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679406', 'tblTempUsageDetail_20' ) start [2025-03-14 14:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679406', 'tblTempUsageDetail_20' ) end [2025-03-14 14:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679406', 'tblTempVendorCDR_20' ) start [2025-03-14 14:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679406', 'tblTempVendorCDR_20' ) end [2025-03-14 14:19:20] Production.INFO: ProcessCDR(1,14679406,1,1,2) [2025-03-14 14:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679406', 'tblTempUsageDetail_20' ) start [2025-03-14 14:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679406', 'tblTempUsageDetail_20' ) end [2025-03-14 14:19:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 14:19:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 14:19:25] Production.INFO: ==20800== Releasing lock... [2025-03-14 14:19:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 14:19:25] Production.INFO: 62.75 MB #Memory Used# [2025-03-14 14:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 11:20:06 [end_date_ymd] => 2025-03-14 14:20:06 [RateCDR] => 1 ) [2025-03-14 14:20: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-03-14 11:20:06' and `end` < '2025-03-14 14:20: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-03-14 14:20:19] Production.INFO: count ==4651 [2025-03-14 14:20:21] Production.ERROR: pbx CDR StartTime 2025-03-14 11:20:06 - End Time 2025-03-14 14:20:06 [2025-03-14 14:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 14:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679412', 'tblTempUsageDetail_20' ) start [2025-03-14 14:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679412', 'tblTempUsageDetail_20' ) end [2025-03-14 14:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679412', 'tblTempVendorCDR_20' ) start [2025-03-14 14:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679412', 'tblTempVendorCDR_20' ) end [2025-03-14 14:20:21] Production.INFO: ProcessCDR(1,14679412,1,1,2) [2025-03-14 14:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679412,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679412,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679412', 'tblTempUsageDetail_20' ) start [2025-03-14 14:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679412', 'tblTempUsageDetail_20' ) end [2025-03-14 14:20:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 14:20:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 14:20:26] Production.INFO: ==20874== Releasing lock... [2025-03-14 14:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 14:20:26] Production.INFO: 62.75 MB #Memory Used# [2025-03-14 14:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 11:21:05 [end_date_ymd] => 2025-03-14 14:21:05 [RateCDR] => 1 ) [2025-03-14 14:21: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-03-14 11:21:05' and `end` < '2025-03-14 14:21: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-03-14 14:21:18] Production.INFO: count ==4646 [2025-03-14 14:21:20] Production.ERROR: pbx CDR StartTime 2025-03-14 11:21:05 - End Time 2025-03-14 14:21:05 [2025-03-14 14:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 14:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679417', 'tblTempUsageDetail_20' ) start [2025-03-14 14:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679417', 'tblTempUsageDetail_20' ) end [2025-03-14 14:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679417', 'tblTempVendorCDR_20' ) start [2025-03-14 14:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679417', 'tblTempVendorCDR_20' ) end [2025-03-14 14:21:20] Production.INFO: ProcessCDR(1,14679417,1,1,2) [2025-03-14 14:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679417,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:21:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679417,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679417', 'tblTempUsageDetail_20' ) start [2025-03-14 14:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679417', 'tblTempUsageDetail_20' ) end [2025-03-14 14:21:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 14:21:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 14:21:25] Production.INFO: ==20956== Releasing lock... [2025-03-14 14:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 14:21:25] Production.INFO: 62.75 MB #Memory Used# [2025-03-14 14:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 11:22:06 [end_date_ymd] => 2025-03-14 14:22:06 [RateCDR] => 1 ) [2025-03-14 14:22: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-03-14 11:22:06' and `end` < '2025-03-14 14:22: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-03-14 14:22:19] Production.INFO: count ==4623 [2025-03-14 14:22:21] Production.ERROR: pbx CDR StartTime 2025-03-14 11:22:06 - End Time 2025-03-14 14:22:06 [2025-03-14 14:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679422', 'tblTempUsageDetail_20' ) start [2025-03-14 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679422', 'tblTempUsageDetail_20' ) end [2025-03-14 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679422', 'tblTempVendorCDR_20' ) start [2025-03-14 14:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679422', 'tblTempVendorCDR_20' ) end [2025-03-14 14:22:21] Production.INFO: ProcessCDR(1,14679422,1,1,2) [2025-03-14 14:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679422,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:22:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679422,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679422', 'tblTempUsageDetail_20' ) start [2025-03-14 14:22:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679422', 'tblTempUsageDetail_20' ) end [2025-03-14 14:22:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 14:22:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 14:22:26] Production.INFO: ==21029== Releasing lock... [2025-03-14 14:22:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 14:22:26] Production.INFO: 62.5 MB #Memory Used# [2025-03-14 14:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 11:23:05 [end_date_ymd] => 2025-03-14 14:23:05 [RateCDR] => 1 ) [2025-03-14 14:23: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-03-14 11:23:05' and `end` < '2025-03-14 14:23: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-03-14 14:23:18] Production.INFO: count ==4629 [2025-03-14 14:23:20] Production.ERROR: pbx CDR StartTime 2025-03-14 11:23:05 - End Time 2025-03-14 14:23:05 [2025-03-14 14:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 14:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679427', 'tblTempUsageDetail_20' ) start [2025-03-14 14:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679427', 'tblTempUsageDetail_20' ) end [2025-03-14 14:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679427', 'tblTempVendorCDR_20' ) start [2025-03-14 14:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679427', 'tblTempVendorCDR_20' ) end [2025-03-14 14:23:20] Production.INFO: ProcessCDR(1,14679427,1,1,2) [2025-03-14 14:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679427,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679427,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679427', 'tblTempUsageDetail_20' ) start [2025-03-14 14:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679427', 'tblTempUsageDetail_20' ) end [2025-03-14 14:23:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 14:23:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 14:23:26] Production.INFO: ==21105== Releasing lock... [2025-03-14 14:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 14:23:26] Production.INFO: 62.75 MB #Memory Used# [2025-03-14 14:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 11:24:05 [end_date_ymd] => 2025-03-14 14:24:05 [RateCDR] => 1 ) [2025-03-14 14:24: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-03-14 11:24:05' and `end` < '2025-03-14 14:24: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-03-14 14:24:18] Production.INFO: count ==4621 [2025-03-14 14:24:20] Production.ERROR: pbx CDR StartTime 2025-03-14 11:24:05 - End Time 2025-03-14 14:24:05 [2025-03-14 14:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 14:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679432', 'tblTempUsageDetail_20' ) start [2025-03-14 14:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679432', 'tblTempUsageDetail_20' ) end [2025-03-14 14:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679432', 'tblTempVendorCDR_20' ) start [2025-03-14 14:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679432', 'tblTempVendorCDR_20' ) end [2025-03-14 14:24:20] Production.INFO: ProcessCDR(1,14679432,1,1,2) [2025-03-14 14:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679432', 'tblTempUsageDetail_20' ) start [2025-03-14 14:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679432', 'tblTempUsageDetail_20' ) end [2025-03-14 14:24:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 14:24:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 14:24:26] Production.INFO: ==21182== Releasing lock... [2025-03-14 14:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 14:24:26] Production.INFO: 62.5 MB #Memory Used# [2025-03-14 14:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 11:25:05 [end_date_ymd] => 2025-03-14 14:25:05 [RateCDR] => 1 ) [2025-03-14 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-03-14 11:25:05' and `end` < '2025-03-14 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-03-14 14:25:18] Production.INFO: count ==4637 [2025-03-14 14:25:20] Production.ERROR: pbx CDR StartTime 2025-03-14 11:25:05 - End Time 2025-03-14 14:25:05 [2025-03-14 14:25:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 14:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679437', 'tblTempUsageDetail_20' ) start [2025-03-14 14:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679437', 'tblTempUsageDetail_20' ) end [2025-03-14 14:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679437', 'tblTempVendorCDR_20' ) start [2025-03-14 14:25:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679437', 'tblTempVendorCDR_20' ) end [2025-03-14 14:25:20] Production.INFO: ProcessCDR(1,14679437,1,1,2) [2025-03-14 14:25:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:25:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:25:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679437', 'tblTempUsageDetail_20' ) start [2025-03-14 14:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679437', 'tblTempUsageDetail_20' ) end [2025-03-14 14:25:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 14:25:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 14:25:25] Production.INFO: ==21255== Releasing lock... [2025-03-14 14:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 14:25:25] Production.INFO: 62.75 MB #Memory Used# [2025-03-14 14:26:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 11:26:07 [end_date_ymd] => 2025-03-14 14:26:07 [RateCDR] => 1 ) [2025-03-14 14:26:07] 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-03-14 11:26:07' and `end` < '2025-03-14 14:26:07' 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-03-14 14:26:20] Production.INFO: count ==4634 [2025-03-14 14:26:22] Production.ERROR: pbx CDR StartTime 2025-03-14 11:26:07 - End Time 2025-03-14 14:26:07 [2025-03-14 14:26:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 14:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679442', 'tblTempUsageDetail_20' ) start [2025-03-14 14:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679442', 'tblTempUsageDetail_20' ) end [2025-03-14 14:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679442', 'tblTempVendorCDR_20' ) start [2025-03-14 14:26:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679442', 'tblTempVendorCDR_20' ) end [2025-03-14 14:26:22] Production.INFO: ProcessCDR(1,14679442,1,1,2) [2025-03-14 14:26:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:26:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:26:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679442', 'tblTempUsageDetail_20' ) start [2025-03-14 14:26:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679442', 'tblTempUsageDetail_20' ) end [2025-03-14 14:26:28] Production.ERROR: pbx prc_insertCDR start [2025-03-14 14:26:28] Production.ERROR: pbx prc_insertCDR end [2025-03-14 14:26:28] Production.INFO: ==21330== Releasing lock... [2025-03-14 14:26:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 14:26:28] Production.INFO: 62.75 MB #Memory Used# [2025-03-14 14:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 11:27:06 [end_date_ymd] => 2025-03-14 14:27:06 [RateCDR] => 1 ) [2025-03-14 14:27: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-03-14 11:27:06' and `end` < '2025-03-14 14:27: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-03-14 14:27:19] Production.INFO: count ==4651 [2025-03-14 14:27:21] Production.ERROR: pbx CDR StartTime 2025-03-14 11:27:06 - End Time 2025-03-14 14:27:06 [2025-03-14 14:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679447', 'tblTempUsageDetail_20' ) start [2025-03-14 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679447', 'tblTempUsageDetail_20' ) end [2025-03-14 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679447', 'tblTempVendorCDR_20' ) start [2025-03-14 14:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679447', 'tblTempVendorCDR_20' ) end [2025-03-14 14:27:21] Production.INFO: ProcessCDR(1,14679447,1,1,2) [2025-03-14 14:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679447', 'tblTempUsageDetail_20' ) start [2025-03-14 14:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679447', 'tblTempUsageDetail_20' ) end [2025-03-14 14:27:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 14:27:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 14:27:27] Production.INFO: ==21403== Releasing lock... [2025-03-14 14:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 14:27:27] Production.INFO: 62.75 MB #Memory Used# [2025-03-14 14:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 11:28:06 [end_date_ymd] => 2025-03-14 14:28:06 [RateCDR] => 1 ) [2025-03-14 14:28: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-03-14 11:28:06' and `end` < '2025-03-14 14:28: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-03-14 14:28:19] Production.INFO: count ==4649 [2025-03-14 14:28:21] Production.ERROR: pbx CDR StartTime 2025-03-14 11:28:06 - End Time 2025-03-14 14:28:06 [2025-03-14 14:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679452', 'tblTempUsageDetail_20' ) start [2025-03-14 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679452', 'tblTempUsageDetail_20' ) end [2025-03-14 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679452', 'tblTempVendorCDR_20' ) start [2025-03-14 14:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679452', 'tblTempVendorCDR_20' ) end [2025-03-14 14:28:21] Production.INFO: ProcessCDR(1,14679452,1,1,2) [2025-03-14 14:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:28:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679452', 'tblTempUsageDetail_20' ) start [2025-03-14 14:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679452', 'tblTempUsageDetail_20' ) end [2025-03-14 14:28:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 14:28:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 14:28:26] Production.INFO: ==21475== Releasing lock... [2025-03-14 14:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 14:28:26] Production.INFO: 62.75 MB #Memory Used# [2025-03-14 14:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 11:29:06 [end_date_ymd] => 2025-03-14 14:29:06 [RateCDR] => 1 ) [2025-03-14 14:29: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-03-14 11:29:06' and `end` < '2025-03-14 14:29: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-03-14 14:29:19] Production.INFO: count ==4641 [2025-03-14 14:29:21] Production.ERROR: pbx CDR StartTime 2025-03-14 11:29:06 - End Time 2025-03-14 14:29:06 [2025-03-14 14:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679457', 'tblTempUsageDetail_20' ) start [2025-03-14 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679457', 'tblTempUsageDetail_20' ) end [2025-03-14 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679457', 'tblTempVendorCDR_20' ) start [2025-03-14 14:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679457', 'tblTempVendorCDR_20' ) end [2025-03-14 14:29:21] Production.INFO: ProcessCDR(1,14679457,1,1,2) [2025-03-14 14:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679457', 'tblTempUsageDetail_20' ) start [2025-03-14 14:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679457', 'tblTempUsageDetail_20' ) end [2025-03-14 14:29:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 14:29:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 14:29:26] Production.INFO: ==21547== Releasing lock... [2025-03-14 14:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 14:29:26] Production.INFO: 62.75 MB #Memory Used# [2025-03-14 14:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 11:30:06 [end_date_ymd] => 2025-03-14 14:30:06 [RateCDR] => 1 ) [2025-03-14 14:30: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-03-14 11:30:06' and `end` < '2025-03-14 14:30: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-03-14 14:30:19] Production.INFO: count ==4650 [2025-03-14 14:30:21] Production.ERROR: pbx CDR StartTime 2025-03-14 11:30:06 - End Time 2025-03-14 14:30:06 [2025-03-14 14:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 14:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679463', 'tblTempUsageDetail_20' ) start [2025-03-14 14:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679463', 'tblTempUsageDetail_20' ) end [2025-03-14 14:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679463', 'tblTempVendorCDR_20' ) start [2025-03-14 14:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679463', 'tblTempVendorCDR_20' ) end [2025-03-14 14:30:21] Production.INFO: ProcessCDR(1,14679463,1,1,2) [2025-03-14 14:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679463,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679463,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679463', 'tblTempUsageDetail_20' ) start [2025-03-14 14:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679463', 'tblTempUsageDetail_20' ) end [2025-03-14 14:30:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 14:30:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 14:30:26] Production.INFO: ==21620== Releasing lock... [2025-03-14 14:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 14:30:26] Production.INFO: 62.75 MB #Memory Used# [2025-03-14 14:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 11:31:05 [end_date_ymd] => 2025-03-14 14:31:05 [RateCDR] => 1 ) [2025-03-14 14:31: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-03-14 11:31:05' and `end` < '2025-03-14 14:31: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-03-14 14:31:18] Production.INFO: count ==4646 [2025-03-14 14:31:20] Production.ERROR: pbx CDR StartTime 2025-03-14 11:31:05 - End Time 2025-03-14 14:31:05 [2025-03-14 14:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 14:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679468', 'tblTempUsageDetail_20' ) start [2025-03-14 14:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679468', 'tblTempUsageDetail_20' ) end [2025-03-14 14:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679468', 'tblTempVendorCDR_20' ) start [2025-03-14 14:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679468', 'tblTempVendorCDR_20' ) end [2025-03-14 14:31:20] Production.INFO: ProcessCDR(1,14679468,1,1,2) [2025-03-14 14:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679468,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679468,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679468', 'tblTempUsageDetail_20' ) start [2025-03-14 14:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679468', 'tblTempUsageDetail_20' ) end [2025-03-14 14:31:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 14:31:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 14:31:24] Production.INFO: ==21698== Releasing lock... [2025-03-14 14:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 14:31:24] Production.INFO: 62.75 MB #Memory Used# [2025-03-14 14:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 11:32:05 [end_date_ymd] => 2025-03-14 14:32:05 [RateCDR] => 1 ) [2025-03-14 14:32: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-03-14 11:32:05' and `end` < '2025-03-14 14:32: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-03-14 14:32:18] Production.INFO: count ==4665 [2025-03-14 14:32:20] Production.ERROR: pbx CDR StartTime 2025-03-14 11:32:05 - End Time 2025-03-14 14:32:05 [2025-03-14 14:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 14:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679473', 'tblTempUsageDetail_20' ) start [2025-03-14 14:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679473', 'tblTempUsageDetail_20' ) end [2025-03-14 14:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679473', 'tblTempVendorCDR_20' ) start [2025-03-14 14:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679473', 'tblTempVendorCDR_20' ) end [2025-03-14 14:32:20] Production.INFO: ProcessCDR(1,14679473,1,1,2) [2025-03-14 14:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679473,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679473,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679473', 'tblTempUsageDetail_20' ) start [2025-03-14 14:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679473', 'tblTempUsageDetail_20' ) end [2025-03-14 14:32:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 14:32:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 14:32:25] Production.INFO: ==21810== Releasing lock... [2025-03-14 14:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 14:32:25] Production.INFO: 63 MB #Memory Used# [2025-03-14 14:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 11:33:05 [end_date_ymd] => 2025-03-14 14:33:05 [RateCDR] => 1 ) [2025-03-14 14:33: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-03-14 11:33:05' and `end` < '2025-03-14 14:33: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-03-14 14:33:19] Production.INFO: count ==4675 [2025-03-14 14:33:21] Production.ERROR: pbx CDR StartTime 2025-03-14 11:33:05 - End Time 2025-03-14 14:33:05 [2025-03-14 14:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679478', 'tblTempUsageDetail_20' ) start [2025-03-14 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679478', 'tblTempUsageDetail_20' ) end [2025-03-14 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679478', 'tblTempVendorCDR_20' ) start [2025-03-14 14:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679478', 'tblTempVendorCDR_20' ) end [2025-03-14 14:33:21] Production.INFO: ProcessCDR(1,14679478,1,1,2) [2025-03-14 14:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:33:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679478,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:33:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679478,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679478', 'tblTempUsageDetail_20' ) start [2025-03-14 14:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679478', 'tblTempUsageDetail_20' ) end [2025-03-14 14:33:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 14:33:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 14:33:26] Production.INFO: ==21888== Releasing lock... [2025-03-14 14:33:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 14:33:26] Production.INFO: 63 MB #Memory Used# [2025-03-14 14:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 11:34:05 [end_date_ymd] => 2025-03-14 14:34:05 [RateCDR] => 1 ) [2025-03-14 14:34: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-03-14 11:34:05' and `end` < '2025-03-14 14:34: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-03-14 14:34:19] Production.INFO: count ==4698 [2025-03-14 14:34:20] Production.ERROR: pbx CDR StartTime 2025-03-14 11:34:05 - End Time 2025-03-14 14:34:05 [2025-03-14 14:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 14:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679483', 'tblTempUsageDetail_20' ) start [2025-03-14 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679483', 'tblTempUsageDetail_20' ) end [2025-03-14 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679483', 'tblTempVendorCDR_20' ) start [2025-03-14 14:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679483', 'tblTempVendorCDR_20' ) end [2025-03-14 14:34:21] Production.INFO: ProcessCDR(1,14679483,1,1,2) [2025-03-14 14:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679483', 'tblTempUsageDetail_20' ) start [2025-03-14 14:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679483', 'tblTempUsageDetail_20' ) end [2025-03-14 14:34:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 14:34:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 14:34:26] Production.INFO: ==21967== Releasing lock... [2025-03-14 14:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 14:34:26] Production.INFO: 63.25 MB #Memory Used# [2025-03-14 14:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 11:35:05 [end_date_ymd] => 2025-03-14 14:35:05 [RateCDR] => 1 ) [2025-03-14 14:35: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-03-14 11:35:05' and `end` < '2025-03-14 14:35: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-03-14 14:35:19] Production.INFO: count ==4702 [2025-03-14 14:35:20] Production.ERROR: pbx CDR StartTime 2025-03-14 11:35:05 - End Time 2025-03-14 14:35:05 [2025-03-14 14:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 14:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679488', 'tblTempUsageDetail_20' ) start [2025-03-14 14:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679488', 'tblTempUsageDetail_20' ) end [2025-03-14 14:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679488', 'tblTempVendorCDR_20' ) start [2025-03-14 14:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679488', 'tblTempVendorCDR_20' ) end [2025-03-14 14:35:20] Production.INFO: ProcessCDR(1,14679488,1,1,2) [2025-03-14 14:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:35:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:35:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:35:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679488', 'tblTempUsageDetail_20' ) start [2025-03-14 14:35:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679488', 'tblTempUsageDetail_20' ) end [2025-03-14 14:35:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 14:35:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 14:35:25] Production.INFO: ==22039== Releasing lock... [2025-03-14 14:35:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 14:35:25] Production.INFO: 63.25 MB #Memory Used# [2025-03-14 14:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 11:36:05 [end_date_ymd] => 2025-03-14 14:36:05 [RateCDR] => 1 ) [2025-03-14 14:36: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-03-14 11:36:05' and `end` < '2025-03-14 14:36: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-03-14 14:36:18] Production.INFO: count ==4702 [2025-03-14 14:36:20] Production.ERROR: pbx CDR StartTime 2025-03-14 11:36:05 - End Time 2025-03-14 14:36:05 [2025-03-14 14:36:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 14:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679493', 'tblTempUsageDetail_20' ) start [2025-03-14 14:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679493', 'tblTempUsageDetail_20' ) end [2025-03-14 14:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679493', 'tblTempVendorCDR_20' ) start [2025-03-14 14:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679493', 'tblTempVendorCDR_20' ) end [2025-03-14 14:36:20] Production.INFO: ProcessCDR(1,14679493,1,1,2) [2025-03-14 14:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679493', 'tblTempUsageDetail_20' ) start [2025-03-14 14:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679493', 'tblTempUsageDetail_20' ) end [2025-03-14 14:36:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 14:36:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 14:36:25] Production.INFO: ==22109== Releasing lock... [2025-03-14 14:36:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 14:36:25] Production.INFO: 63.25 MB #Memory Used# [2025-03-14 14:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 11:37:06 [end_date_ymd] => 2025-03-14 14:37:06 [RateCDR] => 1 ) [2025-03-14 14:37: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-03-14 11:37:06' and `end` < '2025-03-14 14:37: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-03-14 14:37:19] Production.INFO: count ==4711 [2025-03-14 14:37:21] Production.ERROR: pbx CDR StartTime 2025-03-14 11:37:06 - End Time 2025-03-14 14:37:06 [2025-03-14 14:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 14:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679498', 'tblTempUsageDetail_20' ) start [2025-03-14 14:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679498', 'tblTempUsageDetail_20' ) end [2025-03-14 14:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679498', 'tblTempVendorCDR_20' ) start [2025-03-14 14:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679498', 'tblTempVendorCDR_20' ) end [2025-03-14 14:37:21] Production.INFO: ProcessCDR(1,14679498,1,1,2) [2025-03-14 14:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679498', 'tblTempUsageDetail_20' ) start [2025-03-14 14:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679498', 'tblTempUsageDetail_20' ) end [2025-03-14 14:37:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 14:37:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 14:37:26] Production.INFO: ==22188== Releasing lock... [2025-03-14 14:37:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 14:37:26] Production.INFO: 63.25 MB #Memory Used# [2025-03-14 14:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 11:38:05 [end_date_ymd] => 2025-03-14 14:38:05 [RateCDR] => 1 ) [2025-03-14 14:38: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-03-14 11:38:05' and `end` < '2025-03-14 14:38: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-03-14 14:38:18] Production.INFO: count ==4702 [2025-03-14 14:38:20] Production.ERROR: pbx CDR StartTime 2025-03-14 11:38:05 - End Time 2025-03-14 14:38:05 [2025-03-14 14:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 14:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679503', 'tblTempUsageDetail_20' ) start [2025-03-14 14:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679503', 'tblTempUsageDetail_20' ) end [2025-03-14 14:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679503', 'tblTempVendorCDR_20' ) start [2025-03-14 14:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679503', 'tblTempVendorCDR_20' ) end [2025-03-14 14:38:20] Production.INFO: ProcessCDR(1,14679503,1,1,2) [2025-03-14 14:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:38:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:38:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679503', 'tblTempUsageDetail_20' ) start [2025-03-14 14:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679503', 'tblTempUsageDetail_20' ) end [2025-03-14 14:38:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 14:38:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 14:38:25] Production.INFO: ==22261== Releasing lock... [2025-03-14 14:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 14:38:25] Production.INFO: 63.25 MB #Memory Used# [2025-03-14 14:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 11:39:05 [end_date_ymd] => 2025-03-14 14:39:05 [RateCDR] => 1 ) [2025-03-14 14:39: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-03-14 11:39:05' and `end` < '2025-03-14 14:39: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-03-14 14:39:19] Production.INFO: count ==4694 [2025-03-14 14:39:20] Production.ERROR: pbx CDR StartTime 2025-03-14 11:39:05 - End Time 2025-03-14 14:39:05 [2025-03-14 14:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 14:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679508', 'tblTempUsageDetail_20' ) start [2025-03-14 14:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679508', 'tblTempUsageDetail_20' ) end [2025-03-14 14:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679508', 'tblTempVendorCDR_20' ) start [2025-03-14 14:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679508', 'tblTempVendorCDR_20' ) end [2025-03-14 14:39:20] Production.INFO: ProcessCDR(1,14679508,1,1,2) [2025-03-14 14:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679508', 'tblTempUsageDetail_20' ) start [2025-03-14 14:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679508', 'tblTempUsageDetail_20' ) end [2025-03-14 14:39:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 14:39:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 14:39:26] Production.INFO: ==22334== Releasing lock... [2025-03-14 14:39:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 14:39:26] Production.INFO: 63.25 MB #Memory Used# [2025-03-14 14:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 11:40:06 [end_date_ymd] => 2025-03-14 14:40:06 [RateCDR] => 1 ) [2025-03-14 14:40: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-03-14 11:40:06' and `end` < '2025-03-14 14:40: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-03-14 14:40:19] Production.INFO: count ==4718 [2025-03-14 14:40:21] Production.ERROR: pbx CDR StartTime 2025-03-14 11:40:06 - End Time 2025-03-14 14:40:06 [2025-03-14 14:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 14:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679514', 'tblTempUsageDetail_20' ) start [2025-03-14 14:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679514', 'tblTempUsageDetail_20' ) end [2025-03-14 14:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679514', 'tblTempVendorCDR_20' ) start [2025-03-14 14:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679514', 'tblTempVendorCDR_20' ) end [2025-03-14 14:40:21] Production.INFO: ProcessCDR(1,14679514,1,1,2) [2025-03-14 14:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679514,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679514,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679514', 'tblTempUsageDetail_20' ) start [2025-03-14 14:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679514', 'tblTempUsageDetail_20' ) end [2025-03-14 14:40:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 14:40:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 14:40:26] Production.INFO: ==22415== Releasing lock... [2025-03-14 14:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 14:40:26] Production.INFO: 63.25 MB #Memory Used# [2025-03-14 14:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 11:41:05 [end_date_ymd] => 2025-03-14 14:41:05 [RateCDR] => 1 ) [2025-03-14 14:41: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-03-14 11:41:05' and `end` < '2025-03-14 14:41: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-03-14 14:41:19] Production.INFO: count ==4718 [2025-03-14 14:41:20] Production.ERROR: pbx CDR StartTime 2025-03-14 11:41:05 - End Time 2025-03-14 14:41:05 [2025-03-14 14:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 14:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679519', 'tblTempUsageDetail_20' ) start [2025-03-14 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679519', 'tblTempUsageDetail_20' ) end [2025-03-14 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679519', 'tblTempVendorCDR_20' ) start [2025-03-14 14:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679519', 'tblTempVendorCDR_20' ) end [2025-03-14 14:41:21] Production.INFO: ProcessCDR(1,14679519,1,1,2) [2025-03-14 14:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679519,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679519,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679519', 'tblTempUsageDetail_20' ) start [2025-03-14 14:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679519', 'tblTempUsageDetail_20' ) end [2025-03-14 14:41:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 14:41:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 14:41:26] Production.INFO: ==22492== Releasing lock... [2025-03-14 14:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 14:41:26] Production.INFO: 63.25 MB #Memory Used# [2025-03-14 14:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 11:42:05 [end_date_ymd] => 2025-03-14 14:42:05 [RateCDR] => 1 ) [2025-03-14 14:42: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-03-14 11:42:05' and `end` < '2025-03-14 14:42: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-03-14 14:42:18] Production.INFO: count ==4718 [2025-03-14 14:42:20] Production.ERROR: pbx CDR StartTime 2025-03-14 11:42:05 - End Time 2025-03-14 14:42:05 [2025-03-14 14:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 14:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679524', 'tblTempUsageDetail_20' ) start [2025-03-14 14:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679524', 'tblTempUsageDetail_20' ) end [2025-03-14 14:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679524', 'tblTempVendorCDR_20' ) start [2025-03-14 14:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679524', 'tblTempVendorCDR_20' ) end [2025-03-14 14:42:20] Production.INFO: ProcessCDR(1,14679524,1,1,2) [2025-03-14 14:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679524,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:42:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679524,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679524', 'tblTempUsageDetail_20' ) start [2025-03-14 14:42:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679524', 'tblTempUsageDetail_20' ) end [2025-03-14 14:42:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 14:42:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 14:42:25] Production.INFO: ==22562== Releasing lock... [2025-03-14 14:42:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 14:42:25] Production.INFO: 63.25 MB #Memory Used# [2025-03-14 14:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 11:43:05 [end_date_ymd] => 2025-03-14 14:43:05 [RateCDR] => 1 ) [2025-03-14 14:43: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-03-14 11:43:05' and `end` < '2025-03-14 14:43: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-03-14 14:43:19] Production.INFO: count ==4719 [2025-03-14 14:43:20] Production.ERROR: pbx CDR StartTime 2025-03-14 11:43:05 - End Time 2025-03-14 14:43:05 [2025-03-14 14:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 14:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679529', 'tblTempUsageDetail_20' ) start [2025-03-14 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679529', 'tblTempUsageDetail_20' ) end [2025-03-14 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679529', 'tblTempVendorCDR_20' ) start [2025-03-14 14:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679529', 'tblTempVendorCDR_20' ) end [2025-03-14 14:43:21] Production.INFO: ProcessCDR(1,14679529,1,1,2) [2025-03-14 14:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:43:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679529,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:43:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:43:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679529,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679529', 'tblTempUsageDetail_20' ) start [2025-03-14 14:43:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679529', 'tblTempUsageDetail_20' ) end [2025-03-14 14:43:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 14:43:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 14:43:25] Production.INFO: ==22636== Releasing lock... [2025-03-14 14:43:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 14:43:25] Production.INFO: 63.25 MB #Memory Used# [2025-03-14 14:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 11:44:05 [end_date_ymd] => 2025-03-14 14:44:05 [RateCDR] => 1 ) [2025-03-14 14:44: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-03-14 11:44:05' and `end` < '2025-03-14 14:44: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-03-14 14:44:18] Production.INFO: count ==4722 [2025-03-14 14:44:20] Production.ERROR: pbx CDR StartTime 2025-03-14 11:44:05 - End Time 2025-03-14 14:44:05 [2025-03-14 14:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 14:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679534', 'tblTempUsageDetail_20' ) start [2025-03-14 14:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679534', 'tblTempUsageDetail_20' ) end [2025-03-14 14:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679534', 'tblTempVendorCDR_20' ) start [2025-03-14 14:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679534', 'tblTempVendorCDR_20' ) end [2025-03-14 14:44:20] Production.INFO: ProcessCDR(1,14679534,1,1,2) [2025-03-14 14:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679534', 'tblTempUsageDetail_20' ) start [2025-03-14 14:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679534', 'tblTempUsageDetail_20' ) end [2025-03-14 14:44:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 14:44:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 14:44:25] Production.INFO: ==22713== Releasing lock... [2025-03-14 14:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 14:44:25] Production.INFO: 63.25 MB #Memory Used# [2025-03-14 14:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 11:45:05 [end_date_ymd] => 2025-03-14 14:45:05 [RateCDR] => 1 ) [2025-03-14 14:45: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-03-14 11:45:05' and `end` < '2025-03-14 14:45: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-03-14 14:45:18] Production.INFO: count ==4718 [2025-03-14 14:45:20] Production.ERROR: pbx CDR StartTime 2025-03-14 11:45:05 - End Time 2025-03-14 14:45:05 [2025-03-14 14:45:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 14:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679539', 'tblTempUsageDetail_20' ) start [2025-03-14 14:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679539', 'tblTempUsageDetail_20' ) end [2025-03-14 14:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679539', 'tblTempVendorCDR_20' ) start [2025-03-14 14:45:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679539', 'tblTempVendorCDR_20' ) end [2025-03-14 14:45:20] Production.INFO: ProcessCDR(1,14679539,1,1,2) [2025-03-14 14:45:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:45:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:45:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:45:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:45:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679539', 'tblTempUsageDetail_20' ) start [2025-03-14 14:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679539', 'tblTempUsageDetail_20' ) end [2025-03-14 14:45:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 14:45:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 14:45:26] Production.INFO: ==22789== Releasing lock... [2025-03-14 14:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 14:45:26] Production.INFO: 63.25 MB #Memory Used# [2025-03-14 14:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 11:46:06 [end_date_ymd] => 2025-03-14 14:46:06 [RateCDR] => 1 ) [2025-03-14 14:46: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-03-14 11:46:06' and `end` < '2025-03-14 14:46: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-03-14 14:46:19] Production.INFO: count ==4709 [2025-03-14 14:46:21] Production.ERROR: pbx CDR StartTime 2025-03-14 11:46:06 - End Time 2025-03-14 14:46:06 [2025-03-14 14:46:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679544', 'tblTempUsageDetail_20' ) start [2025-03-14 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679544', 'tblTempUsageDetail_20' ) end [2025-03-14 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679544', 'tblTempVendorCDR_20' ) start [2025-03-14 14:46:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679544', 'tblTempVendorCDR_20' ) end [2025-03-14 14:46:21] Production.INFO: ProcessCDR(1,14679544,1,1,2) [2025-03-14 14:46:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:46:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:46:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:46:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679544', 'tblTempUsageDetail_20' ) start [2025-03-14 14:46:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679544', 'tblTempUsageDetail_20' ) end [2025-03-14 14:46:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 14:46:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 14:46:26] Production.INFO: ==22895== Releasing lock... [2025-03-14 14:46:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 14:46:26] Production.INFO: 63.25 MB #Memory Used# [2025-03-14 14:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 11:47:06 [end_date_ymd] => 2025-03-14 14:47:06 [RateCDR] => 1 ) [2025-03-14 14:47: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-03-14 11:47:06' and `end` < '2025-03-14 14:47: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-03-14 14:47:19] Production.INFO: count ==4703 [2025-03-14 14:47:21] Production.ERROR: pbx CDR StartTime 2025-03-14 11:47:06 - End Time 2025-03-14 14:47:06 [2025-03-14 14:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679549', 'tblTempUsageDetail_20' ) start [2025-03-14 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679549', 'tblTempUsageDetail_20' ) end [2025-03-14 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679549', 'tblTempVendorCDR_20' ) start [2025-03-14 14:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679549', 'tblTempVendorCDR_20' ) end [2025-03-14 14:47:21] Production.INFO: ProcessCDR(1,14679549,1,1,2) [2025-03-14 14:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679549', 'tblTempUsageDetail_20' ) start [2025-03-14 14:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679549', 'tblTempUsageDetail_20' ) end [2025-03-14 14:47:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 14:47:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 14:47:26] Production.INFO: ==23012== Releasing lock... [2025-03-14 14:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 14:47:26] Production.INFO: 63.25 MB #Memory Used# [2025-03-14 14:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 11:48:06 [end_date_ymd] => 2025-03-14 14:48:06 [RateCDR] => 1 ) [2025-03-14 14:48: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-03-14 11:48:06' and `end` < '2025-03-14 14:48: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-03-14 14:48:19] Production.INFO: count ==4694 [2025-03-14 14:48:20] Production.ERROR: pbx CDR StartTime 2025-03-14 11:48:06 - End Time 2025-03-14 14:48:06 [2025-03-14 14:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 14:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679554', 'tblTempUsageDetail_20' ) start [2025-03-14 14:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679554', 'tblTempUsageDetail_20' ) end [2025-03-14 14:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679554', 'tblTempVendorCDR_20' ) start [2025-03-14 14:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679554', 'tblTempVendorCDR_20' ) end [2025-03-14 14:48:21] Production.INFO: ProcessCDR(1,14679554,1,1,2) [2025-03-14 14:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:48:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:48:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679554', 'tblTempUsageDetail_20' ) start [2025-03-14 14:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679554', 'tblTempUsageDetail_20' ) end [2025-03-14 14:48:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 14:48:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 14:48:26] Production.INFO: ==23160== Releasing lock... [2025-03-14 14:48:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 14:48:26] Production.INFO: 63.5 MB #Memory Used# [2025-03-14 14:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 11:49:05 [end_date_ymd] => 2025-03-14 14:49:05 [RateCDR] => 1 ) [2025-03-14 14:49: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-03-14 11:49:05' and `end` < '2025-03-14 14:49: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-03-14 14:49:18] Production.INFO: count ==4714 [2025-03-14 14:49:20] Production.ERROR: pbx CDR StartTime 2025-03-14 11:49:05 - End Time 2025-03-14 14:49:05 [2025-03-14 14:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 14:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679559', 'tblTempUsageDetail_20' ) start [2025-03-14 14:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679559', 'tblTempUsageDetail_20' ) end [2025-03-14 14:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679559', 'tblTempVendorCDR_20' ) start [2025-03-14 14:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679559', 'tblTempVendorCDR_20' ) end [2025-03-14 14:49:20] Production.INFO: ProcessCDR(1,14679559,1,1,2) [2025-03-14 14:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679559', 'tblTempUsageDetail_20' ) start [2025-03-14 14:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679559', 'tblTempUsageDetail_20' ) end [2025-03-14 14:49:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 14:49:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 14:49:26] Production.INFO: ==23269== Releasing lock... [2025-03-14 14:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 14:49:26] Production.INFO: 63.25 MB #Memory Used# [2025-03-14 14:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 11:50:06 [end_date_ymd] => 2025-03-14 14:50:06 [RateCDR] => 1 ) [2025-03-14 14:50: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-03-14 11:50:06' and `end` < '2025-03-14 14:50: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-03-14 14:50:20] Production.INFO: count ==4725 [2025-03-14 14:50:22] Production.ERROR: pbx CDR StartTime 2025-03-14 11:50:06 - End Time 2025-03-14 14:50:06 [2025-03-14 14:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679565', 'tblTempUsageDetail_20' ) start [2025-03-14 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679565', 'tblTempUsageDetail_20' ) end [2025-03-14 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679565', 'tblTempVendorCDR_20' ) start [2025-03-14 14:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679565', 'tblTempVendorCDR_20' ) end [2025-03-14 14:50:22] Production.INFO: ProcessCDR(1,14679565,1,1,2) [2025-03-14 14:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679565,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679565,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679565', 'tblTempUsageDetail_20' ) start [2025-03-14 14:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679565', 'tblTempUsageDetail_20' ) end [2025-03-14 14:50:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 14:50:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 14:50:27] Production.INFO: ==23387== Releasing lock... [2025-03-14 14:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 14:50:27] Production.INFO: 63.5 MB #Memory Used# [2025-03-14 14:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 11:51:05 [end_date_ymd] => 2025-03-14 14:51:05 [RateCDR] => 1 ) [2025-03-14 14:51: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-03-14 11:51:05' and `end` < '2025-03-14 14:51: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-03-14 14:51:19] Production.INFO: count ==4741 [2025-03-14 14:51:21] Production.ERROR: pbx CDR StartTime 2025-03-14 11:51:05 - End Time 2025-03-14 14:51:05 [2025-03-14 14:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679570', 'tblTempUsageDetail_20' ) start [2025-03-14 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679570', 'tblTempUsageDetail_20' ) end [2025-03-14 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679570', 'tblTempVendorCDR_20' ) start [2025-03-14 14:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679570', 'tblTempVendorCDR_20' ) end [2025-03-14 14:51:21] Production.INFO: ProcessCDR(1,14679570,1,1,2) [2025-03-14 14:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679570,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:51:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679570,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679570', 'tblTempUsageDetail_20' ) start [2025-03-14 14:51:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679570', 'tblTempUsageDetail_20' ) end [2025-03-14 14:51:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 14:51:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 14:51:26] Production.INFO: ==23500== Releasing lock... [2025-03-14 14:51:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 14:51:26] Production.INFO: 63.5 MB #Memory Used# [2025-03-14 14:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 11:52:05 [end_date_ymd] => 2025-03-14 14:52:05 [RateCDR] => 1 ) [2025-03-14 14:52: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-03-14 11:52:05' and `end` < '2025-03-14 14:52: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-03-14 14:52:19] Production.INFO: count ==4743 [2025-03-14 14:52:21] Production.ERROR: pbx CDR StartTime 2025-03-14 11:52:05 - End Time 2025-03-14 14:52:05 [2025-03-14 14:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679575', 'tblTempUsageDetail_20' ) start [2025-03-14 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679575', 'tblTempUsageDetail_20' ) end [2025-03-14 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679575', 'tblTempVendorCDR_20' ) start [2025-03-14 14:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679575', 'tblTempVendorCDR_20' ) end [2025-03-14 14:52:21] Production.INFO: ProcessCDR(1,14679575,1,1,2) [2025-03-14 14:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679575,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679575,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679575', 'tblTempUsageDetail_20' ) start [2025-03-14 14:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679575', 'tblTempUsageDetail_20' ) end [2025-03-14 14:52:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 14:52:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 14:52:26] Production.INFO: ==23611== Releasing lock... [2025-03-14 14:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 14:52:26] Production.INFO: 63.5 MB #Memory Used# [2025-03-14 14:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 11:53:05 [end_date_ymd] => 2025-03-14 14:53:05 [RateCDR] => 1 ) [2025-03-14 14:53: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-03-14 11:53:05' and `end` < '2025-03-14 14:53: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-03-14 14:53:18] Production.INFO: count ==4735 [2025-03-14 14:53:20] Production.ERROR: pbx CDR StartTime 2025-03-14 11:53:05 - End Time 2025-03-14 14:53:05 [2025-03-14 14:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 14:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679580', 'tblTempUsageDetail_20' ) start [2025-03-14 14:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679580', 'tblTempUsageDetail_20' ) end [2025-03-14 14:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679580', 'tblTempVendorCDR_20' ) start [2025-03-14 14:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679580', 'tblTempVendorCDR_20' ) end [2025-03-14 14:53:20] Production.INFO: ProcessCDR(1,14679580,1,1,2) [2025-03-14 14:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:53:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679580,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:53:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:53:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679580,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:53:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679580', 'tblTempUsageDetail_20' ) start [2025-03-14 14:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679580', 'tblTempUsageDetail_20' ) end [2025-03-14 14:53:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 14:53:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 14:53:26] Production.INFO: ==23722== Releasing lock... [2025-03-14 14:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 14:53:26] Production.INFO: 63.5 MB #Memory Used# [2025-03-14 14:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 11:54:06 [end_date_ymd] => 2025-03-14 14:54:06 [RateCDR] => 1 ) [2025-03-14 14:54: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-03-14 11:54:06' and `end` < '2025-03-14 14:54: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-03-14 14:54:19] Production.INFO: count ==4742 [2025-03-14 14:54:21] Production.ERROR: pbx CDR StartTime 2025-03-14 11:54:06 - End Time 2025-03-14 14:54:06 [2025-03-14 14:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 14:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679585', 'tblTempUsageDetail_20' ) start [2025-03-14 14:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679585', 'tblTempUsageDetail_20' ) end [2025-03-14 14:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679585', 'tblTempVendorCDR_20' ) start [2025-03-14 14:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679585', 'tblTempVendorCDR_20' ) end [2025-03-14 14:54:21] Production.INFO: ProcessCDR(1,14679585,1,1,2) [2025-03-14 14:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679585', 'tblTempUsageDetail_20' ) start [2025-03-14 14:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679585', 'tblTempUsageDetail_20' ) end [2025-03-14 14:54:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 14:54:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 14:54:26] Production.INFO: ==23835== Releasing lock... [2025-03-14 14:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 14:54:26] Production.INFO: 63.5 MB #Memory Used# [2025-03-14 14:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 11:55:05 [end_date_ymd] => 2025-03-14 14:55:05 [RateCDR] => 1 ) [2025-03-14 14:55: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-03-14 11:55:05' and `end` < '2025-03-14 14:55: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-03-14 14:55:18] Production.INFO: count ==4734 [2025-03-14 14:55:20] Production.ERROR: pbx CDR StartTime 2025-03-14 11:55:05 - End Time 2025-03-14 14:55:05 [2025-03-14 14:55:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 14:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679590', 'tblTempUsageDetail_20' ) start [2025-03-14 14:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679590', 'tblTempUsageDetail_20' ) end [2025-03-14 14:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679590', 'tblTempVendorCDR_20' ) start [2025-03-14 14:55:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679590', 'tblTempVendorCDR_20' ) end [2025-03-14 14:55:20] Production.INFO: ProcessCDR(1,14679590,1,1,2) [2025-03-14 14:55:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:55:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679590', 'tblTempUsageDetail_20' ) start [2025-03-14 14:55:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679590', 'tblTempUsageDetail_20' ) end [2025-03-14 14:55:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 14:55:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 14:55:26] Production.INFO: ==23949== Releasing lock... [2025-03-14 14:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 14:55:26] Production.INFO: 63.5 MB #Memory Used# [2025-03-14 14:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 11:56:06 [end_date_ymd] => 2025-03-14 14:56:06 [RateCDR] => 1 ) [2025-03-14 14:56: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-03-14 11:56:06' and `end` < '2025-03-14 14:56: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-03-14 14:56:20] Production.INFO: count ==4716 [2025-03-14 14:56:22] Production.ERROR: pbx CDR StartTime 2025-03-14 11:56:06 - End Time 2025-03-14 14:56:06 [2025-03-14 14:56:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 14:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679595', 'tblTempUsageDetail_20' ) start [2025-03-14 14:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679595', 'tblTempUsageDetail_20' ) end [2025-03-14 14:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679595', 'tblTempVendorCDR_20' ) start [2025-03-14 14:56:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679595', 'tblTempVendorCDR_20' ) end [2025-03-14 14:56:22] Production.INFO: ProcessCDR(1,14679595,1,1,2) [2025-03-14 14:56:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679595', 'tblTempUsageDetail_20' ) start [2025-03-14 14:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679595', 'tblTempUsageDetail_20' ) end [2025-03-14 14:56:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 14:56:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 14:56:26] Production.INFO: ==24065== Releasing lock... [2025-03-14 14:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 14:56:26] Production.INFO: 63.25 MB #Memory Used# [2025-03-14 14:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 11:57:05 [end_date_ymd] => 2025-03-14 14:57:05 [RateCDR] => 1 ) [2025-03-14 14:57: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-03-14 11:57:05' and `end` < '2025-03-14 14:57: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-03-14 14:57:19] Production.INFO: count ==4711 [2025-03-14 14:57:21] Production.ERROR: pbx CDR StartTime 2025-03-14 11:57:05 - End Time 2025-03-14 14:57:05 [2025-03-14 14:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679600', 'tblTempUsageDetail_20' ) start [2025-03-14 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679600', 'tblTempUsageDetail_20' ) end [2025-03-14 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679600', 'tblTempVendorCDR_20' ) start [2025-03-14 14:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679600', 'tblTempVendorCDR_20' ) end [2025-03-14 14:57:21] Production.INFO: ProcessCDR(1,14679600,1,1,2) [2025-03-14 14:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679600', 'tblTempUsageDetail_20' ) start [2025-03-14 14:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679600', 'tblTempUsageDetail_20' ) end [2025-03-14 14:57:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 14:57:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 14:57:24] Production.INFO: ==24175== Releasing lock... [2025-03-14 14:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 14:57:24] Production.INFO: 63.25 MB #Memory Used# [2025-03-14 14:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 11:58:06 [end_date_ymd] => 2025-03-14 14:58:06 [RateCDR] => 1 ) [2025-03-14 14:58: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-03-14 11:58:06' and `end` < '2025-03-14 14:58: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-03-14 14:58:19] Production.INFO: count ==4701 [2025-03-14 14:58:21] Production.ERROR: pbx CDR StartTime 2025-03-14 11:58:06 - End Time 2025-03-14 14:58:06 [2025-03-14 14:58:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679604', 'tblTempUsageDetail_20' ) start [2025-03-14 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679604', 'tblTempUsageDetail_20' ) end [2025-03-14 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679604', 'tblTempVendorCDR_20' ) start [2025-03-14 14:58:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679604', 'tblTempVendorCDR_20' ) end [2025-03-14 14:58:21] Production.INFO: ProcessCDR(1,14679604,1,1,2) [2025-03-14 14:58:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679604', 'tblTempUsageDetail_20' ) start [2025-03-14 14:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679604', 'tblTempUsageDetail_20' ) end [2025-03-14 14:58:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 14:58:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 14:58:25] Production.INFO: ==24273== Releasing lock... [2025-03-14 14:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 14:58:25] Production.INFO: 63.25 MB #Memory Used# [2025-03-14 14:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 11:59:05 [end_date_ymd] => 2025-03-14 14:59:05 [RateCDR] => 1 ) [2025-03-14 14:59: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-03-14 11:59:05' and `end` < '2025-03-14 14:59: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-03-14 14:59:18] Production.INFO: count ==4704 [2025-03-14 14:59:20] Production.ERROR: pbx CDR StartTime 2025-03-14 11:59:05 - End Time 2025-03-14 14:59:05 [2025-03-14 14:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 14:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679610', 'tblTempUsageDetail_20' ) start [2025-03-14 14:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679610', 'tblTempUsageDetail_20' ) end [2025-03-14 14:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679610', 'tblTempVendorCDR_20' ) start [2025-03-14 14:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679610', 'tblTempVendorCDR_20' ) end [2025-03-14 14:59:20] Production.INFO: ProcessCDR(1,14679610,1,1,2) [2025-03-14 14:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 14:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 14:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679610', 'tblTempUsageDetail_20' ) start [2025-03-14 14:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679610', 'tblTempUsageDetail_20' ) end [2025-03-14 14:59:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 14:59:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 14:59:25] Production.INFO: ==24349== Releasing lock... [2025-03-14 14:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 14:59:25] Production.INFO: 63.25 MB #Memory Used# [2025-03-14 15:00:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 12:00:07 [end_date_ymd] => 2025-03-14 15:00:07 [RateCDR] => 1 ) [2025-03-14 15:00:07] 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-03-14 12:00:07' and `end` < '2025-03-14 15:00:07' 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-03-14 15:00:19] Production.INFO: count ==4704 [2025-03-14 15:00:21] Production.ERROR: pbx CDR StartTime 2025-03-14 12:00:07 - End Time 2025-03-14 15:00:07 [2025-03-14 15:00:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 15:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679615', 'tblTempUsageDetail_20' ) start [2025-03-14 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679615', 'tblTempUsageDetail_20' ) end [2025-03-14 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679615', 'tblTempVendorCDR_20' ) start [2025-03-14 15:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679615', 'tblTempVendorCDR_20' ) end [2025-03-14 15:00:22] Production.INFO: ProcessCDR(1,14679615,1,1,2) [2025-03-14 15:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:00:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:00:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679615', 'tblTempUsageDetail_20' ) start [2025-03-14 15:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679615', 'tblTempUsageDetail_20' ) end [2025-03-14 15:00:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 15:00:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 15:00:27] Production.INFO: ==24424== Releasing lock... [2025-03-14 15:00:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 15:00:27] Production.INFO: 63.25 MB #Memory Used# [2025-03-14 15:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 12:01:05 [end_date_ymd] => 2025-03-14 15:01:05 [RateCDR] => 1 ) [2025-03-14 15:01: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-03-14 12:01:05' and `end` < '2025-03-14 15:01: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-03-14 15:01:18] Production.INFO: count ==4678 [2025-03-14 15:01:20] Production.ERROR: pbx CDR StartTime 2025-03-14 12:01:05 - End Time 2025-03-14 15:01:05 [2025-03-14 15:01:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 15:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679621', 'tblTempUsageDetail_20' ) start [2025-03-14 15:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679621', 'tblTempUsageDetail_20' ) end [2025-03-14 15:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679621', 'tblTempVendorCDR_20' ) start [2025-03-14 15:01:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679621', 'tblTempVendorCDR_20' ) end [2025-03-14 15:01:20] Production.INFO: ProcessCDR(1,14679621,1,1,2) [2025-03-14 15:01:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679621,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:01:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679621,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679621', 'tblTempUsageDetail_20' ) start [2025-03-14 15:01:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679621', 'tblTempUsageDetail_20' ) end [2025-03-14 15:01:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 15:01:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 15:01:25] Production.INFO: ==24510== Releasing lock... [2025-03-14 15:01:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 15:01:25] Production.INFO: 63 MB #Memory Used# [2025-03-14 15:02:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 12:02:06 [end_date_ymd] => 2025-03-14 15:02:06 [RateCDR] => 1 ) [2025-03-14 15:02: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-03-14 12:02:06' and `end` < '2025-03-14 15:02: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-03-14 15:02:19] Production.INFO: count ==4681 [2025-03-14 15:02:21] Production.ERROR: pbx CDR StartTime 2025-03-14 12:02:06 - End Time 2025-03-14 15:02:06 [2025-03-14 15:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 15:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679626', 'tblTempUsageDetail_20' ) start [2025-03-14 15:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679626', 'tblTempUsageDetail_20' ) end [2025-03-14 15:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679626', 'tblTempVendorCDR_20' ) start [2025-03-14 15:02:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679626', 'tblTempVendorCDR_20' ) end [2025-03-14 15:02:22] Production.INFO: ProcessCDR(1,14679626,1,1,2) [2025-03-14 15:02:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679626,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679626,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679626', 'tblTempUsageDetail_20' ) start [2025-03-14 15:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679626', 'tblTempUsageDetail_20' ) end [2025-03-14 15:02:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 15:02:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 15:02:25] Production.INFO: ==24664== Releasing lock... [2025-03-14 15:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 15:02:25] Production.INFO: 63 MB #Memory Used# [2025-03-14 15:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 12:03:05 [end_date_ymd] => 2025-03-14 15:03:05 [RateCDR] => 1 ) [2025-03-14 15:03: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-03-14 12:03:05' and `end` < '2025-03-14 15:03: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-03-14 15:03:18] Production.INFO: count ==4669 [2025-03-14 15:03:20] Production.ERROR: pbx CDR StartTime 2025-03-14 12:03:05 - End Time 2025-03-14 15:03:05 [2025-03-14 15:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 15:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679631', 'tblTempUsageDetail_20' ) start [2025-03-14 15:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679631', 'tblTempUsageDetail_20' ) end [2025-03-14 15:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679631', 'tblTempVendorCDR_20' ) start [2025-03-14 15:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679631', 'tblTempVendorCDR_20' ) end [2025-03-14 15:03:21] Production.INFO: ProcessCDR(1,14679631,1,1,2) [2025-03-14 15:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679631,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679631,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679631', 'tblTempUsageDetail_20' ) start [2025-03-14 15:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679631', 'tblTempUsageDetail_20' ) end [2025-03-14 15:03:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 15:03:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 15:03:26] Production.INFO: ==24781== Releasing lock... [2025-03-14 15:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 15:03:26] Production.INFO: 63 MB #Memory Used# [2025-03-14 15:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 12:04:06 [end_date_ymd] => 2025-03-14 15:04:06 [RateCDR] => 1 ) [2025-03-14 15:04: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-03-14 12:04:06' and `end` < '2025-03-14 15:04: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-03-14 15:04:19] Production.INFO: count ==4659 [2025-03-14 15:04:21] Production.ERROR: pbx CDR StartTime 2025-03-14 12:04:06 - End Time 2025-03-14 15:04:06 [2025-03-14 15:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 15:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679636', 'tblTempUsageDetail_20' ) start [2025-03-14 15:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679636', 'tblTempUsageDetail_20' ) end [2025-03-14 15:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679636', 'tblTempVendorCDR_20' ) start [2025-03-14 15:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679636', 'tblTempVendorCDR_20' ) end [2025-03-14 15:04:21] Production.INFO: ProcessCDR(1,14679636,1,1,2) [2025-03-14 15:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:04:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:04:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:04:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679636', 'tblTempUsageDetail_20' ) start [2025-03-14 15:04:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679636', 'tblTempUsageDetail_20' ) end [2025-03-14 15:04:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 15:04:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 15:04:25] Production.INFO: ==24857== Releasing lock... [2025-03-14 15:04:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 15:04:25] Production.INFO: 62.75 MB #Memory Used# [2025-03-14 15:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 12:05:06 [end_date_ymd] => 2025-03-14 15:05:06 [RateCDR] => 1 ) [2025-03-14 15:05: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-03-14 12:05:06' and `end` < '2025-03-14 15:05: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-03-14 15:05:19] Production.INFO: count ==4653 [2025-03-14 15:05:21] Production.ERROR: pbx CDR StartTime 2025-03-14 12:05:06 - End Time 2025-03-14 15:05:06 [2025-03-14 15:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 15:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679641', 'tblTempUsageDetail_20' ) start [2025-03-14 15:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679641', 'tblTempUsageDetail_20' ) end [2025-03-14 15:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679641', 'tblTempVendorCDR_20' ) start [2025-03-14 15:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679641', 'tblTempVendorCDR_20' ) end [2025-03-14 15:05:21] Production.INFO: ProcessCDR(1,14679641,1,1,2) [2025-03-14 15:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679641', 'tblTempUsageDetail_20' ) start [2025-03-14 15:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679641', 'tblTempUsageDetail_20' ) end [2025-03-14 15:05:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 15:05:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 15:05:27] Production.INFO: ==25007== Releasing lock... [2025-03-14 15:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 15:05:27] Production.INFO: 62.75 MB #Memory Used# [2025-03-14 15:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 12:06:06 [end_date_ymd] => 2025-03-14 15:06:06 [RateCDR] => 1 ) [2025-03-14 15:06: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-03-14 12:06:06' and `end` < '2025-03-14 15:06: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-03-14 15:06:19] Production.INFO: count ==4645 [2025-03-14 15:06:21] Production.ERROR: pbx CDR StartTime 2025-03-14 12:06:06 - End Time 2025-03-14 15:06:06 [2025-03-14 15:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679646', 'tblTempUsageDetail_20' ) start [2025-03-14 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679646', 'tblTempUsageDetail_20' ) end [2025-03-14 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679646', 'tblTempVendorCDR_20' ) start [2025-03-14 15:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679646', 'tblTempVendorCDR_20' ) end [2025-03-14 15:06:21] Production.INFO: ProcessCDR(1,14679646,1,1,2) [2025-03-14 15:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:06:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679646', 'tblTempUsageDetail_20' ) start [2025-03-14 15:06:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679646', 'tblTempUsageDetail_20' ) end [2025-03-14 15:06:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 15:06:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 15:06:27] Production.INFO: ==25078== Releasing lock... [2025-03-14 15:06:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 15:06:27] Production.INFO: 62.75 MB #Memory Used# [2025-03-14 15:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 12:07:06 [end_date_ymd] => 2025-03-14 15:07:06 [RateCDR] => 1 ) [2025-03-14 15:07: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-03-14 12:07:06' and `end` < '2025-03-14 15:07: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-03-14 15:07:19] Production.INFO: count ==4655 [2025-03-14 15:07:21] Production.ERROR: pbx CDR StartTime 2025-03-14 12:07:06 - End Time 2025-03-14 15:07:06 [2025-03-14 15:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 15:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679651', 'tblTempUsageDetail_20' ) start [2025-03-14 15:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679651', 'tblTempUsageDetail_20' ) end [2025-03-14 15:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679651', 'tblTempVendorCDR_20' ) start [2025-03-14 15:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679651', 'tblTempVendorCDR_20' ) end [2025-03-14 15:07:21] Production.INFO: ProcessCDR(1,14679651,1,1,2) [2025-03-14 15:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679651', 'tblTempUsageDetail_20' ) start [2025-03-14 15:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679651', 'tblTempUsageDetail_20' ) end [2025-03-14 15:07:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 15:07:28] Production.ERROR: pbx prc_insertCDR end [2025-03-14 15:07:28] Production.INFO: ==25151== Releasing lock... [2025-03-14 15:07:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 15:07:28] Production.INFO: 62.75 MB #Memory Used# [2025-03-14 15:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 12:08:06 [end_date_ymd] => 2025-03-14 15:08:06 [RateCDR] => 1 ) [2025-03-14 15:08: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-03-14 12:08:06' and `end` < '2025-03-14 15:08: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-03-14 15:08:19] Production.INFO: count ==4661 [2025-03-14 15:08:21] Production.ERROR: pbx CDR StartTime 2025-03-14 12:08:06 - End Time 2025-03-14 15:08:06 [2025-03-14 15:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 15:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679656', 'tblTempUsageDetail_20' ) start [2025-03-14 15:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679656', 'tblTempUsageDetail_20' ) end [2025-03-14 15:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679656', 'tblTempVendorCDR_20' ) start [2025-03-14 15:08:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679656', 'tblTempVendorCDR_20' ) end [2025-03-14 15:08:22] Production.INFO: ProcessCDR(1,14679656,1,1,2) [2025-03-14 15:08:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:08:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679656', 'tblTempUsageDetail_20' ) start [2025-03-14 15:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679656', 'tblTempUsageDetail_20' ) end [2025-03-14 15:08:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 15:08:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 15:08:27] Production.INFO: ==25233== Releasing lock... [2025-03-14 15:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 15:08:27] Production.INFO: 63 MB #Memory Used# [2025-03-14 15:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 12:09:06 [end_date_ymd] => 2025-03-14 15:09:06 [RateCDR] => 1 ) [2025-03-14 15:09: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-03-14 12:09:06' and `end` < '2025-03-14 15:09: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-03-14 15:09:19] Production.INFO: count ==4652 [2025-03-14 15:09:21] Production.ERROR: pbx CDR StartTime 2025-03-14 12:09:06 - End Time 2025-03-14 15:09:06 [2025-03-14 15:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 15:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679661', 'tblTempUsageDetail_20' ) start [2025-03-14 15:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679661', 'tblTempUsageDetail_20' ) end [2025-03-14 15:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679661', 'tblTempVendorCDR_20' ) start [2025-03-14 15:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679661', 'tblTempVendorCDR_20' ) end [2025-03-14 15:09:21] Production.INFO: ProcessCDR(1,14679661,1,1,2) [2025-03-14 15:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:09:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:09:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679661', 'tblTempUsageDetail_20' ) start [2025-03-14 15:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679661', 'tblTempUsageDetail_20' ) end [2025-03-14 15:09:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 15:09:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 15:09:27] Production.INFO: ==25376== Releasing lock... [2025-03-14 15:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 15:09:27] Production.INFO: 62.75 MB #Memory Used# [2025-03-14 15:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 12:10:07 [end_date_ymd] => 2025-03-14 15:10:07 [RateCDR] => 1 ) [2025-03-14 15:10:07] 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-03-14 12:10:07' and `end` < '2025-03-14 15:10:07' 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-03-14 15:10:20] Production.INFO: count ==4664 [2025-03-14 15:10:23] Production.ERROR: pbx CDR StartTime 2025-03-14 12:10:07 - End Time 2025-03-14 15:10:07 [2025-03-14 15:10:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 15:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679667', 'tblTempUsageDetail_20' ) start [2025-03-14 15:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679667', 'tblTempUsageDetail_20' ) end [2025-03-14 15:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679667', 'tblTempVendorCDR_20' ) start [2025-03-14 15:10:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679667', 'tblTempVendorCDR_20' ) end [2025-03-14 15:10:23] Production.INFO: ProcessCDR(1,14679667,1,1,2) [2025-03-14 15:10:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:10:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679667,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:10:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:10:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679667,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679667', 'tblTempUsageDetail_20' ) start [2025-03-14 15:10:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679667', 'tblTempUsageDetail_20' ) end [2025-03-14 15:10:29] Production.ERROR: pbx prc_insertCDR start [2025-03-14 15:10:29] Production.ERROR: pbx prc_insertCDR end [2025-03-14 15:10:29] Production.INFO: ==25469== Releasing lock... [2025-03-14 15:10:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 15:10:29] Production.INFO: 63 MB #Memory Used# [2025-03-14 15:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 12:11:05 [end_date_ymd] => 2025-03-14 15:11:05 [RateCDR] => 1 ) [2025-03-14 15:11: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-03-14 12:11:05' and `end` < '2025-03-14 15:11: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-03-14 15:11:18] Production.INFO: count ==4657 [2025-03-14 15:11:22] Production.ERROR: pbx CDR StartTime 2025-03-14 12:11:05 - End Time 2025-03-14 15:11:05 [2025-03-14 15:11:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 15:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679672', 'tblTempUsageDetail_20' ) start [2025-03-14 15:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679672', 'tblTempUsageDetail_20' ) end [2025-03-14 15:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679672', 'tblTempVendorCDR_20' ) start [2025-03-14 15:11:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679672', 'tblTempVendorCDR_20' ) end [2025-03-14 15:11:22] Production.INFO: ProcessCDR(1,14679672,1,1,2) [2025-03-14 15:11:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:11:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679672,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:11:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:11:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679672,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679672', 'tblTempUsageDetail_20' ) start [2025-03-14 15:11:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679672', 'tblTempUsageDetail_20' ) end [2025-03-14 15:11:28] Production.ERROR: pbx prc_insertCDR start [2025-03-14 15:11:28] Production.ERROR: pbx prc_insertCDR end [2025-03-14 15:11:28] Production.INFO: ==25544== Releasing lock... [2025-03-14 15:11:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 15:11:28] Production.INFO: 62.75 MB #Memory Used# [2025-03-14 15:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 12:12:06 [end_date_ymd] => 2025-03-14 15:12:06 [RateCDR] => 1 ) [2025-03-14 15:12: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-03-14 12:12:06' and `end` < '2025-03-14 15:12: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-03-14 15:12:20] Production.INFO: count ==4654 [2025-03-14 15:12:22] Production.ERROR: pbx CDR StartTime 2025-03-14 12:12:06 - End Time 2025-03-14 15:12:06 [2025-03-14 15:12:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679677', 'tblTempUsageDetail_20' ) start [2025-03-14 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679677', 'tblTempUsageDetail_20' ) end [2025-03-14 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679677', 'tblTempVendorCDR_20' ) start [2025-03-14 15:12:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679677', 'tblTempVendorCDR_20' ) end [2025-03-14 15:12:22] Production.INFO: ProcessCDR(1,14679677,1,1,2) [2025-03-14 15:12:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:12:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:12:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:12:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679677', 'tblTempUsageDetail_20' ) start [2025-03-14 15:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679677', 'tblTempUsageDetail_20' ) end [2025-03-14 15:12:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 15:12:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 15:12:27] Production.INFO: ==25693== Releasing lock... [2025-03-14 15:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 15:12:27] Production.INFO: 62.75 MB #Memory Used# [2025-03-14 15:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 12:13:06 [end_date_ymd] => 2025-03-14 15:13:06 [RateCDR] => 1 ) [2025-03-14 15:13: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-03-14 12:13:06' and `end` < '2025-03-14 15:13: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-03-14 15:13:19] Production.INFO: count ==4652 [2025-03-14 15:13:21] Production.ERROR: pbx CDR StartTime 2025-03-14 12:13:06 - End Time 2025-03-14 15:13:06 [2025-03-14 15:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 15:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679682', 'tblTempUsageDetail_20' ) start [2025-03-14 15:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679682', 'tblTempUsageDetail_20' ) end [2025-03-14 15:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679682', 'tblTempVendorCDR_20' ) start [2025-03-14 15:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679682', 'tblTempVendorCDR_20' ) end [2025-03-14 15:13:21] Production.INFO: ProcessCDR(1,14679682,1,1,2) [2025-03-14 15:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679682,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679682,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679682', 'tblTempUsageDetail_20' ) start [2025-03-14 15:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679682', 'tblTempUsageDetail_20' ) end [2025-03-14 15:13:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 15:13:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 15:13:27] Production.INFO: ==25770== Releasing lock... [2025-03-14 15:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 15:13:27] Production.INFO: 62.75 MB #Memory Used# [2025-03-14 15:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 12:14:06 [end_date_ymd] => 2025-03-14 15:14:06 [RateCDR] => 1 ) [2025-03-14 15:14: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-03-14 12:14:06' and `end` < '2025-03-14 15:14: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-03-14 15:14:20] Production.INFO: count ==4653 [2025-03-14 15:14:22] Production.ERROR: pbx CDR StartTime 2025-03-14 12:14:06 - End Time 2025-03-14 15:14:06 [2025-03-14 15:14:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 15:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679687', 'tblTempUsageDetail_20' ) start [2025-03-14 15:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679687', 'tblTempUsageDetail_20' ) end [2025-03-14 15:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679687', 'tblTempVendorCDR_20' ) start [2025-03-14 15:14:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679687', 'tblTempVendorCDR_20' ) end [2025-03-14 15:14:22] Production.INFO: ProcessCDR(1,14679687,1,1,2) [2025-03-14 15:14:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:14:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679687,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:14:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:14:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679687,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679687', 'tblTempUsageDetail_20' ) start [2025-03-14 15:14:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679687', 'tblTempUsageDetail_20' ) end [2025-03-14 15:14:28] Production.ERROR: pbx prc_insertCDR start [2025-03-14 15:14:28] Production.ERROR: pbx prc_insertCDR end [2025-03-14 15:14:28] Production.INFO: ==25849== Releasing lock... [2025-03-14 15:14:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 15:14:28] Production.INFO: 62.75 MB #Memory Used# [2025-03-14 15:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 12:15:06 [end_date_ymd] => 2025-03-14 15:15:06 [RateCDR] => 1 ) [2025-03-14 15:15: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-03-14 12:15:06' and `end` < '2025-03-14 15:15: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-03-14 15:15:19] Production.INFO: count ==4670 [2025-03-14 15:15:21] Production.ERROR: pbx CDR StartTime 2025-03-14 12:15:06 - End Time 2025-03-14 15:15:06 [2025-03-14 15:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679692', 'tblTempUsageDetail_20' ) start [2025-03-14 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679692', 'tblTempUsageDetail_20' ) end [2025-03-14 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679692', 'tblTempVendorCDR_20' ) start [2025-03-14 15:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679692', 'tblTempVendorCDR_20' ) end [2025-03-14 15:15:21] Production.INFO: ProcessCDR(1,14679692,1,1,2) [2025-03-14 15:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679692,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679692,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679692', 'tblTempUsageDetail_20' ) start [2025-03-14 15:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679692', 'tblTempUsageDetail_20' ) end [2025-03-14 15:15:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 15:15:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 15:15:27] Production.INFO: ==25960== Releasing lock... [2025-03-14 15:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 15:15:27] Production.INFO: 63 MB #Memory Used# [2025-03-14 15:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 12:16:06 [end_date_ymd] => 2025-03-14 15:16:06 [RateCDR] => 1 ) [2025-03-14 15:16: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-03-14 12:16:06' and `end` < '2025-03-14 15:16: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-03-14 15:16:19] Production.INFO: count ==4667 [2025-03-14 15:16:21] Production.ERROR: pbx CDR StartTime 2025-03-14 12:16:06 - End Time 2025-03-14 15:16:06 [2025-03-14 15:16:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 15:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679697', 'tblTempUsageDetail_20' ) start [2025-03-14 15:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679697', 'tblTempUsageDetail_20' ) end [2025-03-14 15:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679697', 'tblTempVendorCDR_20' ) start [2025-03-14 15:16:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679697', 'tblTempVendorCDR_20' ) end [2025-03-14 15:16:21] Production.INFO: ProcessCDR(1,14679697,1,1,2) [2025-03-14 15:16:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:16:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679697,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:16:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:16:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679697,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:16:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679697', 'tblTempUsageDetail_20' ) start [2025-03-14 15:16:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679697', 'tblTempUsageDetail_20' ) end [2025-03-14 15:16:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 15:16:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 15:16:27] Production.INFO: ==26073== Releasing lock... [2025-03-14 15:16:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 15:16:27] Production.INFO: 63 MB #Memory Used# [2025-03-14 15:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 12:17:05 [end_date_ymd] => 2025-03-14 15:17:05 [RateCDR] => 1 ) [2025-03-14 15:17: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-03-14 12:17:05' and `end` < '2025-03-14 15:17: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-03-14 15:17:19] Production.INFO: count ==4665 [2025-03-14 15:17:21] Production.ERROR: pbx CDR StartTime 2025-03-14 12:17:05 - End Time 2025-03-14 15:17:05 [2025-03-14 15:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679702', 'tblTempUsageDetail_20' ) start [2025-03-14 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679702', 'tblTempUsageDetail_20' ) end [2025-03-14 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679702', 'tblTempVendorCDR_20' ) start [2025-03-14 15:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679702', 'tblTempVendorCDR_20' ) end [2025-03-14 15:17:21] Production.INFO: ProcessCDR(1,14679702,1,1,2) [2025-03-14 15:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679702,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679702,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679702', 'tblTempUsageDetail_20' ) start [2025-03-14 15:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679702', 'tblTempUsageDetail_20' ) end [2025-03-14 15:17:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 15:17:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 15:17:26] Production.INFO: ==26147== Releasing lock... [2025-03-14 15:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 15:17:26] Production.INFO: 63 MB #Memory Used# [2025-03-14 15:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 12:18:06 [end_date_ymd] => 2025-03-14 15:18:06 [RateCDR] => 1 ) [2025-03-14 15:18: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-03-14 12:18:06' and `end` < '2025-03-14 15:18: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-03-14 15:18:19] Production.INFO: count ==4657 [2025-03-14 15:18:21] Production.ERROR: pbx CDR StartTime 2025-03-14 12:18:06 - End Time 2025-03-14 15:18:06 [2025-03-14 15:18:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 15:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679707', 'tblTempUsageDetail_20' ) start [2025-03-14 15:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679707', 'tblTempUsageDetail_20' ) end [2025-03-14 15:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679707', 'tblTempVendorCDR_20' ) start [2025-03-14 15:18:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679707', 'tblTempVendorCDR_20' ) end [2025-03-14 15:18:21] Production.INFO: ProcessCDR(1,14679707,1,1,2) [2025-03-14 15:18:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:18:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679707,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:18:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679707,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679707', 'tblTempUsageDetail_20' ) start [2025-03-14 15:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679707', 'tblTempUsageDetail_20' ) end [2025-03-14 15:18:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 15:18:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 15:18:27] Production.INFO: ==26218== Releasing lock... [2025-03-14 15:18:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 15:18:27] Production.INFO: 62.75 MB #Memory Used# [2025-03-14 15:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 12:19:06 [end_date_ymd] => 2025-03-14 15:19:06 [RateCDR] => 1 ) [2025-03-14 15:19: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-03-14 12:19:06' and `end` < '2025-03-14 15:19: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-03-14 15:19:19] Production.INFO: count ==4667 [2025-03-14 15:19:21] Production.ERROR: pbx CDR StartTime 2025-03-14 12:19:06 - End Time 2025-03-14 15:19:06 [2025-03-14 15:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679712', 'tblTempUsageDetail_20' ) start [2025-03-14 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679712', 'tblTempUsageDetail_20' ) end [2025-03-14 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679712', 'tblTempVendorCDR_20' ) start [2025-03-14 15:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679712', 'tblTempVendorCDR_20' ) end [2025-03-14 15:19:21] Production.INFO: ProcessCDR(1,14679712,1,1,2) [2025-03-14 15:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679712,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:19:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679712,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679712', 'tblTempUsageDetail_20' ) start [2025-03-14 15:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679712', 'tblTempUsageDetail_20' ) end [2025-03-14 15:19:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 15:19:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 15:19:27] Production.INFO: ==26338== Releasing lock... [2025-03-14 15:19:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 15:19:27] Production.INFO: 63 MB #Memory Used# [2025-03-14 15:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 12:20:07 [end_date_ymd] => 2025-03-14 15:20:07 [RateCDR] => 1 ) [2025-03-14 15:20:07] 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-03-14 12:20:07' and `end` < '2025-03-14 15:20:07' 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-03-14 15:20:20] Production.INFO: count ==4673 [2025-03-14 15:20:22] Production.ERROR: pbx CDR StartTime 2025-03-14 12:20:07 - End Time 2025-03-14 15:20:07 [2025-03-14 15:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679718', 'tblTempUsageDetail_20' ) start [2025-03-14 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679718', 'tblTempUsageDetail_20' ) end [2025-03-14 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679718', 'tblTempVendorCDR_20' ) start [2025-03-14 15:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679718', 'tblTempVendorCDR_20' ) end [2025-03-14 15:20:22] Production.INFO: ProcessCDR(1,14679718,1,1,2) [2025-03-14 15:20:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679718,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679718,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679718', 'tblTempUsageDetail_20' ) start [2025-03-14 15:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679718', 'tblTempUsageDetail_20' ) end [2025-03-14 15:20:28] Production.ERROR: pbx prc_insertCDR start [2025-03-14 15:20:28] Production.ERROR: pbx prc_insertCDR end [2025-03-14 15:20:28] Production.INFO: ==26412== Releasing lock... [2025-03-14 15:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 15:20:28] Production.INFO: 63 MB #Memory Used# [2025-03-14 15:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 12:21:05 [end_date_ymd] => 2025-03-14 15:21:05 [RateCDR] => 1 ) [2025-03-14 15:21: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-03-14 12:21:05' and `end` < '2025-03-14 15:21: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-03-14 15:21:18] Production.INFO: count ==4716 [2025-03-14 15:21:20] Production.ERROR: pbx CDR StartTime 2025-03-14 12:21:05 - End Time 2025-03-14 15:21:05 [2025-03-14 15:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 15:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679723', 'tblTempUsageDetail_20' ) start [2025-03-14 15:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679723', 'tblTempUsageDetail_20' ) end [2025-03-14 15:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679723', 'tblTempVendorCDR_20' ) start [2025-03-14 15:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679723', 'tblTempVendorCDR_20' ) end [2025-03-14 15:21:20] Production.INFO: ProcessCDR(1,14679723,1,1,2) [2025-03-14 15:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:21:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679723,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:21:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:21:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679723,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679723', 'tblTempUsageDetail_20' ) start [2025-03-14 15:21:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679723', 'tblTempUsageDetail_20' ) end [2025-03-14 15:21:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 15:21:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 15:21:26] Production.INFO: ==26485== Releasing lock... [2025-03-14 15:21:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 15:21:26] Production.INFO: 63.25 MB #Memory Used# [2025-03-14 15:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 12:22:06 [end_date_ymd] => 2025-03-14 15:22:06 [RateCDR] => 1 ) [2025-03-14 15:22: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-03-14 12:22:06' and `end` < '2025-03-14 15:22: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-03-14 15:22:19] Production.INFO: count ==4707 [2025-03-14 15:22:21] Production.ERROR: pbx CDR StartTime 2025-03-14 12:22:06 - End Time 2025-03-14 15:22:06 [2025-03-14 15:22:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679728', 'tblTempUsageDetail_20' ) start [2025-03-14 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679728', 'tblTempUsageDetail_20' ) end [2025-03-14 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679728', 'tblTempVendorCDR_20' ) start [2025-03-14 15:22:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679728', 'tblTempVendorCDR_20' ) end [2025-03-14 15:22:21] Production.INFO: ProcessCDR(1,14679728,1,1,2) [2025-03-14 15:22:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:22:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679728,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:22:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:22:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679728,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679728', 'tblTempUsageDetail_20' ) start [2025-03-14 15:22:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679728', 'tblTempUsageDetail_20' ) end [2025-03-14 15:22:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 15:22:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 15:22:27] Production.INFO: ==26558== Releasing lock... [2025-03-14 15:22:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 15:22:27] Production.INFO: 63.25 MB #Memory Used# [2025-03-14 15:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 12:23:05 [end_date_ymd] => 2025-03-14 15:23:05 [RateCDR] => 1 ) [2025-03-14 15:23: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-03-14 12:23:05' and `end` < '2025-03-14 15:23: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-03-14 15:23:19] Production.INFO: count ==4713 [2025-03-14 15:23:21] Production.ERROR: pbx CDR StartTime 2025-03-14 12:23:05 - End Time 2025-03-14 15:23:05 [2025-03-14 15:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679733', 'tblTempUsageDetail_20' ) start [2025-03-14 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679733', 'tblTempUsageDetail_20' ) end [2025-03-14 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679733', 'tblTempVendorCDR_20' ) start [2025-03-14 15:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679733', 'tblTempVendorCDR_20' ) end [2025-03-14 15:23:21] Production.INFO: ProcessCDR(1,14679733,1,1,2) [2025-03-14 15:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679733,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679733,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679733', 'tblTempUsageDetail_20' ) start [2025-03-14 15:23:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679733', 'tblTempUsageDetail_20' ) end [2025-03-14 15:23:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 15:23:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 15:23:27] Production.INFO: ==26633== Releasing lock... [2025-03-14 15:23:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 15:23:27] Production.INFO: 63.25 MB #Memory Used# [2025-03-14 15:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 12:24:06 [end_date_ymd] => 2025-03-14 15:24:06 [RateCDR] => 1 ) [2025-03-14 15:24: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-03-14 12:24:06' and `end` < '2025-03-14 15:24: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-03-14 15:24:19] Production.INFO: count ==4724 [2025-03-14 15:24:21] Production.ERROR: pbx CDR StartTime 2025-03-14 12:24:06 - End Time 2025-03-14 15:24:06 [2025-03-14 15:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679738', 'tblTempUsageDetail_20' ) start [2025-03-14 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679738', 'tblTempUsageDetail_20' ) end [2025-03-14 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679738', 'tblTempVendorCDR_20' ) start [2025-03-14 15:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679738', 'tblTempVendorCDR_20' ) end [2025-03-14 15:24:21] Production.INFO: ProcessCDR(1,14679738,1,1,2) [2025-03-14 15:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679738,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:24:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679738,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679738', 'tblTempUsageDetail_20' ) start [2025-03-14 15:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679738', 'tblTempUsageDetail_20' ) end [2025-03-14 15:24:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 15:24:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 15:24:25] Production.INFO: ==26704== Releasing lock... [2025-03-14 15:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 15:24:25] Production.INFO: 63.25 MB #Memory Used# [2025-03-14 15:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 12:25:05 [end_date_ymd] => 2025-03-14 15:25:05 [RateCDR] => 1 ) [2025-03-14 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-03-14 12:25:05' and `end` < '2025-03-14 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-03-14 15:25:19] Production.INFO: count ==4717 [2025-03-14 15:25:21] Production.ERROR: pbx CDR StartTime 2025-03-14 12:25:05 - End Time 2025-03-14 15:25:05 [2025-03-14 15:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679743', 'tblTempUsageDetail_20' ) start [2025-03-14 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679743', 'tblTempUsageDetail_20' ) end [2025-03-14 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679743', 'tblTempVendorCDR_20' ) start [2025-03-14 15:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679743', 'tblTempVendorCDR_20' ) end [2025-03-14 15:25:21] Production.INFO: ProcessCDR(1,14679743,1,1,2) [2025-03-14 15:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679743,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679743,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679743', 'tblTempUsageDetail_20' ) start [2025-03-14 15:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679743', 'tblTempUsageDetail_20' ) end [2025-03-14 15:25:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 15:25:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 15:25:26] Production.INFO: ==26780== Releasing lock... [2025-03-14 15:25:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 15:25:26] Production.INFO: 63.25 MB #Memory Used# [2025-03-14 15:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 12:26:06 [end_date_ymd] => 2025-03-14 15:26:06 [RateCDR] => 1 ) [2025-03-14 15:26: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-03-14 12:26:06' and `end` < '2025-03-14 15:26: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-03-14 15:26:19] Production.INFO: count ==4693 [2025-03-14 15:26:21] Production.ERROR: pbx CDR StartTime 2025-03-14 12:26:06 - End Time 2025-03-14 15:26:06 [2025-03-14 15:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679748', 'tblTempUsageDetail_20' ) start [2025-03-14 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679748', 'tblTempUsageDetail_20' ) end [2025-03-14 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679748', 'tblTempVendorCDR_20' ) start [2025-03-14 15:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679748', 'tblTempVendorCDR_20' ) end [2025-03-14 15:26:21] Production.INFO: ProcessCDR(1,14679748,1,1,2) [2025-03-14 15:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679748,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:26:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679748,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679748', 'tblTempUsageDetail_20' ) start [2025-03-14 15:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679748', 'tblTempUsageDetail_20' ) end [2025-03-14 15:26:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 15:26:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 15:26:27] Production.INFO: ==26854== Releasing lock... [2025-03-14 15:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 15:26:27] Production.INFO: 63.25 MB #Memory Used# [2025-03-14 15:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 12:27:05 [end_date_ymd] => 2025-03-14 15:27:05 [RateCDR] => 1 ) [2025-03-14 15:27: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-03-14 12:27:05' and `end` < '2025-03-14 15:27: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-03-14 15:27:19] Production.INFO: count ==4709 [2025-03-14 15:27:21] Production.ERROR: pbx CDR StartTime 2025-03-14 12:27:05 - End Time 2025-03-14 15:27:05 [2025-03-14 15:27:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679753', 'tblTempUsageDetail_20' ) start [2025-03-14 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679753', 'tblTempUsageDetail_20' ) end [2025-03-14 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679753', 'tblTempVendorCDR_20' ) start [2025-03-14 15:27:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679753', 'tblTempVendorCDR_20' ) end [2025-03-14 15:27:21] Production.INFO: ProcessCDR(1,14679753,1,1,2) [2025-03-14 15:27:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:27:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679753,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:27:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:27:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679753,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:27:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679753', 'tblTempUsageDetail_20' ) start [2025-03-14 15:27:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679753', 'tblTempUsageDetail_20' ) end [2025-03-14 15:27:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 15:27:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 15:27:27] Production.INFO: ==26924== Releasing lock... [2025-03-14 15:27:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 15:27:27] Production.INFO: 63.25 MB #Memory Used# [2025-03-14 15:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 12:28:06 [end_date_ymd] => 2025-03-14 15:28:06 [RateCDR] => 1 ) [2025-03-14 15:28: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-03-14 12:28:06' and `end` < '2025-03-14 15:28: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-03-14 15:28:19] Production.INFO: count ==4695 [2025-03-14 15:28:21] Production.ERROR: pbx CDR StartTime 2025-03-14 12:28:06 - End Time 2025-03-14 15:28:06 [2025-03-14 15:28:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 15:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679758', 'tblTempUsageDetail_20' ) start [2025-03-14 15:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679758', 'tblTempUsageDetail_20' ) end [2025-03-14 15:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679758', 'tblTempVendorCDR_20' ) start [2025-03-14 15:28:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679758', 'tblTempVendorCDR_20' ) end [2025-03-14 15:28:21] Production.INFO: ProcessCDR(1,14679758,1,1,2) [2025-03-14 15:28:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:28:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679758,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:28:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:28:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679758,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679758', 'tblTempUsageDetail_20' ) start [2025-03-14 15:28:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679758', 'tblTempUsageDetail_20' ) end [2025-03-14 15:28:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 15:28:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 15:28:27] Production.INFO: ==26999== Releasing lock... [2025-03-14 15:28:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 15:28:27] Production.INFO: 63.25 MB #Memory Used# [2025-03-14 15:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 12:29:05 [end_date_ymd] => 2025-03-14 15:29:05 [RateCDR] => 1 ) [2025-03-14 15:29: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-03-14 12:29:05' and `end` < '2025-03-14 15:29: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-03-14 15:29:19] Production.INFO: count ==4690 [2025-03-14 15:29:20] Production.ERROR: pbx CDR StartTime 2025-03-14 12:29:05 - End Time 2025-03-14 15:29:05 [2025-03-14 15:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 15:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679763', 'tblTempUsageDetail_20' ) start [2025-03-14 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679763', 'tblTempUsageDetail_20' ) end [2025-03-14 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679763', 'tblTempVendorCDR_20' ) start [2025-03-14 15:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679763', 'tblTempVendorCDR_20' ) end [2025-03-14 15:29:21] Production.INFO: ProcessCDR(1,14679763,1,1,2) [2025-03-14 15:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:29:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679763,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:29:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679763,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679763', 'tblTempUsageDetail_20' ) start [2025-03-14 15:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679763', 'tblTempUsageDetail_20' ) end [2025-03-14 15:29:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 15:29:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 15:29:26] Production.INFO: ==27073== Releasing lock... [2025-03-14 15:29:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 15:29:26] Production.INFO: 63 MB #Memory Used# [2025-03-14 15:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 12:30:07 [end_date_ymd] => 2025-03-14 15:30:07 [RateCDR] => 1 ) [2025-03-14 15:30:07] 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-03-14 12:30:07' and `end` < '2025-03-14 15:30:07' 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-03-14 15:30:20] Production.INFO: count ==4703 [2025-03-14 15:30:22] Production.ERROR: pbx CDR StartTime 2025-03-14 12:30:07 - End Time 2025-03-14 15:30:07 [2025-03-14 15:30:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 15:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679768', 'tblTempUsageDetail_20' ) start [2025-03-14 15:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679768', 'tblTempUsageDetail_20' ) end [2025-03-14 15:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679768', 'tblTempVendorCDR_20' ) start [2025-03-14 15:30:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679768', 'tblTempVendorCDR_20' ) end [2025-03-14 15:30:22] Production.INFO: ProcessCDR(1,14679768,1,1,2) [2025-03-14 15:30:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:30:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679768,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:30:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:30:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679768,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679768', 'tblTempUsageDetail_20' ) start [2025-03-14 15:30:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679768', 'tblTempUsageDetail_20' ) end [2025-03-14 15:30:28] Production.ERROR: pbx prc_insertCDR start [2025-03-14 15:30:28] Production.ERROR: pbx prc_insertCDR end [2025-03-14 15:30:28] Production.INFO: ==27148== Releasing lock... [2025-03-14 15:30:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 15:30:28] Production.INFO: 63.25 MB #Memory Used# [2025-03-14 15:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 12:31:05 [end_date_ymd] => 2025-03-14 15:31:05 [RateCDR] => 1 ) [2025-03-14 15:31: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-03-14 12:31:05' and `end` < '2025-03-14 15:31: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-03-14 15:31:18] Production.INFO: count ==4693 [2025-03-14 15:31:20] Production.ERROR: pbx CDR StartTime 2025-03-14 12:31:05 - End Time 2025-03-14 15:31:05 [2025-03-14 15:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 15:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679774', 'tblTempUsageDetail_20' ) start [2025-03-14 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679774', 'tblTempUsageDetail_20' ) end [2025-03-14 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679774', 'tblTempVendorCDR_20' ) start [2025-03-14 15:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679774', 'tblTempVendorCDR_20' ) end [2025-03-14 15:31:21] Production.INFO: ProcessCDR(1,14679774,1,1,2) [2025-03-14 15:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:31:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679774,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:31:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:31:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679774,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679774', 'tblTempUsageDetail_20' ) start [2025-03-14 15:31:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679774', 'tblTempUsageDetail_20' ) end [2025-03-14 15:31:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 15:31:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 15:31:26] Production.INFO: ==27222== Releasing lock... [2025-03-14 15:31:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 15:31:26] Production.INFO: 63.25 MB #Memory Used# [2025-03-14 15:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 12:32:06 [end_date_ymd] => 2025-03-14 15:32:06 [RateCDR] => 1 ) [2025-03-14 15:32: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-03-14 12:32:06' and `end` < '2025-03-14 15:32: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-03-14 15:32:20] Production.INFO: count ==4716 [2025-03-14 15:32:22] Production.ERROR: pbx CDR StartTime 2025-03-14 12:32:06 - End Time 2025-03-14 15:32:06 [2025-03-14 15:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679779', 'tblTempUsageDetail_20' ) start [2025-03-14 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679779', 'tblTempUsageDetail_20' ) end [2025-03-14 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679779', 'tblTempVendorCDR_20' ) start [2025-03-14 15:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679779', 'tblTempVendorCDR_20' ) end [2025-03-14 15:32:22] Production.INFO: ProcessCDR(1,14679779,1,1,2) [2025-03-14 15:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679779,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:32:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679779,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679779', 'tblTempUsageDetail_20' ) start [2025-03-14 15:32:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679779', 'tblTempUsageDetail_20' ) end [2025-03-14 15:32:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 15:32:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 15:32:27] Production.INFO: ==27297== Releasing lock... [2025-03-14 15:32:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 15:32:27] Production.INFO: 63.25 MB #Memory Used# [2025-03-14 15:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 12:33:05 [end_date_ymd] => 2025-03-14 15:33:05 [RateCDR] => 1 ) [2025-03-14 15:33: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-03-14 12:33:05' and `end` < '2025-03-14 15:33: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-03-14 15:33:18] Production.INFO: count ==4751 [2025-03-14 15:33:20] Production.ERROR: pbx CDR StartTime 2025-03-14 12:33:05 - End Time 2025-03-14 15:33:05 [2025-03-14 15:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 15:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679784', 'tblTempUsageDetail_20' ) start [2025-03-14 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679784', 'tblTempUsageDetail_20' ) end [2025-03-14 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679784', 'tblTempVendorCDR_20' ) start [2025-03-14 15:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679784', 'tblTempVendorCDR_20' ) end [2025-03-14 15:33:21] Production.INFO: ProcessCDR(1,14679784,1,1,2) [2025-03-14 15:33:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679784,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:33:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679784,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:33:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679784', 'tblTempUsageDetail_20' ) start [2025-03-14 15:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679784', 'tblTempUsageDetail_20' ) end [2025-03-14 15:33:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 15:33:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 15:33:27] Production.INFO: ==27370== Releasing lock... [2025-03-14 15:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 15:33:27] Production.INFO: 63.5 MB #Memory Used# [2025-03-14 15:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 12:34:06 [end_date_ymd] => 2025-03-14 15:34:06 [RateCDR] => 1 ) [2025-03-14 15:34: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-03-14 12:34:06' and `end` < '2025-03-14 15:34: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-03-14 15:34:19] Production.INFO: count ==4751 [2025-03-14 15:34:21] Production.ERROR: pbx CDR StartTime 2025-03-14 12:34:06 - End Time 2025-03-14 15:34:06 [2025-03-14 15:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 15:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679789', 'tblTempUsageDetail_20' ) start [2025-03-14 15:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679789', 'tblTempUsageDetail_20' ) end [2025-03-14 15:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679789', 'tblTempVendorCDR_20' ) start [2025-03-14 15:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679789', 'tblTempVendorCDR_20' ) end [2025-03-14 15:34:21] Production.INFO: ProcessCDR(1,14679789,1,1,2) [2025-03-14 15:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679789,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:34:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679789,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679789', 'tblTempUsageDetail_20' ) start [2025-03-14 15:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679789', 'tblTempUsageDetail_20' ) end [2025-03-14 15:34:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 15:34:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 15:34:27] Production.INFO: ==27487== Releasing lock... [2025-03-14 15:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 15:34:27] Production.INFO: 63.5 MB #Memory Used# [2025-03-14 15:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 12:35:05 [end_date_ymd] => 2025-03-14 15:35:05 [RateCDR] => 1 ) [2025-03-14 15:35: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-03-14 12:35:05' and `end` < '2025-03-14 15:35: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-03-14 15:35:19] Production.INFO: count ==4784 [2025-03-14 15:35:21] Production.ERROR: pbx CDR StartTime 2025-03-14 12:35:05 - End Time 2025-03-14 15:35:05 [2025-03-14 15:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 15:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679794', 'tblTempUsageDetail_20' ) start [2025-03-14 15:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679794', 'tblTempUsageDetail_20' ) end [2025-03-14 15:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679794', 'tblTempVendorCDR_20' ) start [2025-03-14 15:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679794', 'tblTempVendorCDR_20' ) end [2025-03-14 15:35:21] Production.INFO: ProcessCDR(1,14679794,1,1,2) [2025-03-14 15:35:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679794,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679794,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679794', 'tblTempUsageDetail_20' ) start [2025-03-14 15:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679794', 'tblTempUsageDetail_20' ) end [2025-03-14 15:35:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 15:35:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 15:35:27] Production.INFO: ==27569== Releasing lock... [2025-03-14 15:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 15:35:27] Production.INFO: 63.75 MB #Memory Used# [2025-03-14 15:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 12:36:06 [end_date_ymd] => 2025-03-14 15:36:06 [RateCDR] => 1 ) [2025-03-14 15:36: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-03-14 12:36:06' and `end` < '2025-03-14 15:36: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-03-14 15:36:19] Production.INFO: count ==4798 [2025-03-14 15:36:21] Production.ERROR: pbx CDR StartTime 2025-03-14 12:36:06 - End Time 2025-03-14 15:36:06 [2025-03-14 15:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 15:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679799', 'tblTempUsageDetail_20' ) start [2025-03-14 15:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679799', 'tblTempUsageDetail_20' ) end [2025-03-14 15:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679799', 'tblTempVendorCDR_20' ) start [2025-03-14 15:36:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679799', 'tblTempVendorCDR_20' ) end [2025-03-14 15:36:22] Production.INFO: ProcessCDR(1,14679799,1,1,2) [2025-03-14 15:36:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679799,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:36:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679799,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:36:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679799', 'tblTempUsageDetail_20' ) start [2025-03-14 15:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679799', 'tblTempUsageDetail_20' ) end [2025-03-14 15:36:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 15:36:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 15:36:26] Production.INFO: ==27640== Releasing lock... [2025-03-14 15:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 15:36:26] Production.INFO: 64 MB #Memory Used# [2025-03-14 15:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 12:37:05 [end_date_ymd] => 2025-03-14 15:37:05 [RateCDR] => 1 ) [2025-03-14 15:37: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-03-14 12:37:05' and `end` < '2025-03-14 15:37: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-03-14 15:37:19] Production.INFO: count ==4810 [2025-03-14 15:37:21] Production.ERROR: pbx CDR StartTime 2025-03-14 12:37:05 - End Time 2025-03-14 15:37:05 [2025-03-14 15:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679804', 'tblTempUsageDetail_20' ) start [2025-03-14 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679804', 'tblTempUsageDetail_20' ) end [2025-03-14 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679804', 'tblTempVendorCDR_20' ) start [2025-03-14 15:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679804', 'tblTempVendorCDR_20' ) end [2025-03-14 15:37:21] Production.INFO: ProcessCDR(1,14679804,1,1,2) [2025-03-14 15:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:37:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679804,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:37:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679804,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679804', 'tblTempUsageDetail_20' ) start [2025-03-14 15:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679804', 'tblTempUsageDetail_20' ) end [2025-03-14 15:37:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 15:37:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 15:37:27] Production.INFO: ==27713== Releasing lock... [2025-03-14 15:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 15:37:27] Production.INFO: 64 MB #Memory Used# [2025-03-14 15:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 12:38:06 [end_date_ymd] => 2025-03-14 15:38:06 [RateCDR] => 1 ) [2025-03-14 15:38: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-03-14 12:38:06' and `end` < '2025-03-14 15:38: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-03-14 15:38:19] Production.INFO: count ==4821 [2025-03-14 15:38:21] Production.ERROR: pbx CDR StartTime 2025-03-14 12:38:06 - End Time 2025-03-14 15:38:06 [2025-03-14 15:38:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 15:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679809', 'tblTempUsageDetail_20' ) start [2025-03-14 15:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679809', 'tblTempUsageDetail_20' ) end [2025-03-14 15:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679809', 'tblTempVendorCDR_20' ) start [2025-03-14 15:38:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679809', 'tblTempVendorCDR_20' ) end [2025-03-14 15:38:21] Production.INFO: ProcessCDR(1,14679809,1,1,2) [2025-03-14 15:38:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:38:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679809,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:38:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679809,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679809', 'tblTempUsageDetail_20' ) start [2025-03-14 15:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679809', 'tblTempUsageDetail_20' ) end [2025-03-14 15:38:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 15:38:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 15:38:27] Production.INFO: ==27794== Releasing lock... [2025-03-14 15:38:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 15:38:27] Production.INFO: 64 MB #Memory Used# [2025-03-14 15:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 12:39:05 [end_date_ymd] => 2025-03-14 15:39:05 [RateCDR] => 1 ) [2025-03-14 15:39: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-03-14 12:39:05' and `end` < '2025-03-14 15:39: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-03-14 15:39:19] Production.INFO: count ==4831 [2025-03-14 15:39:21] Production.ERROR: pbx CDR StartTime 2025-03-14 12:39:05 - End Time 2025-03-14 15:39:05 [2025-03-14 15:39:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679814', 'tblTempUsageDetail_20' ) start [2025-03-14 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679814', 'tblTempUsageDetail_20' ) end [2025-03-14 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679814', 'tblTempVendorCDR_20' ) start [2025-03-14 15:39:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679814', 'tblTempVendorCDR_20' ) end [2025-03-14 15:39:21] Production.INFO: ProcessCDR(1,14679814,1,1,2) [2025-03-14 15:39:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:39:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679814,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:39:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:39:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679814,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:39:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679814', 'tblTempUsageDetail_20' ) start [2025-03-14 15:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679814', 'tblTempUsageDetail_20' ) end [2025-03-14 15:39:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 15:39:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 15:39:27] Production.INFO: ==27866== Releasing lock... [2025-03-14 15:39:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 15:39:27] Production.INFO: 64.25 MB #Memory Used# [2025-03-14 15:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 12:40:07 [end_date_ymd] => 2025-03-14 15:40:07 [RateCDR] => 1 ) [2025-03-14 15:40:07] 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-03-14 12:40:07' and `end` < '2025-03-14 15:40:07' 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-03-14 15:40:20] Production.INFO: count ==4854 [2025-03-14 15:40:22] Production.ERROR: pbx CDR StartTime 2025-03-14 12:40:07 - End Time 2025-03-14 15:40:07 [2025-03-14 15:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679820', 'tblTempUsageDetail_20' ) start [2025-03-14 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679820', 'tblTempUsageDetail_20' ) end [2025-03-14 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679820', 'tblTempVendorCDR_20' ) start [2025-03-14 15:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679820', 'tblTempVendorCDR_20' ) end [2025-03-14 15:40:22] Production.INFO: ProcessCDR(1,14679820,1,1,2) [2025-03-14 15:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679820,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:40:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679820,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679820', 'tblTempUsageDetail_20' ) start [2025-03-14 15:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679820', 'tblTempUsageDetail_20' ) end [2025-03-14 15:40:28] Production.ERROR: pbx prc_insertCDR start [2025-03-14 15:40:28] Production.ERROR: pbx prc_insertCDR end [2025-03-14 15:40:28] Production.INFO: ==27944== Releasing lock... [2025-03-14 15:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 15:40:28] Production.INFO: 64.25 MB #Memory Used# [2025-03-14 15:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 12:41:05 [end_date_ymd] => 2025-03-14 15:41:05 [RateCDR] => 1 ) [2025-03-14 15:41: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-03-14 12:41:05' and `end` < '2025-03-14 15:41: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-03-14 15:41:18] Production.INFO: count ==4867 [2025-03-14 15:41:21] Production.ERROR: pbx CDR StartTime 2025-03-14 12:41:05 - End Time 2025-03-14 15:41:05 [2025-03-14 15:41:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679825', 'tblTempUsageDetail_20' ) start [2025-03-14 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679825', 'tblTempUsageDetail_20' ) end [2025-03-14 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679825', 'tblTempVendorCDR_20' ) start [2025-03-14 15:41:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679825', 'tblTempVendorCDR_20' ) end [2025-03-14 15:41:21] Production.INFO: ProcessCDR(1,14679825,1,1,2) [2025-03-14 15:41:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:41:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679825,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:41:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:41:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679825,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679825', 'tblTempUsageDetail_20' ) start [2025-03-14 15:41:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679825', 'tblTempUsageDetail_20' ) end [2025-03-14 15:41:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 15:41:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 15:41:26] Production.INFO: ==28019== Releasing lock... [2025-03-14 15:41:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 15:41:26] Production.INFO: 64.5 MB #Memory Used# [2025-03-14 15:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 12:42:06 [end_date_ymd] => 2025-03-14 15:42:06 [RateCDR] => 1 ) [2025-03-14 15:42: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-03-14 12:42:06' and `end` < '2025-03-14 15:42: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-03-14 15:42:20] Production.INFO: count ==4875 [2025-03-14 15:42:22] Production.ERROR: pbx CDR StartTime 2025-03-14 12:42:06 - End Time 2025-03-14 15:42:06 [2025-03-14 15:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 15:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679830', 'tblTempUsageDetail_20' ) start [2025-03-14 15:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679830', 'tblTempUsageDetail_20' ) end [2025-03-14 15:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679830', 'tblTempVendorCDR_20' ) start [2025-03-14 15:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679830', 'tblTempVendorCDR_20' ) end [2025-03-14 15:42:22] Production.INFO: ProcessCDR(1,14679830,1,1,2) [2025-03-14 15:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679830,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679830,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679830', 'tblTempUsageDetail_20' ) start [2025-03-14 15:42:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679830', 'tblTempUsageDetail_20' ) end [2025-03-14 15:42:28] Production.ERROR: pbx prc_insertCDR start [2025-03-14 15:42:28] Production.ERROR: pbx prc_insertCDR end [2025-03-14 15:42:28] Production.INFO: ==28094== Releasing lock... [2025-03-14 15:42:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 15:42:28] Production.INFO: 64.5 MB #Memory Used# [2025-03-14 15:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 12:43:05 [end_date_ymd] => 2025-03-14 15:43:05 [RateCDR] => 1 ) [2025-03-14 15:43: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-03-14 12:43:05' and `end` < '2025-03-14 15:43: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-03-14 15:43:19] Production.INFO: count ==4870 [2025-03-14 15:43:21] Production.ERROR: pbx CDR StartTime 2025-03-14 12:43:05 - End Time 2025-03-14 15:43:05 [2025-03-14 15:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679835', 'tblTempUsageDetail_20' ) start [2025-03-14 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679835', 'tblTempUsageDetail_20' ) end [2025-03-14 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679835', 'tblTempVendorCDR_20' ) start [2025-03-14 15:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679835', 'tblTempVendorCDR_20' ) end [2025-03-14 15:43:21] Production.INFO: ProcessCDR(1,14679835,1,1,2) [2025-03-14 15:43:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679835,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:43:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679835,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:43:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679835', 'tblTempUsageDetail_20' ) start [2025-03-14 15:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679835', 'tblTempUsageDetail_20' ) end [2025-03-14 15:43:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 15:43:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 15:43:27] Production.INFO: ==28174== Releasing lock... [2025-03-14 15:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 15:43:27] Production.INFO: 64.5 MB #Memory Used# [2025-03-14 15:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 12:44:06 [end_date_ymd] => 2025-03-14 15:44:06 [RateCDR] => 1 ) [2025-03-14 15:44: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-03-14 12:44:06' and `end` < '2025-03-14 15:44: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-03-14 15:44:19] Production.INFO: count ==4879 [2025-03-14 15:44:22] Production.ERROR: pbx CDR StartTime 2025-03-14 12:44:06 - End Time 2025-03-14 15:44:06 [2025-03-14 15:44:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 15:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679840', 'tblTempUsageDetail_20' ) start [2025-03-14 15:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679840', 'tblTempUsageDetail_20' ) end [2025-03-14 15:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679840', 'tblTempVendorCDR_20' ) start [2025-03-14 15:44:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679840', 'tblTempVendorCDR_20' ) end [2025-03-14 15:44:22] Production.INFO: ProcessCDR(1,14679840,1,1,2) [2025-03-14 15:44:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:44:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679840,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:44:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679840,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679840', 'tblTempUsageDetail_20' ) start [2025-03-14 15:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679840', 'tblTempUsageDetail_20' ) end [2025-03-14 15:44:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 15:44:28] Production.ERROR: pbx prc_insertCDR end [2025-03-14 15:44:28] Production.INFO: ==28250== Releasing lock... [2025-03-14 15:44:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 15:44:28] Production.INFO: 64.5 MB #Memory Used# [2025-03-14 15:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 12:45:05 [end_date_ymd] => 2025-03-14 15:45:05 [RateCDR] => 1 ) [2025-03-14 15:45: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-03-14 12:45:05' and `end` < '2025-03-14 15:45: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-03-14 15:45:19] Production.INFO: count ==4883 [2025-03-14 15:45:21] Production.ERROR: pbx CDR StartTime 2025-03-14 12:45:05 - End Time 2025-03-14 15:45:05 [2025-03-14 15:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679845', 'tblTempUsageDetail_20' ) start [2025-03-14 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679845', 'tblTempUsageDetail_20' ) end [2025-03-14 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679845', 'tblTempVendorCDR_20' ) start [2025-03-14 15:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679845', 'tblTempVendorCDR_20' ) end [2025-03-14 15:45:21] Production.INFO: ProcessCDR(1,14679845,1,1,2) [2025-03-14 15:45:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679845,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:45:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679845,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679845', 'tblTempUsageDetail_20' ) start [2025-03-14 15:45:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679845', 'tblTempUsageDetail_20' ) end [2025-03-14 15:45:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 15:45:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 15:45:26] Production.INFO: ==28320== Releasing lock... [2025-03-14 15:45:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 15:45:26] Production.INFO: 64.5 MB #Memory Used# [2025-03-14 15:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 12:46:06 [end_date_ymd] => 2025-03-14 15:46:06 [RateCDR] => 1 ) [2025-03-14 15:46: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-03-14 12:46:06' and `end` < '2025-03-14 15:46: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-03-14 15:46:20] Production.INFO: count ==4884 [2025-03-14 15:46:22] Production.ERROR: pbx CDR StartTime 2025-03-14 12:46:06 - End Time 2025-03-14 15:46:06 [2025-03-14 15:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 15:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679850', 'tblTempUsageDetail_20' ) start [2025-03-14 15:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679850', 'tblTempUsageDetail_20' ) end [2025-03-14 15:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679850', 'tblTempVendorCDR_20' ) start [2025-03-14 15:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679850', 'tblTempVendorCDR_20' ) end [2025-03-14 15:46:22] Production.INFO: ProcessCDR(1,14679850,1,1,2) [2025-03-14 15:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679850,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:46:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679850,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679850', 'tblTempUsageDetail_20' ) start [2025-03-14 15:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679850', 'tblTempUsageDetail_20' ) end [2025-03-14 15:46:28] Production.ERROR: pbx prc_insertCDR start [2025-03-14 15:46:28] Production.ERROR: pbx prc_insertCDR end [2025-03-14 15:46:28] Production.INFO: ==28394== Releasing lock... [2025-03-14 15:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 15:46:28] Production.INFO: 64.5 MB #Memory Used# [2025-03-14 15:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 12:47:05 [end_date_ymd] => 2025-03-14 15:47:05 [RateCDR] => 1 ) [2025-03-14 15:47: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-03-14 12:47:05' and `end` < '2025-03-14 15:47: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-03-14 15:47:19] Production.INFO: count ==4883 [2025-03-14 15:47:21] Production.ERROR: pbx CDR StartTime 2025-03-14 12:47:05 - End Time 2025-03-14 15:47:05 [2025-03-14 15:47:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 15:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679855', 'tblTempUsageDetail_20' ) start [2025-03-14 15:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679855', 'tblTempUsageDetail_20' ) end [2025-03-14 15:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679855', 'tblTempVendorCDR_20' ) start [2025-03-14 15:47:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679855', 'tblTempVendorCDR_20' ) end [2025-03-14 15:47:21] Production.INFO: ProcessCDR(1,14679855,1,1,2) [2025-03-14 15:47:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:47:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679855,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:47:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:47:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679855,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679855', 'tblTempUsageDetail_20' ) start [2025-03-14 15:47:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679855', 'tblTempUsageDetail_20' ) end [2025-03-14 15:47:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 15:47:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 15:47:26] Production.INFO: ==28469== Releasing lock... [2025-03-14 15:47:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 15:47:26] Production.INFO: 64.5 MB #Memory Used# [2025-03-14 15:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 12:48:06 [end_date_ymd] => 2025-03-14 15:48:06 [RateCDR] => 1 ) [2025-03-14 15:48: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-03-14 12:48:06' and `end` < '2025-03-14 15:48: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-03-14 15:48:19] Production.INFO: count ==4876 [2025-03-14 15:48:21] Production.ERROR: pbx CDR StartTime 2025-03-14 12:48:06 - End Time 2025-03-14 15:48:06 [2025-03-14 15:48:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679860', 'tblTempUsageDetail_20' ) start [2025-03-14 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679860', 'tblTempUsageDetail_20' ) end [2025-03-14 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679860', 'tblTempVendorCDR_20' ) start [2025-03-14 15:48:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679860', 'tblTempVendorCDR_20' ) end [2025-03-14 15:48:21] Production.INFO: ProcessCDR(1,14679860,1,1,2) [2025-03-14 15:48:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:48:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679860,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:48:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:48:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679860,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679860', 'tblTempUsageDetail_20' ) start [2025-03-14 15:48:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679860', 'tblTempUsageDetail_20' ) end [2025-03-14 15:48:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 15:48:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 15:48:27] Production.INFO: ==28542== Releasing lock... [2025-03-14 15:48:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 15:48:27] Production.INFO: 64.5 MB #Memory Used# [2025-03-14 15:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 12:49:05 [end_date_ymd] => 2025-03-14 15:49:05 [RateCDR] => 1 ) [2025-03-14 15:49: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-03-14 12:49:05' and `end` < '2025-03-14 15:49: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-03-14 15:49:18] Production.INFO: count ==4886 [2025-03-14 15:49:20] Production.ERROR: pbx CDR StartTime 2025-03-14 12:49:05 - End Time 2025-03-14 15:49:05 [2025-03-14 15:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 15:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679862', 'tblTempUsageDetail_20' ) start [2025-03-14 15:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679862', 'tblTempUsageDetail_20' ) end [2025-03-14 15:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679862', 'tblTempVendorCDR_20' ) start [2025-03-14 15:49:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679862', 'tblTempVendorCDR_20' ) end [2025-03-14 15:49:21] Production.INFO: ProcessCDR(1,14679862,1,1,2) [2025-03-14 15:49:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679862,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:49:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679862,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679862', 'tblTempUsageDetail_20' ) start [2025-03-14 15:49:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679862', 'tblTempUsageDetail_20' ) end [2025-03-14 15:49:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 15:49:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 15:49:26] Production.INFO: ==28618== Releasing lock... [2025-03-14 15:49:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 15:49:26] Production.INFO: 64.5 MB #Memory Used# [2025-03-14 15:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 12:50:07 [end_date_ymd] => 2025-03-14 15:50:07 [RateCDR] => 1 ) [2025-03-14 15:50:07] 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-03-14 12:50:07' and `end` < '2025-03-14 15:50:07' 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-03-14 15:50:20] Production.INFO: count ==4878 [2025-03-14 15:50:22] Production.ERROR: pbx CDR StartTime 2025-03-14 12:50:07 - End Time 2025-03-14 15:50:07 [2025-03-14 15:50:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 15:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679871', 'tblTempUsageDetail_20' ) start [2025-03-14 15:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679871', 'tblTempUsageDetail_20' ) end [2025-03-14 15:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679871', 'tblTempVendorCDR_20' ) start [2025-03-14 15:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679871', 'tblTempVendorCDR_20' ) end [2025-03-14 15:50:22] Production.INFO: ProcessCDR(1,14679871,1,1,2) [2025-03-14 15:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:50:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679871,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:50:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:50:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679871,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679871', 'tblTempUsageDetail_20' ) start [2025-03-14 15:50:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679871', 'tblTempUsageDetail_20' ) end [2025-03-14 15:50:28] Production.ERROR: pbx prc_insertCDR start [2025-03-14 15:50:28] Production.ERROR: pbx prc_insertCDR end [2025-03-14 15:50:28] Production.INFO: ==28731== Releasing lock... [2025-03-14 15:50:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 15:50:28] Production.INFO: 64.5 MB #Memory Used# [2025-03-14 15:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 12:51:06 [end_date_ymd] => 2025-03-14 15:51:06 [RateCDR] => 1 ) [2025-03-14 15:51: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-03-14 12:51:06' and `end` < '2025-03-14 15:51: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-03-14 15:51:19] Production.INFO: count ==4889 [2025-03-14 15:51:21] Production.ERROR: pbx CDR StartTime 2025-03-14 12:51:06 - End Time 2025-03-14 15:51:06 [2025-03-14 15:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679876', 'tblTempUsageDetail_20' ) start [2025-03-14 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679876', 'tblTempUsageDetail_20' ) end [2025-03-14 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679876', 'tblTempVendorCDR_20' ) start [2025-03-14 15:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679876', 'tblTempVendorCDR_20' ) end [2025-03-14 15:51:21] Production.INFO: ProcessCDR(1,14679876,1,1,2) [2025-03-14 15:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679876,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679876,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679876', 'tblTempUsageDetail_20' ) start [2025-03-14 15:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679876', 'tblTempUsageDetail_20' ) end [2025-03-14 15:51:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 15:51:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 15:51:27] Production.INFO: ==28806== Releasing lock... [2025-03-14 15:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 15:51:27] Production.INFO: 64.5 MB #Memory Used# [2025-03-14 15:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 12:52:06 [end_date_ymd] => 2025-03-14 15:52:06 [RateCDR] => 1 ) [2025-03-14 15:52: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-03-14 12:52:06' and `end` < '2025-03-14 15:52: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-03-14 15:52:19] Production.INFO: count ==4903 [2025-03-14 15:52:22] Production.ERROR: pbx CDR StartTime 2025-03-14 12:52:06 - End Time 2025-03-14 15:52:06 [2025-03-14 15:52:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679881', 'tblTempUsageDetail_20' ) start [2025-03-14 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679881', 'tblTempUsageDetail_20' ) end [2025-03-14 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679881', 'tblTempVendorCDR_20' ) start [2025-03-14 15:52:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679881', 'tblTempVendorCDR_20' ) end [2025-03-14 15:52:22] Production.INFO: ProcessCDR(1,14679881,1,1,2) [2025-03-14 15:52:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:52:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679881,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:52:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679881,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679881', 'tblTempUsageDetail_20' ) start [2025-03-14 15:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679881', 'tblTempUsageDetail_20' ) end [2025-03-14 15:52:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 15:52:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 15:52:27] Production.INFO: ==28913== Releasing lock... [2025-03-14 15:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 15:52:27] Production.INFO: 64.75 MB #Memory Used# [2025-03-14 15:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 12:53:05 [end_date_ymd] => 2025-03-14 15:53:05 [RateCDR] => 1 ) [2025-03-14 15:53: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-03-14 12:53:05' and `end` < '2025-03-14 15:53: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-03-14 15:53:18] Production.INFO: count ==4906 [2025-03-14 15:53:20] Production.ERROR: pbx CDR StartTime 2025-03-14 12:53:05 - End Time 2025-03-14 15:53:05 [2025-03-14 15:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 15:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679886', 'tblTempUsageDetail_20' ) start [2025-03-14 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679886', 'tblTempUsageDetail_20' ) end [2025-03-14 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679886', 'tblTempVendorCDR_20' ) start [2025-03-14 15:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679886', 'tblTempVendorCDR_20' ) end [2025-03-14 15:53:21] Production.INFO: ProcessCDR(1,14679886,1,1,2) [2025-03-14 15:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679886,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679886,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679886', 'tblTempUsageDetail_20' ) start [2025-03-14 15:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679886', 'tblTempUsageDetail_20' ) end [2025-03-14 15:53:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 15:53:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 15:53:26] Production.INFO: ==28986== Releasing lock... [2025-03-14 15:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 15:53:26] Production.INFO: 64.75 MB #Memory Used# [2025-03-14 15:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 12:54:06 [end_date_ymd] => 2025-03-14 15:54:06 [RateCDR] => 1 ) [2025-03-14 15:54: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-03-14 12:54:06' and `end` < '2025-03-14 15:54: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-03-14 15:54:19] Production.INFO: count ==4917 [2025-03-14 15:54:21] Production.ERROR: pbx CDR StartTime 2025-03-14 12:54:06 - End Time 2025-03-14 15:54:06 [2025-03-14 15:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 15:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679891', 'tblTempUsageDetail_20' ) start [2025-03-14 15:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679891', 'tblTempUsageDetail_20' ) end [2025-03-14 15:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679891', 'tblTempVendorCDR_20' ) start [2025-03-14 15:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679891', 'tblTempVendorCDR_20' ) end [2025-03-14 15:54:21] Production.INFO: ProcessCDR(1,14679891,1,1,2) [2025-03-14 15:54:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679891,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:54:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679891,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679891', 'tblTempUsageDetail_20' ) start [2025-03-14 15:54:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679891', 'tblTempUsageDetail_20' ) end [2025-03-14 15:54:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 15:54:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 15:54:26] Production.INFO: ==29057== Releasing lock... [2025-03-14 15:54:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 15:54:26] Production.INFO: 64.75 MB #Memory Used# [2025-03-14 15:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 12:55:06 [end_date_ymd] => 2025-03-14 15:55:06 [RateCDR] => 1 ) [2025-03-14 15:55: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-03-14 12:55:06' and `end` < '2025-03-14 15:55: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-03-14 15:55:19] Production.INFO: count ==4920 [2025-03-14 15:55:21] Production.ERROR: pbx CDR StartTime 2025-03-14 12:55:06 - End Time 2025-03-14 15:55:06 [2025-03-14 15:55:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 15:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679896', 'tblTempUsageDetail_20' ) start [2025-03-14 15:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679896', 'tblTempUsageDetail_20' ) end [2025-03-14 15:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679896', 'tblTempVendorCDR_20' ) start [2025-03-14 15:55:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679896', 'tblTempVendorCDR_20' ) end [2025-03-14 15:55:21] Production.INFO: ProcessCDR(1,14679896,1,1,2) [2025-03-14 15:55:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:55:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679896,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:55:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679896,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679896', 'tblTempUsageDetail_20' ) start [2025-03-14 15:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679896', 'tblTempUsageDetail_20' ) end [2025-03-14 15:55:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 15:55:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 15:55:26] Production.INFO: ==29131== Releasing lock... [2025-03-14 15:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 15:55:26] Production.INFO: 64.75 MB #Memory Used# [2025-03-14 15:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 12:56:05 [end_date_ymd] => 2025-03-14 15:56:05 [RateCDR] => 1 ) [2025-03-14 15:56: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-03-14 12:56:05' and `end` < '2025-03-14 15:56: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-03-14 15:56:18] Production.INFO: count ==4903 [2025-03-14 15:56:20] Production.ERROR: pbx CDR StartTime 2025-03-14 12:56:05 - End Time 2025-03-14 15:56:05 [2025-03-14 15:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 15:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679901', 'tblTempUsageDetail_20' ) start [2025-03-14 15:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679901', 'tblTempUsageDetail_20' ) end [2025-03-14 15:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679901', 'tblTempVendorCDR_20' ) start [2025-03-14 15:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679901', 'tblTempVendorCDR_20' ) end [2025-03-14 15:56:20] Production.INFO: ProcessCDR(1,14679901,1,1,2) [2025-03-14 15:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679901,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679901,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679901', 'tblTempUsageDetail_20' ) start [2025-03-14 15:56:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679901', 'tblTempUsageDetail_20' ) end [2025-03-14 15:56:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 15:56:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 15:56:26] Production.INFO: ==29208== Releasing lock... [2025-03-14 15:56:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 15:56:26] Production.INFO: 64.75 MB #Memory Used# [2025-03-14 15:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 12:57:05 [end_date_ymd] => 2025-03-14 15:57:05 [RateCDR] => 1 ) [2025-03-14 15:57: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-03-14 12:57:05' and `end` < '2025-03-14 15:57: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-03-14 15:57:18] Production.INFO: count ==4903 [2025-03-14 15:57:20] Production.ERROR: pbx CDR StartTime 2025-03-14 12:57:05 - End Time 2025-03-14 15:57:05 [2025-03-14 15:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 15:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679906', 'tblTempUsageDetail_20' ) start [2025-03-14 15:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679906', 'tblTempUsageDetail_20' ) end [2025-03-14 15:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679906', 'tblTempVendorCDR_20' ) start [2025-03-14 15:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679906', 'tblTempVendorCDR_20' ) end [2025-03-14 15:57:20] Production.INFO: ProcessCDR(1,14679906,1,1,2) [2025-03-14 15:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679906,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679906,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679906', 'tblTempUsageDetail_20' ) start [2025-03-14 15:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679906', 'tblTempUsageDetail_20' ) end [2025-03-14 15:57:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 15:57:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 15:57:24] Production.INFO: ==29285== Releasing lock... [2025-03-14 15:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 15:57:24] Production.INFO: 64.75 MB #Memory Used# [2025-03-14 15:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 12:58:05 [end_date_ymd] => 2025-03-14 15:58:05 [RateCDR] => 1 ) [2025-03-14 15:58: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-03-14 12:58:05' and `end` < '2025-03-14 15:58: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-03-14 15:58:18] Production.INFO: count ==4916 [2025-03-14 15:58:20] Production.ERROR: pbx CDR StartTime 2025-03-14 12:58:05 - End Time 2025-03-14 15:58:05 [2025-03-14 15:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 15:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679911', 'tblTempUsageDetail_20' ) start [2025-03-14 15:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679911', 'tblTempUsageDetail_20' ) end [2025-03-14 15:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679911', 'tblTempVendorCDR_20' ) start [2025-03-14 15:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679911', 'tblTempVendorCDR_20' ) end [2025-03-14 15:58:20] Production.INFO: ProcessCDR(1,14679911,1,1,2) [2025-03-14 15:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679911,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679911,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679911', 'tblTempUsageDetail_20' ) start [2025-03-14 15:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679911', 'tblTempUsageDetail_20' ) end [2025-03-14 15:58:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 15:58:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 15:58:26] Production.INFO: ==29358== Releasing lock... [2025-03-14 15:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 15:58:26] Production.INFO: 64.75 MB #Memory Used# [2025-03-14 15:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 12:59:05 [end_date_ymd] => 2025-03-14 15:59:05 [RateCDR] => 1 ) [2025-03-14 15:59: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-03-14 12:59:05' and `end` < '2025-03-14 15:59: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-03-14 15:59:18] Production.INFO: count ==4910 [2025-03-14 15:59:20] Production.ERROR: pbx CDR StartTime 2025-03-14 12:59:05 - End Time 2025-03-14 15:59:05 [2025-03-14 15:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 15:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679916', 'tblTempUsageDetail_20' ) start [2025-03-14 15:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679916', 'tblTempUsageDetail_20' ) end [2025-03-14 15:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679916', 'tblTempVendorCDR_20' ) start [2025-03-14 15:59:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679916', 'tblTempVendorCDR_20' ) end [2025-03-14 15:59:21] Production.INFO: ProcessCDR(1,14679916,1,1,2) [2025-03-14 15:59:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679916,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 15:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679916,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 15:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679916', 'tblTempUsageDetail_20' ) start [2025-03-14 15:59:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679916', 'tblTempUsageDetail_20' ) end [2025-03-14 15:59:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 15:59:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 15:59:26] Production.INFO: ==29526== Releasing lock... [2025-03-14 15:59:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 15:59:26] Production.INFO: 64.75 MB #Memory Used# [2025-03-14 16:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 13:00:06 [end_date_ymd] => 2025-03-14 16:00:06 [RateCDR] => 1 ) [2025-03-14 16:00: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-03-14 13:00:06' and `end` < '2025-03-14 16:00: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-03-14 16:00:20] Production.INFO: count ==4930 [2025-03-14 16:00:22] Production.ERROR: pbx CDR StartTime 2025-03-14 13:00:06 - End Time 2025-03-14 16:00:06 [2025-03-14 16:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 16:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679922', 'tblTempUsageDetail_20' ) start [2025-03-14 16:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679922', 'tblTempUsageDetail_20' ) end [2025-03-14 16:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679922', 'tblTempVendorCDR_20' ) start [2025-03-14 16:00:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679922', 'tblTempVendorCDR_20' ) end [2025-03-14 16:00:23] Production.INFO: ProcessCDR(1,14679922,1,1,2) [2025-03-14 16:00:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679922,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:00:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679922,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679922', 'tblTempUsageDetail_20' ) start [2025-03-14 16:00:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679922', 'tblTempUsageDetail_20' ) end [2025-03-14 16:00:29] Production.ERROR: pbx prc_insertCDR start [2025-03-14 16:00:29] Production.ERROR: pbx prc_insertCDR end [2025-03-14 16:00:29] Production.INFO: ==29632== Releasing lock... [2025-03-14 16:00:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 16:00:29] Production.INFO: 65 MB #Memory Used# [2025-03-14 16:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 13:01:06 [end_date_ymd] => 2025-03-14 16:01:06 [RateCDR] => 1 ) [2025-03-14 16:01: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-03-14 13:01:06' and `end` < '2025-03-14 16:01: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-03-14 16:01:19] Production.INFO: count ==4946 [2025-03-14 16:01:21] Production.ERROR: pbx CDR StartTime 2025-03-14 13:01:06 - End Time 2025-03-14 16:01:06 [2025-03-14 16:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 16:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679927', 'tblTempUsageDetail_20' ) start [2025-03-14 16:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679927', 'tblTempUsageDetail_20' ) end [2025-03-14 16:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679927', 'tblTempVendorCDR_20' ) start [2025-03-14 16:01:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679927', 'tblTempVendorCDR_20' ) end [2025-03-14 16:01:22] Production.INFO: ProcessCDR(1,14679927,1,1,2) [2025-03-14 16:01:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679927,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679927,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679927', 'tblTempUsageDetail_20' ) start [2025-03-14 16:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679927', 'tblTempUsageDetail_20' ) end [2025-03-14 16:01:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 16:01:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 16:01:27] Production.INFO: ==29719== Releasing lock... [2025-03-14 16:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 16:01:27] Production.INFO: 65 MB #Memory Used# [2025-03-14 16:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 13:02:05 [end_date_ymd] => 2025-03-14 16:02:05 [RateCDR] => 1 ) [2025-03-14 16:02: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-03-14 13:02:05' and `end` < '2025-03-14 16:02: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-03-14 16:02:19] Production.INFO: count ==4965 [2025-03-14 16:02:21] Production.ERROR: pbx CDR StartTime 2025-03-14 13:02:05 - End Time 2025-03-14 16:02:05 [2025-03-14 16:02:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 16:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679932', 'tblTempUsageDetail_20' ) start [2025-03-14 16:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679932', 'tblTempUsageDetail_20' ) end [2025-03-14 16:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679932', 'tblTempVendorCDR_20' ) start [2025-03-14 16:02:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679932', 'tblTempVendorCDR_20' ) end [2025-03-14 16:02:21] Production.INFO: ProcessCDR(1,14679932,1,1,2) [2025-03-14 16:02:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:02:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679932,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:02:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:02:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679932,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679932', 'tblTempUsageDetail_20' ) start [2025-03-14 16:02:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679932', 'tblTempUsageDetail_20' ) end [2025-03-14 16:02:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 16:02:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 16:02:27] Production.INFO: ==29815== Releasing lock... [2025-03-14 16:02:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 16:02:27] Production.INFO: 65.25 MB #Memory Used# [2025-03-14 16:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 13:03:06 [end_date_ymd] => 2025-03-14 16:03:06 [RateCDR] => 1 ) [2025-03-14 16:03: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-03-14 13:03:06' and `end` < '2025-03-14 16:03: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-03-14 16:03:19] Production.INFO: count ==4992 [2025-03-14 16:03:21] Production.ERROR: pbx CDR StartTime 2025-03-14 13:03:06 - End Time 2025-03-14 16:03:06 [2025-03-14 16:03:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679937', 'tblTempUsageDetail_20' ) start [2025-03-14 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679937', 'tblTempUsageDetail_20' ) end [2025-03-14 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679937', 'tblTempVendorCDR_20' ) start [2025-03-14 16:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679937', 'tblTempVendorCDR_20' ) end [2025-03-14 16:03:21] Production.INFO: ProcessCDR(1,14679937,1,1,2) [2025-03-14 16:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:03:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679937,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:03:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:03:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679937,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:03:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679937', 'tblTempUsageDetail_20' ) start [2025-03-14 16:03:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679937', 'tblTempUsageDetail_20' ) end [2025-03-14 16:03:28] Production.ERROR: pbx prc_insertCDR start [2025-03-14 16:03:28] Production.ERROR: pbx prc_insertCDR end [2025-03-14 16:03:28] Production.INFO: ==29887== Releasing lock... [2025-03-14 16:03:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 16:03:28] Production.INFO: 65.25 MB #Memory Used# [2025-03-14 16:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 13:04:05 [end_date_ymd] => 2025-03-14 16:04:05 [RateCDR] => 1 ) [2025-03-14 16:04: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-03-14 13:04:05' and `end` < '2025-03-14 16:04: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-03-14 16:04:18] Production.INFO: count ==5011 [2025-03-14 16:04:21] Production.ERROR: pbx CDR StartTime 2025-03-14 13:04:05 - End Time 2025-03-14 16:04:05 [2025-03-14 16:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 16:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679942', 'tblTempUsageDetail_20' ) start [2025-03-14 16:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679942', 'tblTempUsageDetail_20' ) end [2025-03-14 16:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679942', 'tblTempVendorCDR_20' ) start [2025-03-14 16:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679942', 'tblTempVendorCDR_20' ) end [2025-03-14 16:04:21] Production.INFO: ProcessCDR(1,14679942,1,1,2) [2025-03-14 16:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:04:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679942,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:04:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:04:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679942,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:04:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679942', 'tblTempUsageDetail_20' ) start [2025-03-14 16:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679942', 'tblTempUsageDetail_20' ) end [2025-03-14 16:04:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 16:04:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 16:04:27] Production.INFO: ==29964== Releasing lock... [2025-03-14 16:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 16:04:27] Production.INFO: 65.5 MB #Memory Used# [2025-03-14 16:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 13:05:05 [end_date_ymd] => 2025-03-14 16:05:05 [RateCDR] => 1 ) [2025-03-14 16:05: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-03-14 13:05:05' and `end` < '2025-03-14 16:05: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-03-14 16:05:19] Production.INFO: count ==5009 [2025-03-14 16:05:21] Production.ERROR: pbx CDR StartTime 2025-03-14 13:05:05 - End Time 2025-03-14 16:05:05 [2025-03-14 16:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 16:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679947', 'tblTempUsageDetail_20' ) start [2025-03-14 16:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679947', 'tblTempUsageDetail_20' ) end [2025-03-14 16:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679947', 'tblTempVendorCDR_20' ) start [2025-03-14 16:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679947', 'tblTempVendorCDR_20' ) end [2025-03-14 16:05:21] Production.INFO: ProcessCDR(1,14679947,1,1,2) [2025-03-14 16:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679947,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:05:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679947,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679947', 'tblTempUsageDetail_20' ) start [2025-03-14 16:05:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679947', 'tblTempUsageDetail_20' ) end [2025-03-14 16:05:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 16:05:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 16:05:27] Production.INFO: ==30077== Releasing lock... [2025-03-14 16:05:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 16:05:27] Production.INFO: 65.5 MB #Memory Used# [2025-03-14 16:06:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 13:06:07 [end_date_ymd] => 2025-03-14 16:06:07 [RateCDR] => 1 ) [2025-03-14 16:06:07] 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-03-14 13:06:07' and `end` < '2025-03-14 16:06:07' 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-03-14 16:06:20] Production.INFO: count ==5033 [2025-03-14 16:06:22] Production.ERROR: pbx CDR StartTime 2025-03-14 13:06:07 - End Time 2025-03-14 16:06:07 [2025-03-14 16:06:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 16:06:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679952', 'tblTempUsageDetail_20' ) start [2025-03-14 16:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679952', 'tblTempUsageDetail_20' ) end [2025-03-14 16:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679952', 'tblTempVendorCDR_20' ) start [2025-03-14 16:06:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679952', 'tblTempVendorCDR_20' ) end [2025-03-14 16:06:23] Production.INFO: ProcessCDR(1,14679952,1,1,2) [2025-03-14 16:06:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:06:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679952,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:06:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:06:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679952,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:06:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679952', 'tblTempUsageDetail_20' ) start [2025-03-14 16:06:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679952', 'tblTempUsageDetail_20' ) end [2025-03-14 16:06:29] Production.ERROR: pbx prc_insertCDR start [2025-03-14 16:06:29] Production.ERROR: pbx prc_insertCDR end [2025-03-14 16:06:29] Production.INFO: ==30156== Releasing lock... [2025-03-14 16:06:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 16:06:29] Production.INFO: 65.75 MB #Memory Used# [2025-03-14 16:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 13:07:06 [end_date_ymd] => 2025-03-14 16:07:06 [RateCDR] => 1 ) [2025-03-14 16:07: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-03-14 13:07:06' and `end` < '2025-03-14 16:07: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-03-14 16:07:19] Production.INFO: count ==5042 [2025-03-14 16:07:21] Production.ERROR: pbx CDR StartTime 2025-03-14 13:07:06 - End Time 2025-03-14 16:07:06 [2025-03-14 16:07:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 16:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679957', 'tblTempUsageDetail_20' ) start [2025-03-14 16:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679957', 'tblTempUsageDetail_20' ) end [2025-03-14 16:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679957', 'tblTempVendorCDR_20' ) start [2025-03-14 16:07:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679957', 'tblTempVendorCDR_20' ) end [2025-03-14 16:07:21] Production.INFO: ProcessCDR(1,14679957,1,1,2) [2025-03-14 16:07:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:07:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679957,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:07:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:07:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679957,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679957', 'tblTempUsageDetail_20' ) start [2025-03-14 16:07:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679957', 'tblTempUsageDetail_20' ) end [2025-03-14 16:07:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 16:07:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 16:07:27] Production.INFO: ==30233== Releasing lock... [2025-03-14 16:07:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 16:07:27] Production.INFO: 65.75 MB #Memory Used# [2025-03-14 16:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 13:08:05 [end_date_ymd] => 2025-03-14 16:08:05 [RateCDR] => 1 ) [2025-03-14 16:08: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-03-14 13:08:05' and `end` < '2025-03-14 16:08: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-03-14 16:08:18] Production.INFO: count ==5041 [2025-03-14 16:08:21] Production.ERROR: pbx CDR StartTime 2025-03-14 13:08:05 - End Time 2025-03-14 16:08:05 [2025-03-14 16:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 16:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679962', 'tblTempUsageDetail_20' ) start [2025-03-14 16:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679962', 'tblTempUsageDetail_20' ) end [2025-03-14 16:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679962', 'tblTempVendorCDR_20' ) start [2025-03-14 16:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679962', 'tblTempVendorCDR_20' ) end [2025-03-14 16:08:21] Production.INFO: ProcessCDR(1,14679962,1,1,2) [2025-03-14 16:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:08:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679962,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:08:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:08:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679962,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:08:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679962', 'tblTempUsageDetail_20' ) start [2025-03-14 16:08:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679962', 'tblTempUsageDetail_20' ) end [2025-03-14 16:08:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 16:08:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 16:08:27] Production.INFO: ==30306== Releasing lock... [2025-03-14 16:08:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 16:08:27] Production.INFO: 65.75 MB #Memory Used# [2025-03-14 16:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 13:09:06 [end_date_ymd] => 2025-03-14 16:09:06 [RateCDR] => 1 ) [2025-03-14 16:09: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-03-14 13:09:06' and `end` < '2025-03-14 16:09: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-03-14 16:09:19] Production.INFO: count ==5063 [2025-03-14 16:09:21] Production.ERROR: pbx CDR StartTime 2025-03-14 13:09:06 - End Time 2025-03-14 16:09:06 [2025-03-14 16:09:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679967', 'tblTempUsageDetail_20' ) start [2025-03-14 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679967', 'tblTempUsageDetail_20' ) end [2025-03-14 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679967', 'tblTempVendorCDR_20' ) start [2025-03-14 16:09:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679967', 'tblTempVendorCDR_20' ) end [2025-03-14 16:09:21] Production.INFO: ProcessCDR(1,14679967,1,1,2) [2025-03-14 16:09:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:09:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679967,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:09:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679967,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679967', 'tblTempUsageDetail_20' ) start [2025-03-14 16:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679967', 'tblTempUsageDetail_20' ) end [2025-03-14 16:09:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 16:09:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 16:09:27] Production.INFO: ==30377== Releasing lock... [2025-03-14 16:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 16:09:27] Production.INFO: 66 MB #Memory Used# [2025-03-14 16:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 13:10:06 [end_date_ymd] => 2025-03-14 16:10:06 [RateCDR] => 1 ) [2025-03-14 16:10: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-03-14 13:10:06' and `end` < '2025-03-14 16:10: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-03-14 16:10:20] Production.INFO: count ==5084 [2025-03-14 16:10:22] Production.ERROR: pbx CDR StartTime 2025-03-14 13:10:06 - End Time 2025-03-14 16:10:06 [2025-03-14 16:10:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 16:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679973', 'tblTempUsageDetail_20' ) start [2025-03-14 16:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679973', 'tblTempUsageDetail_20' ) end [2025-03-14 16:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679973', 'tblTempVendorCDR_20' ) start [2025-03-14 16:10:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679973', 'tblTempVendorCDR_20' ) end [2025-03-14 16:10:22] Production.INFO: ProcessCDR(1,14679973,1,1,2) [2025-03-14 16:10:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:10:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679973,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:10:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:10:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679973,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679973', 'tblTempUsageDetail_20' ) start [2025-03-14 16:10:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679973', 'tblTempUsageDetail_20' ) end [2025-03-14 16:10:28] Production.ERROR: pbx prc_insertCDR start [2025-03-14 16:10:28] Production.ERROR: pbx prc_insertCDR end [2025-03-14 16:10:28] Production.INFO: ==30454== Releasing lock... [2025-03-14 16:10:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 16:10:28] Production.INFO: 66 MB #Memory Used# [2025-03-14 16:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 13:11:05 [end_date_ymd] => 2025-03-14 16:11:05 [RateCDR] => 1 ) [2025-03-14 16:11: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-03-14 13:11:05' and `end` < '2025-03-14 16:11: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-03-14 16:11:19] Production.INFO: count ==5120 [2025-03-14 16:11:21] Production.ERROR: pbx CDR StartTime 2025-03-14 13:11:05 - End Time 2025-03-14 16:11:05 [2025-03-14 16:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679978', 'tblTempUsageDetail_20' ) start [2025-03-14 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679978', 'tblTempUsageDetail_20' ) end [2025-03-14 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679978', 'tblTempVendorCDR_20' ) start [2025-03-14 16:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679978', 'tblTempVendorCDR_20' ) end [2025-03-14 16:11:21] Production.INFO: ProcessCDR(1,14679978,1,1,2) [2025-03-14 16:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679978,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:11:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679978,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679978', 'tblTempUsageDetail_20' ) start [2025-03-14 16:11:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679978', 'tblTempUsageDetail_20' ) end [2025-03-14 16:11:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 16:11:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 16:11:27] Production.INFO: ==30531== Releasing lock... [2025-03-14 16:11:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 16:11:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-14 16:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 13:12:05 [end_date_ymd] => 2025-03-14 16:12:05 [RateCDR] => 1 ) [2025-03-14 16:12: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-03-14 13:12:05' and `end` < '2025-03-14 16:12: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-03-14 16:12:18] Production.INFO: count ==5107 [2025-03-14 16:12:21] Production.ERROR: pbx CDR StartTime 2025-03-14 13:12:05 - End Time 2025-03-14 16:12:05 [2025-03-14 16:12:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679983', 'tblTempUsageDetail_20' ) start [2025-03-14 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679983', 'tblTempUsageDetail_20' ) end [2025-03-14 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679983', 'tblTempVendorCDR_20' ) start [2025-03-14 16:12:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679983', 'tblTempVendorCDR_20' ) end [2025-03-14 16:12:21] Production.INFO: ProcessCDR(1,14679983,1,1,2) [2025-03-14 16:12:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:12:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679983,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:12:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:12:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679983,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:12:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679983', 'tblTempUsageDetail_20' ) start [2025-03-14 16:12:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679983', 'tblTempUsageDetail_20' ) end [2025-03-14 16:12:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 16:12:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 16:12:27] Production.INFO: ==30602== Releasing lock... [2025-03-14 16:12:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 16:12:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-14 16:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 13:13:05 [end_date_ymd] => 2025-03-14 16:13:05 [RateCDR] => 1 ) [2025-03-14 16:13: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-03-14 13:13:05' and `end` < '2025-03-14 16:13: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-03-14 16:13:19] Production.INFO: count ==5104 [2025-03-14 16:13:21] Production.ERROR: pbx CDR StartTime 2025-03-14 13:13:05 - End Time 2025-03-14 16:13:05 [2025-03-14 16:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 16:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679988', 'tblTempUsageDetail_20' ) start [2025-03-14 16:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679988', 'tblTempUsageDetail_20' ) end [2025-03-14 16:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679988', 'tblTempVendorCDR_20' ) start [2025-03-14 16:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679988', 'tblTempVendorCDR_20' ) end [2025-03-14 16:13:21] Production.INFO: ProcessCDR(1,14679988,1,1,2) [2025-03-14 16:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679988,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:13:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679988,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679988', 'tblTempUsageDetail_20' ) start [2025-03-14 16:13:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679988', 'tblTempUsageDetail_20' ) end [2025-03-14 16:13:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 16:13:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 16:13:27] Production.INFO: ==30677== Releasing lock... [2025-03-14 16:13:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 16:13:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-14 16:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 13:14:05 [end_date_ymd] => 2025-03-14 16:14:05 [RateCDR] => 1 ) [2025-03-14 16:14: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-03-14 13:14:05' and `end` < '2025-03-14 16:14: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-03-14 16:14:18] Production.INFO: count ==5074 [2025-03-14 16:14:21] Production.ERROR: pbx CDR StartTime 2025-03-14 13:14:05 - End Time 2025-03-14 16:14:05 [2025-03-14 16:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679993', 'tblTempUsageDetail_20' ) start [2025-03-14 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679993', 'tblTempUsageDetail_20' ) end [2025-03-14 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679993', 'tblTempVendorCDR_20' ) start [2025-03-14 16:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679993', 'tblTempVendorCDR_20' ) end [2025-03-14 16:14:21] Production.INFO: ProcessCDR(1,14679993,1,1,2) [2025-03-14 16:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:14:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679993,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:14:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679993,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679993', 'tblTempUsageDetail_20' ) start [2025-03-14 16:14:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679993', 'tblTempUsageDetail_20' ) end [2025-03-14 16:14:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 16:14:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 16:14:27] Production.INFO: ==30750== Releasing lock... [2025-03-14 16:14:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 16:14:27] Production.INFO: 66 MB #Memory Used# [2025-03-14 16:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 13:15:05 [end_date_ymd] => 2025-03-14 16:15:05 [RateCDR] => 1 ) [2025-03-14 16:15: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-03-14 13:15:05' and `end` < '2025-03-14 16:15: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-03-14 16:15:19] Production.INFO: count ==5076 [2025-03-14 16:15:21] Production.ERROR: pbx CDR StartTime 2025-03-14 13:15:05 - End Time 2025-03-14 16:15:05 [2025-03-14 16:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 16:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679998', 'tblTempUsageDetail_20' ) start [2025-03-14 16:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14679998', 'tblTempUsageDetail_20' ) end [2025-03-14 16:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679998', 'tblTempVendorCDR_20' ) start [2025-03-14 16:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14679998', 'tblTempVendorCDR_20' ) end [2025-03-14 16:15:21] Production.INFO: ProcessCDR(1,14679998,1,1,2) [2025-03-14 16:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14679998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14679998,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14679998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:15:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14679998,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679998', 'tblTempUsageDetail_20' ) start [2025-03-14 16:15:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14679998', 'tblTempUsageDetail_20' ) end [2025-03-14 16:15:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 16:15:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 16:15:27] Production.INFO: ==30822== Releasing lock... [2025-03-14 16:15:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 16:15:27] Production.INFO: 66 MB #Memory Used# [2025-03-14 16:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 13:16:06 [end_date_ymd] => 2025-03-14 16:16:06 [RateCDR] => 1 ) [2025-03-14 16:16: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-03-14 13:16:06' and `end` < '2025-03-14 16:16: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-03-14 16:16:20] Production.INFO: count ==5065 [2025-03-14 16:16:22] Production.ERROR: pbx CDR StartTime 2025-03-14 13:16:06 - End Time 2025-03-14 16:16:06 [2025-03-14 16:16:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 16:16:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680003', 'tblTempUsageDetail_20' ) start [2025-03-14 16:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680003', 'tblTempUsageDetail_20' ) end [2025-03-14 16:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680003', 'tblTempVendorCDR_20' ) start [2025-03-14 16:16:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680003', 'tblTempVendorCDR_20' ) end [2025-03-14 16:16:23] Production.INFO: ProcessCDR(1,14680003,1,1,2) [2025-03-14 16:16:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:16:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680003,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:16:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:16:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680003,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680003', 'tblTempUsageDetail_20' ) start [2025-03-14 16:16:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680003', 'tblTempUsageDetail_20' ) end [2025-03-14 16:16:28] Production.ERROR: pbx prc_insertCDR start [2025-03-14 16:16:29] Production.ERROR: pbx prc_insertCDR end [2025-03-14 16:16:29] Production.INFO: ==30928== Releasing lock... [2025-03-14 16:16:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 16:16:29] Production.INFO: 66 MB #Memory Used# [2025-03-14 16:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 13:17:05 [end_date_ymd] => 2025-03-14 16:17:05 [RateCDR] => 1 ) [2025-03-14 16:17: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-03-14 13:17:05' and `end` < '2025-03-14 16:17: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-03-14 16:17:19] Production.INFO: count ==5069 [2025-03-14 16:17:21] Production.ERROR: pbx CDR StartTime 2025-03-14 13:17:05 - End Time 2025-03-14 16:17:05 [2025-03-14 16:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680008', 'tblTempUsageDetail_20' ) start [2025-03-14 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680008', 'tblTempUsageDetail_20' ) end [2025-03-14 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680008', 'tblTempVendorCDR_20' ) start [2025-03-14 16:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680008', 'tblTempVendorCDR_20' ) end [2025-03-14 16:17:21] Production.INFO: ProcessCDR(1,14680008,1,1,2) [2025-03-14 16:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:17:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680008,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:17:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:17:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680008,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680008', 'tblTempUsageDetail_20' ) start [2025-03-14 16:17:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680008', 'tblTempUsageDetail_20' ) end [2025-03-14 16:17:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 16:17:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 16:17:27] Production.INFO: ==31037== Releasing lock... [2025-03-14 16:17:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 16:17:27] Production.INFO: 66 MB #Memory Used# [2025-03-14 16:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 13:18:06 [end_date_ymd] => 2025-03-14 16:18:06 [RateCDR] => 1 ) [2025-03-14 16:18: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-03-14 13:18:06' and `end` < '2025-03-14 16:18: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-03-14 16:18:20] Production.INFO: count ==5064 [2025-03-14 16:18:22] Production.ERROR: pbx CDR StartTime 2025-03-14 13:18:06 - End Time 2025-03-14 16:18:06 [2025-03-14 16:18:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 16:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680013', 'tblTempUsageDetail_20' ) start [2025-03-14 16:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680013', 'tblTempUsageDetail_20' ) end [2025-03-14 16:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680013', 'tblTempVendorCDR_20' ) start [2025-03-14 16:18:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680013', 'tblTempVendorCDR_20' ) end [2025-03-14 16:18:22] Production.INFO: ProcessCDR(1,14680013,1,1,2) [2025-03-14 16:18:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:18:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680013,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:18:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:18:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680013,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:18:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680013', 'tblTempUsageDetail_20' ) start [2025-03-14 16:18:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680013', 'tblTempUsageDetail_20' ) end [2025-03-14 16:18:28] Production.ERROR: pbx prc_insertCDR start [2025-03-14 16:18:28] Production.ERROR: pbx prc_insertCDR end [2025-03-14 16:18:28] Production.INFO: ==31142== Releasing lock... [2025-03-14 16:18:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 16:18:28] Production.INFO: 66 MB #Memory Used# [2025-03-14 16:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 13:19:05 [end_date_ymd] => 2025-03-14 16:19:05 [RateCDR] => 1 ) [2025-03-14 16:19: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-03-14 13:19:05' and `end` < '2025-03-14 16:19: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-03-14 16:19:19] Production.INFO: count ==5080 [2025-03-14 16:19:21] Production.ERROR: pbx CDR StartTime 2025-03-14 13:19:05 - End Time 2025-03-14 16:19:05 [2025-03-14 16:19:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680018', 'tblTempUsageDetail_20' ) start [2025-03-14 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680018', 'tblTempUsageDetail_20' ) end [2025-03-14 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680018', 'tblTempVendorCDR_20' ) start [2025-03-14 16:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680018', 'tblTempVendorCDR_20' ) end [2025-03-14 16:19:21] Production.INFO: ProcessCDR(1,14680018,1,1,2) [2025-03-14 16:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:19:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680018,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:19:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:19:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680018,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:19:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680018', 'tblTempUsageDetail_20' ) start [2025-03-14 16:19:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680018', 'tblTempUsageDetail_20' ) end [2025-03-14 16:19:28] Production.ERROR: pbx prc_insertCDR start [2025-03-14 16:19:28] Production.ERROR: pbx prc_insertCDR end [2025-03-14 16:19:28] Production.INFO: ==31219== Releasing lock... [2025-03-14 16:19:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 16:19:28] Production.INFO: 66 MB #Memory Used# [2025-03-14 16:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 13:20:07 [end_date_ymd] => 2025-03-14 16:20:07 [RateCDR] => 1 ) [2025-03-14 16:20:07] 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-03-14 13:20:07' and `end` < '2025-03-14 16:20:07' 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-03-14 16:20:20] Production.INFO: count ==5077 [2025-03-14 16:20:22] Production.ERROR: pbx CDR StartTime 2025-03-14 13:20:07 - End Time 2025-03-14 16:20:07 [2025-03-14 16:20:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 16:20:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680024', 'tblTempUsageDetail_20' ) start [2025-03-14 16:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680024', 'tblTempUsageDetail_20' ) end [2025-03-14 16:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680024', 'tblTempVendorCDR_20' ) start [2025-03-14 16:20:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680024', 'tblTempVendorCDR_20' ) end [2025-03-14 16:20:23] Production.INFO: ProcessCDR(1,14680024,1,1,2) [2025-03-14 16:20:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:20:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680024,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:20:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:20:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680024,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680024', 'tblTempUsageDetail_20' ) start [2025-03-14 16:20:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680024', 'tblTempUsageDetail_20' ) end [2025-03-14 16:20:28] Production.ERROR: pbx prc_insertCDR start [2025-03-14 16:20:28] Production.ERROR: pbx prc_insertCDR end [2025-03-14 16:20:28] Production.INFO: ==31325== Releasing lock... [2025-03-14 16:20:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 16:20:28] Production.INFO: 66 MB #Memory Used# [2025-03-14 16:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 13:21:06 [end_date_ymd] => 2025-03-14 16:21:06 [RateCDR] => 1 ) [2025-03-14 16:21: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-03-14 13:21:06' and `end` < '2025-03-14 16:21: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-03-14 16:21:19] Production.INFO: count ==5110 [2025-03-14 16:21:21] Production.ERROR: pbx CDR StartTime 2025-03-14 13:21:06 - End Time 2025-03-14 16:21:06 [2025-03-14 16:21:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 16:21:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680029', 'tblTempUsageDetail_20' ) start [2025-03-14 16:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680029', 'tblTempUsageDetail_20' ) end [2025-03-14 16:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680029', 'tblTempVendorCDR_20' ) start [2025-03-14 16:21:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680029', 'tblTempVendorCDR_20' ) end [2025-03-14 16:21:22] Production.INFO: ProcessCDR(1,14680029,1,1,2) [2025-03-14 16:21:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:21:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680029,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:21:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:21:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680029,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680029', 'tblTempUsageDetail_20' ) start [2025-03-14 16:21:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680029', 'tblTempUsageDetail_20' ) end [2025-03-14 16:21:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 16:21:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 16:21:27] Production.INFO: ==31437== Releasing lock... [2025-03-14 16:21:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 16:21:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-14 16:22:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 13:22:07 [end_date_ymd] => 2025-03-14 16:22:07 [RateCDR] => 1 ) [2025-03-14 16:22:07] 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-03-14 13:22:07' and `end` < '2025-03-14 16:22:07' 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-03-14 16:22:20] Production.INFO: count ==5115 [2025-03-14 16:22:22] Production.ERROR: pbx CDR StartTime 2025-03-14 13:22:07 - End Time 2025-03-14 16:22:07 [2025-03-14 16:22:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 16:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680034', 'tblTempUsageDetail_20' ) start [2025-03-14 16:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680034', 'tblTempUsageDetail_20' ) end [2025-03-14 16:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680034', 'tblTempVendorCDR_20' ) start [2025-03-14 16:22:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680034', 'tblTempVendorCDR_20' ) end [2025-03-14 16:22:22] Production.INFO: ProcessCDR(1,14680034,1,1,2) [2025-03-14 16:22:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:22:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680034,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:22:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:22:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680034,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680034', 'tblTempUsageDetail_20' ) start [2025-03-14 16:22:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680034', 'tblTempUsageDetail_20' ) end [2025-03-14 16:22:28] Production.ERROR: pbx prc_insertCDR start [2025-03-14 16:22:28] Production.ERROR: pbx prc_insertCDR end [2025-03-14 16:22:28] Production.INFO: ==31514== Releasing lock... [2025-03-14 16:22:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 16:22:28] Production.INFO: 66.25 MB #Memory Used# [2025-03-14 16:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 13:23:05 [end_date_ymd] => 2025-03-14 16:23:05 [RateCDR] => 1 ) [2025-03-14 16:23: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-03-14 13:23:05' and `end` < '2025-03-14 16:23: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-03-14 16:23:19] Production.INFO: count ==5106 [2025-03-14 16:23:21] Production.ERROR: pbx CDR StartTime 2025-03-14 13:23:05 - End Time 2025-03-14 16:23:05 [2025-03-14 16:23:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680039', 'tblTempUsageDetail_20' ) start [2025-03-14 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680039', 'tblTempUsageDetail_20' ) end [2025-03-14 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680039', 'tblTempVendorCDR_20' ) start [2025-03-14 16:23:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680039', 'tblTempVendorCDR_20' ) end [2025-03-14 16:23:21] Production.INFO: ProcessCDR(1,14680039,1,1,2) [2025-03-14 16:23:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:23:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680039,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:23:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:23:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680039,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680039', 'tblTempUsageDetail_20' ) start [2025-03-14 16:23:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680039', 'tblTempUsageDetail_20' ) end [2025-03-14 16:23:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 16:23:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 16:23:26] Production.INFO: ==31592== Releasing lock... [2025-03-14 16:23:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 16:23:26] Production.INFO: 66.25 MB #Memory Used# [2025-03-14 16:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 13:24:06 [end_date_ymd] => 2025-03-14 16:24:06 [RateCDR] => 1 ) [2025-03-14 16:24: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-03-14 13:24:06' and `end` < '2025-03-14 16:24: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-03-14 16:24:19] Production.INFO: count ==5130 [2025-03-14 16:24:21] Production.ERROR: pbx CDR StartTime 2025-03-14 13:24:06 - End Time 2025-03-14 16:24:06 [2025-03-14 16:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 16:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680044', 'tblTempUsageDetail_20' ) start [2025-03-14 16:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680044', 'tblTempUsageDetail_20' ) end [2025-03-14 16:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680044', 'tblTempVendorCDR_20' ) start [2025-03-14 16:24:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680044', 'tblTempVendorCDR_20' ) end [2025-03-14 16:24:22] Production.INFO: ProcessCDR(1,14680044,1,1,2) [2025-03-14 16:24:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:24:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680044,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:24:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:24:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680044,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680044', 'tblTempUsageDetail_20' ) start [2025-03-14 16:24:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680044', 'tblTempUsageDetail_20' ) end [2025-03-14 16:24:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 16:24:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 16:24:27] Production.INFO: ==31662== Releasing lock... [2025-03-14 16:24:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 16:24:27] Production.INFO: 66.5 MB #Memory Used# [2025-03-14 16:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 13:25:05 [end_date_ymd] => 2025-03-14 16:25:05 [RateCDR] => 1 ) [2025-03-14 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-03-14 13:25:05' and `end` < '2025-03-14 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-03-14 16:25:19] Production.INFO: count ==5135 [2025-03-14 16:25:21] Production.ERROR: pbx CDR StartTime 2025-03-14 13:25:05 - End Time 2025-03-14 16:25:05 [2025-03-14 16:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680049', 'tblTempUsageDetail_20' ) start [2025-03-14 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680049', 'tblTempUsageDetail_20' ) end [2025-03-14 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680049', 'tblTempVendorCDR_20' ) start [2025-03-14 16:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680049', 'tblTempVendorCDR_20' ) end [2025-03-14 16:25:21] Production.INFO: ProcessCDR(1,14680049,1,1,2) [2025-03-14 16:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680049,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:25:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680049,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680049', 'tblTempUsageDetail_20' ) start [2025-03-14 16:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680049', 'tblTempUsageDetail_20' ) end [2025-03-14 16:25:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 16:25:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 16:25:27] Production.INFO: ==31737== Releasing lock... [2025-03-14 16:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 16:25:27] Production.INFO: 66.5 MB #Memory Used# [2025-03-14 16:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 13:26:05 [end_date_ymd] => 2025-03-14 16:26:05 [RateCDR] => 1 ) [2025-03-14 16:26: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-03-14 13:26:05' and `end` < '2025-03-14 16:26: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-03-14 16:26:18] Production.INFO: count ==5140 [2025-03-14 16:26:21] Production.ERROR: pbx CDR StartTime 2025-03-14 13:26:05 - End Time 2025-03-14 16:26:05 [2025-03-14 16:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 16:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680054', 'tblTempUsageDetail_20' ) start [2025-03-14 16:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680054', 'tblTempUsageDetail_20' ) end [2025-03-14 16:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680054', 'tblTempVendorCDR_20' ) start [2025-03-14 16:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680054', 'tblTempVendorCDR_20' ) end [2025-03-14 16:26:21] Production.INFO: ProcessCDR(1,14680054,1,1,2) [2025-03-14 16:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680054,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680054,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680054', 'tblTempUsageDetail_20' ) start [2025-03-14 16:26:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680054', 'tblTempUsageDetail_20' ) end [2025-03-14 16:26:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 16:26:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 16:26:27] Production.INFO: ==31842== Releasing lock... [2025-03-14 16:26:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 16:26:27] Production.INFO: 66.5 MB #Memory Used# [2025-03-14 16:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 13:27:06 [end_date_ymd] => 2025-03-14 16:27:06 [RateCDR] => 1 ) [2025-03-14 16:27: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-03-14 13:27:06' and `end` < '2025-03-14 16:27: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-03-14 16:27:19] Production.INFO: count ==5130 [2025-03-14 16:27:22] Production.ERROR: pbx CDR StartTime 2025-03-14 13:27:06 - End Time 2025-03-14 16:27:06 [2025-03-14 16:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 16:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680059', 'tblTempUsageDetail_20' ) start [2025-03-14 16:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680059', 'tblTempUsageDetail_20' ) end [2025-03-14 16:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680059', 'tblTempVendorCDR_20' ) start [2025-03-14 16:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680059', 'tblTempVendorCDR_20' ) end [2025-03-14 16:27:22] Production.INFO: ProcessCDR(1,14680059,1,1,2) [2025-03-14 16:27:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:27:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680059,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:27:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:27:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680059,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680059', 'tblTempUsageDetail_20' ) start [2025-03-14 16:27:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680059', 'tblTempUsageDetail_20' ) end [2025-03-14 16:27:28] Production.ERROR: pbx prc_insertCDR start [2025-03-14 16:27:28] Production.ERROR: pbx prc_insertCDR end [2025-03-14 16:27:28] Production.INFO: ==31917== Releasing lock... [2025-03-14 16:27:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 16:27:28] Production.INFO: 66.5 MB #Memory Used# [2025-03-14 16:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 13:28:06 [end_date_ymd] => 2025-03-14 16:28:06 [RateCDR] => 1 ) [2025-03-14 16:28: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-03-14 13:28:06' and `end` < '2025-03-14 16:28: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-03-14 16:28:20] Production.INFO: count ==5141 [2025-03-14 16:28:22] Production.ERROR: pbx CDR StartTime 2025-03-14 13:28:06 - End Time 2025-03-14 16:28:06 [2025-03-14 16:28:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 16:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680064', 'tblTempUsageDetail_20' ) start [2025-03-14 16:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680064', 'tblTempUsageDetail_20' ) end [2025-03-14 16:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680064', 'tblTempVendorCDR_20' ) start [2025-03-14 16:28:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680064', 'tblTempVendorCDR_20' ) end [2025-03-14 16:28:22] Production.INFO: ProcessCDR(1,14680064,1,1,2) [2025-03-14 16:28:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:28:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680064,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:28:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:28:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680064,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680064', 'tblTempUsageDetail_20' ) start [2025-03-14 16:28:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680064', 'tblTempUsageDetail_20' ) end [2025-03-14 16:28:28] Production.ERROR: pbx prc_insertCDR start [2025-03-14 16:28:28] Production.ERROR: pbx prc_insertCDR end [2025-03-14 16:28:28] Production.INFO: ==32025== Releasing lock... [2025-03-14 16:28:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 16:28:28] Production.INFO: 66.5 MB #Memory Used# [2025-03-14 16:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 13:29:05 [end_date_ymd] => 2025-03-14 16:29:05 [RateCDR] => 1 ) [2025-03-14 16:29: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-03-14 13:29:05' and `end` < '2025-03-14 16:29: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-03-14 16:29:19] Production.INFO: count ==5130 [2025-03-14 16:29:21] Production.ERROR: pbx CDR StartTime 2025-03-14 13:29:05 - End Time 2025-03-14 16:29:05 [2025-03-14 16:29:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 16:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680069', 'tblTempUsageDetail_20' ) start [2025-03-14 16:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680069', 'tblTempUsageDetail_20' ) end [2025-03-14 16:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680069', 'tblTempVendorCDR_20' ) start [2025-03-14 16:29:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680069', 'tblTempVendorCDR_20' ) end [2025-03-14 16:29:21] Production.INFO: ProcessCDR(1,14680069,1,1,2) [2025-03-14 16:29:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:29:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680069,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:29:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:29:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680069,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:29:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680069', 'tblTempUsageDetail_20' ) start [2025-03-14 16:29:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680069', 'tblTempUsageDetail_20' ) end [2025-03-14 16:29:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 16:29:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 16:29:27] Production.INFO: ==32100== Releasing lock... [2025-03-14 16:29:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 16:29:27] Production.INFO: 66.5 MB #Memory Used# [2025-03-14 16:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 13:30:07 [end_date_ymd] => 2025-03-14 16:30:07 [RateCDR] => 1 ) [2025-03-14 16:30:07] 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-03-14 13:30:07' and `end` < '2025-03-14 16:30:07' 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-03-14 16:30:21] Production.INFO: count ==5125 [2025-03-14 16:30:23] Production.ERROR: pbx CDR StartTime 2025-03-14 13:30:07 - End Time 2025-03-14 16:30:07 [2025-03-14 16:30:23] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 16:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680075', 'tblTempUsageDetail_20' ) start [2025-03-14 16:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680075', 'tblTempUsageDetail_20' ) end [2025-03-14 16:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680075', 'tblTempVendorCDR_20' ) start [2025-03-14 16:30:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680075', 'tblTempVendorCDR_20' ) end [2025-03-14 16:30:23] Production.INFO: ProcessCDR(1,14680075,1,1,2) [2025-03-14 16:30:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:30:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680075,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:30:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:30:29] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680075,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680075', 'tblTempUsageDetail_20' ) start [2025-03-14 16:30:29] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680075', 'tblTempUsageDetail_20' ) end [2025-03-14 16:30:29] Production.ERROR: pbx prc_insertCDR start [2025-03-14 16:30:29] Production.ERROR: pbx prc_insertCDR end [2025-03-14 16:30:29] Production.INFO: ==32178== Releasing lock... [2025-03-14 16:30:29] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 16:30:29] Production.INFO: 66.5 MB #Memory Used# [2025-03-14 16:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 13:31:06 [end_date_ymd] => 2025-03-14 16:31:06 [RateCDR] => 1 ) [2025-03-14 16:31: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-03-14 13:31:06' and `end` < '2025-03-14 16:31: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-03-14 16:31:19] Production.INFO: count ==5085 [2025-03-14 16:31:21] Production.ERROR: pbx CDR StartTime 2025-03-14 13:31:06 - End Time 2025-03-14 16:31:06 [2025-03-14 16:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 16:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680080', 'tblTempUsageDetail_20' ) start [2025-03-14 16:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680080', 'tblTempUsageDetail_20' ) end [2025-03-14 16:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680080', 'tblTempVendorCDR_20' ) start [2025-03-14 16:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680080', 'tblTempVendorCDR_20' ) end [2025-03-14 16:31:21] Production.INFO: ProcessCDR(1,14680080,1,1,2) [2025-03-14 16:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:31:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680080,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:31:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:31:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680080,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680080', 'tblTempUsageDetail_20' ) start [2025-03-14 16:31:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680080', 'tblTempUsageDetail_20' ) end [2025-03-14 16:31:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 16:31:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 16:31:27] Production.INFO: ==32252== Releasing lock... [2025-03-14 16:31:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 16:31:27] Production.INFO: 66 MB #Memory Used# [2025-03-14 16:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 13:32:06 [end_date_ymd] => 2025-03-14 16:32:06 [RateCDR] => 1 ) [2025-03-14 16:32: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-03-14 13:32:06' and `end` < '2025-03-14 16:32: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-03-14 16:32:20] Production.INFO: count ==5104 [2025-03-14 16:32:22] Production.ERROR: pbx CDR StartTime 2025-03-14 13:32:06 - End Time 2025-03-14 16:32:06 [2025-03-14 16:32:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 16:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680085', 'tblTempUsageDetail_20' ) start [2025-03-14 16:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680085', 'tblTempUsageDetail_20' ) end [2025-03-14 16:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680085', 'tblTempVendorCDR_20' ) start [2025-03-14 16:32:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680085', 'tblTempVendorCDR_20' ) end [2025-03-14 16:32:22] Production.INFO: ProcessCDR(1,14680085,1,1,2) [2025-03-14 16:32:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:32:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680085,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:32:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:32:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680085,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680085', 'tblTempUsageDetail_20' ) start [2025-03-14 16:32:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680085', 'tblTempUsageDetail_20' ) end [2025-03-14 16:32:28] Production.ERROR: pbx prc_insertCDR start [2025-03-14 16:32:28] Production.ERROR: pbx prc_insertCDR end [2025-03-14 16:32:28] Production.INFO: ==32331== Releasing lock... [2025-03-14 16:32:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 16:32:28] Production.INFO: 66.25 MB #Memory Used# [2025-03-14 16:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 13:33:05 [end_date_ymd] => 2025-03-14 16:33:05 [RateCDR] => 1 ) [2025-03-14 16:33: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-03-14 13:33:05' and `end` < '2025-03-14 16:33: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-03-14 16:33:19] Production.INFO: count ==5098 [2025-03-14 16:33:21] Production.ERROR: pbx CDR StartTime 2025-03-14 13:33:05 - End Time 2025-03-14 16:33:05 [2025-03-14 16:33:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 16:33:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680090', 'tblTempUsageDetail_20' ) start [2025-03-14 16:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680090', 'tblTempUsageDetail_20' ) end [2025-03-14 16:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680090', 'tblTempVendorCDR_20' ) start [2025-03-14 16:33:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680090', 'tblTempVendorCDR_20' ) end [2025-03-14 16:33:22] Production.INFO: ProcessCDR(1,14680090,1,1,2) [2025-03-14 16:33:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:33:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680090,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:33:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:33:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680090,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680090', 'tblTempUsageDetail_20' ) start [2025-03-14 16:33:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680090', 'tblTempUsageDetail_20' ) end [2025-03-14 16:33:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 16:33:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 16:33:27] Production.INFO: ==32409== Releasing lock... [2025-03-14 16:33:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 16:33:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-14 16:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 13:34:05 [end_date_ymd] => 2025-03-14 16:34:05 [RateCDR] => 1 ) [2025-03-14 16:34: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-03-14 13:34:05' and `end` < '2025-03-14 16:34: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-03-14 16:34:18] Production.INFO: count ==5093 [2025-03-14 16:34:21] Production.ERROR: pbx CDR StartTime 2025-03-14 13:34:05 - End Time 2025-03-14 16:34:05 [2025-03-14 16:34:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 16:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680095', 'tblTempUsageDetail_20' ) start [2025-03-14 16:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680095', 'tblTempUsageDetail_20' ) end [2025-03-14 16:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680095', 'tblTempVendorCDR_20' ) start [2025-03-14 16:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680095', 'tblTempVendorCDR_20' ) end [2025-03-14 16:34:21] Production.INFO: ProcessCDR(1,14680095,1,1,2) [2025-03-14 16:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:34:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680095,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:34:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:34:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680095,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680095', 'tblTempUsageDetail_20' ) start [2025-03-14 16:34:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680095', 'tblTempUsageDetail_20' ) end [2025-03-14 16:34:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 16:34:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 16:34:27] Production.INFO: ==32485== Releasing lock... [2025-03-14 16:34:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 16:34:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-14 16:35:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 13:35:06 [end_date_ymd] => 2025-03-14 16:35:06 [RateCDR] => 1 ) [2025-03-14 16:35: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-03-14 13:35:06' and `end` < '2025-03-14 16:35: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-03-14 16:35:19] Production.INFO: count ==5131 [2025-03-14 16:35:21] Production.ERROR: pbx CDR StartTime 2025-03-14 13:35:06 - End Time 2025-03-14 16:35:06 [2025-03-14 16:35:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 16:35:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680100', 'tblTempUsageDetail_20' ) start [2025-03-14 16:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680100', 'tblTempUsageDetail_20' ) end [2025-03-14 16:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680100', 'tblTempVendorCDR_20' ) start [2025-03-14 16:35:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680100', 'tblTempVendorCDR_20' ) end [2025-03-14 16:35:22] Production.INFO: ProcessCDR(1,14680100,1,1,2) [2025-03-14 16:35:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:35:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680100,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:35:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:35:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680100,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680100', 'tblTempUsageDetail_20' ) start [2025-03-14 16:35:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680100', 'tblTempUsageDetail_20' ) end [2025-03-14 16:35:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 16:35:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 16:35:27] Production.INFO: ==32562== Releasing lock... [2025-03-14 16:35:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 16:35:27] Production.INFO: 66.5 MB #Memory Used# [2025-03-14 16:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 13:36:05 [end_date_ymd] => 2025-03-14 16:36:05 [RateCDR] => 1 ) [2025-03-14 16:36: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-03-14 13:36:05' and `end` < '2025-03-14 16:36: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-03-14 16:36:18] Production.INFO: count ==5126 [2025-03-14 16:36:21] Production.ERROR: pbx CDR StartTime 2025-03-14 13:36:05 - End Time 2025-03-14 16:36:05 [2025-03-14 16:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 16:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680105', 'tblTempUsageDetail_20' ) start [2025-03-14 16:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680105', 'tblTempUsageDetail_20' ) end [2025-03-14 16:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680105', 'tblTempVendorCDR_20' ) start [2025-03-14 16:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680105', 'tblTempVendorCDR_20' ) end [2025-03-14 16:36:21] Production.INFO: ProcessCDR(1,14680105,1,1,2) [2025-03-14 16:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:36:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680105,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:36:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680105,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680105', 'tblTempUsageDetail_20' ) start [2025-03-14 16:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680105', 'tblTempUsageDetail_20' ) end [2025-03-14 16:36:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 16:36:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 16:36:26] Production.INFO: ==32682== Releasing lock... [2025-03-14 16:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 16:36:26] Production.INFO: 66.5 MB #Memory Used# [2025-03-14 16:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 13:37:05 [end_date_ymd] => 2025-03-14 16:37:05 [RateCDR] => 1 ) [2025-03-14 16:37: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-03-14 13:37:05' and `end` < '2025-03-14 16:37: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-03-14 16:37:18] Production.INFO: count ==5137 [2025-03-14 16:37:21] Production.ERROR: pbx CDR StartTime 2025-03-14 13:37:05 - End Time 2025-03-14 16:37:05 [2025-03-14 16:37:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 16:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680110', 'tblTempUsageDetail_20' ) start [2025-03-14 16:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680110', 'tblTempUsageDetail_20' ) end [2025-03-14 16:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680110', 'tblTempVendorCDR_20' ) start [2025-03-14 16:37:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680110', 'tblTempVendorCDR_20' ) end [2025-03-14 16:37:21] Production.INFO: ProcessCDR(1,14680110,1,1,2) [2025-03-14 16:37:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:37:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680110,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:37:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:37:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680110,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:37:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680110', 'tblTempUsageDetail_20' ) start [2025-03-14 16:37:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680110', 'tblTempUsageDetail_20' ) end [2025-03-14 16:37:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 16:37:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 16:37:27] Production.INFO: ==32761== Releasing lock... [2025-03-14 16:37:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 16:37:27] Production.INFO: 66.5 MB #Memory Used# [2025-03-14 16:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 13:38:06 [end_date_ymd] => 2025-03-14 16:38:06 [RateCDR] => 1 ) [2025-03-14 16:38: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-03-14 13:38:06' and `end` < '2025-03-14 16:38: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-03-14 16:38:20] Production.INFO: count ==5134 [2025-03-14 16:38:22] Production.ERROR: pbx CDR StartTime 2025-03-14 13:38:06 - End Time 2025-03-14 16:38:06 [2025-03-14 16:38:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 16:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680115', 'tblTempUsageDetail_20' ) start [2025-03-14 16:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680115', 'tblTempUsageDetail_20' ) end [2025-03-14 16:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680115', 'tblTempVendorCDR_20' ) start [2025-03-14 16:38:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680115', 'tblTempVendorCDR_20' ) end [2025-03-14 16:38:22] Production.INFO: ProcessCDR(1,14680115,1,1,2) [2025-03-14 16:38:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:38:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680115,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:38:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:38:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680115,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:38:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680115', 'tblTempUsageDetail_20' ) start [2025-03-14 16:38:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680115', 'tblTempUsageDetail_20' ) end [2025-03-14 16:38:28] Production.ERROR: pbx prc_insertCDR start [2025-03-14 16:38:28] Production.ERROR: pbx prc_insertCDR end [2025-03-14 16:38:28] Production.INFO: ==389== Releasing lock... [2025-03-14 16:38:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 16:38:28] Production.INFO: 66.5 MB #Memory Used# [2025-03-14 16:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 13:39:06 [end_date_ymd] => 2025-03-14 16:39:06 [RateCDR] => 1 ) [2025-03-14 16:39: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-03-14 13:39:06' and `end` < '2025-03-14 16:39: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-03-14 16:39:20] Production.INFO: count ==5134 [2025-03-14 16:39:22] Production.ERROR: pbx CDR StartTime 2025-03-14 13:39:06 - End Time 2025-03-14 16:39:06 [2025-03-14 16:39:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 16:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680120', 'tblTempUsageDetail_20' ) start [2025-03-14 16:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680120', 'tblTempUsageDetail_20' ) end [2025-03-14 16:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680120', 'tblTempVendorCDR_20' ) start [2025-03-14 16:39:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680120', 'tblTempVendorCDR_20' ) end [2025-03-14 16:39:22] Production.INFO: ProcessCDR(1,14680120,1,1,2) [2025-03-14 16:39:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:39:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680120,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:39:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:39:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680120,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680120', 'tblTempUsageDetail_20' ) start [2025-03-14 16:39:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680120', 'tblTempUsageDetail_20' ) end [2025-03-14 16:39:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 16:39:28] Production.ERROR: pbx prc_insertCDR end [2025-03-14 16:39:28] Production.INFO: ==464== Releasing lock... [2025-03-14 16:39:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 16:39:28] Production.INFO: 66.5 MB #Memory Used# [2025-03-14 16:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 13:40:06 [end_date_ymd] => 2025-03-14 16:40:06 [RateCDR] => 1 ) [2025-03-14 16:40: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-03-14 13:40:06' and `end` < '2025-03-14 16:40: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-03-14 16:40:20] Production.INFO: count ==5126 [2025-03-14 16:40:22] Production.ERROR: pbx CDR StartTime 2025-03-14 13:40:06 - End Time 2025-03-14 16:40:06 [2025-03-14 16:40:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680126', 'tblTempUsageDetail_20' ) start [2025-03-14 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680126', 'tblTempUsageDetail_20' ) end [2025-03-14 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680126', 'tblTempVendorCDR_20' ) start [2025-03-14 16:40:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680126', 'tblTempVendorCDR_20' ) end [2025-03-14 16:40:22] Production.INFO: ProcessCDR(1,14680126,1,1,2) [2025-03-14 16:40:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:40:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680126,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:40:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:40:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680126,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:40:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680126', 'tblTempUsageDetail_20' ) start [2025-03-14 16:40:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680126', 'tblTempUsageDetail_20' ) end [2025-03-14 16:40:28] Production.ERROR: pbx prc_insertCDR start [2025-03-14 16:40:28] Production.ERROR: pbx prc_insertCDR end [2025-03-14 16:40:28] Production.INFO: ==548== Releasing lock... [2025-03-14 16:40:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 16:40:28] Production.INFO: 66.5 MB #Memory Used# [2025-03-14 16:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 13:41:06 [end_date_ymd] => 2025-03-14 16:41:06 [RateCDR] => 1 ) [2025-03-14 16:41: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-03-14 13:41:06' and `end` < '2025-03-14 16:41: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-03-14 16:41:19] Production.INFO: count ==5123 [2025-03-14 16:41:22] Production.ERROR: pbx CDR StartTime 2025-03-14 13:41:06 - End Time 2025-03-14 16:41:06 [2025-03-14 16:41:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 16:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680131', 'tblTempUsageDetail_20' ) start [2025-03-14 16:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680131', 'tblTempUsageDetail_20' ) end [2025-03-14 16:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680131', 'tblTempVendorCDR_20' ) start [2025-03-14 16:41:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680131', 'tblTempVendorCDR_20' ) end [2025-03-14 16:41:22] Production.INFO: ProcessCDR(1,14680131,1,1,2) [2025-03-14 16:41:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:41:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680131,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:41:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:41:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680131,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:41:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680131', 'tblTempUsageDetail_20' ) start [2025-03-14 16:41:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680131', 'tblTempUsageDetail_20' ) end [2025-03-14 16:41:28] Production.ERROR: pbx prc_insertCDR start [2025-03-14 16:41:28] Production.ERROR: pbx prc_insertCDR end [2025-03-14 16:41:28] Production.INFO: ==634== Releasing lock... [2025-03-14 16:41:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 16:41:28] Production.INFO: 66.5 MB #Memory Used# [2025-03-14 16:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 13:42:06 [end_date_ymd] => 2025-03-14 16:42:06 [RateCDR] => 1 ) [2025-03-14 16:42: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-03-14 13:42:06' and `end` < '2025-03-14 16:42: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-03-14 16:42:19] Production.INFO: count ==5130 [2025-03-14 16:42:22] Production.ERROR: pbx CDR StartTime 2025-03-14 13:42:06 - End Time 2025-03-14 16:42:06 [2025-03-14 16:42:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 16:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680136', 'tblTempUsageDetail_20' ) start [2025-03-14 16:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680136', 'tblTempUsageDetail_20' ) end [2025-03-14 16:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680136', 'tblTempVendorCDR_20' ) start [2025-03-14 16:42:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680136', 'tblTempVendorCDR_20' ) end [2025-03-14 16:42:22] Production.INFO: ProcessCDR(1,14680136,1,1,2) [2025-03-14 16:42:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:42:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680136,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:42:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:42:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680136,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680136', 'tblTempUsageDetail_20' ) start [2025-03-14 16:42:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680136', 'tblTempUsageDetail_20' ) end [2025-03-14 16:42:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 16:42:28] Production.ERROR: pbx prc_insertCDR end [2025-03-14 16:42:28] Production.INFO: ==735== Releasing lock... [2025-03-14 16:42:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 16:42:28] Production.INFO: 66.5 MB #Memory Used# [2025-03-14 16:43:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 13:43:06 [end_date_ymd] => 2025-03-14 16:43:06 [RateCDR] => 1 ) [2025-03-14 16:43: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-03-14 13:43:06' and `end` < '2025-03-14 16:43: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-03-14 16:43:19] Production.INFO: count ==5116 [2025-03-14 16:43:21] Production.ERROR: pbx CDR StartTime 2025-03-14 13:43:06 - End Time 2025-03-14 16:43:06 [2025-03-14 16:43:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 16:43:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680141', 'tblTempUsageDetail_20' ) start [2025-03-14 16:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680141', 'tblTempUsageDetail_20' ) end [2025-03-14 16:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680141', 'tblTempVendorCDR_20' ) start [2025-03-14 16:43:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680141', 'tblTempVendorCDR_20' ) end [2025-03-14 16:43:22] Production.INFO: ProcessCDR(1,14680141,1,1,2) [2025-03-14 16:43:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:43:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680141,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:43:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:43:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680141,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680141', 'tblTempUsageDetail_20' ) start [2025-03-14 16:43:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680141', 'tblTempUsageDetail_20' ) end [2025-03-14 16:43:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 16:43:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 16:43:27] Production.INFO: ==817== Releasing lock... [2025-03-14 16:43:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 16:43:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-14 16:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 13:44:05 [end_date_ymd] => 2025-03-14 16:44:05 [RateCDR] => 1 ) [2025-03-14 16:44: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-03-14 13:44:05' and `end` < '2025-03-14 16:44: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-03-14 16:44:19] Production.INFO: count ==5107 [2025-03-14 16:44:21] Production.ERROR: pbx CDR StartTime 2025-03-14 13:44:05 - End Time 2025-03-14 16:44:05 [2025-03-14 16:44:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 16:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680146', 'tblTempUsageDetail_20' ) start [2025-03-14 16:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680146', 'tblTempUsageDetail_20' ) end [2025-03-14 16:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680146', 'tblTempVendorCDR_20' ) start [2025-03-14 16:44:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680146', 'tblTempVendorCDR_20' ) end [2025-03-14 16:44:21] Production.INFO: ProcessCDR(1,14680146,1,1,2) [2025-03-14 16:44:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:44:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680146,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:44:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:44:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680146,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680146', 'tblTempUsageDetail_20' ) start [2025-03-14 16:44:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680146', 'tblTempUsageDetail_20' ) end [2025-03-14 16:44:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 16:44:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 16:44:27] Production.INFO: ==892== Releasing lock... [2025-03-14 16:44:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 16:44:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-14 16:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 13:45:06 [end_date_ymd] => 2025-03-14 16:45:06 [RateCDR] => 1 ) [2025-03-14 16:45: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-03-14 13:45:06' and `end` < '2025-03-14 16:45: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-03-14 16:45:19] Production.INFO: count ==5103 [2025-03-14 16:45:21] Production.ERROR: pbx CDR StartTime 2025-03-14 13:45:06 - End Time 2025-03-14 16:45:06 [2025-03-14 16:45:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 16:45:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680151', 'tblTempUsageDetail_20' ) start [2025-03-14 16:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680151', 'tblTempUsageDetail_20' ) end [2025-03-14 16:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680151', 'tblTempVendorCDR_20' ) start [2025-03-14 16:45:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680151', 'tblTempVendorCDR_20' ) end [2025-03-14 16:45:22] Production.INFO: ProcessCDR(1,14680151,1,1,2) [2025-03-14 16:45:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:45:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680151,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:45:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:45:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680151,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680151', 'tblTempUsageDetail_20' ) start [2025-03-14 16:45:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680151', 'tblTempUsageDetail_20' ) end [2025-03-14 16:45:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 16:45:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 16:45:27] Production.INFO: ==971== Releasing lock... [2025-03-14 16:45:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 16:45:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-14 16:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 13:46:06 [end_date_ymd] => 2025-03-14 16:46:06 [RateCDR] => 1 ) [2025-03-14 16:46: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-03-14 13:46:06' and `end` < '2025-03-14 16:46: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-03-14 16:46:19] Production.INFO: count ==5103 [2025-03-14 16:46:22] Production.ERROR: pbx CDR StartTime 2025-03-14 13:46:06 - End Time 2025-03-14 16:46:06 [2025-03-14 16:46:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680156', 'tblTempUsageDetail_20' ) start [2025-03-14 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680156', 'tblTempUsageDetail_20' ) end [2025-03-14 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680156', 'tblTempVendorCDR_20' ) start [2025-03-14 16:46:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680156', 'tblTempVendorCDR_20' ) end [2025-03-14 16:46:22] Production.INFO: ProcessCDR(1,14680156,1,1,2) [2025-03-14 16:46:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:46:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680156,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:46:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:46:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680156,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:46:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680156', 'tblTempUsageDetail_20' ) start [2025-03-14 16:46:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680156', 'tblTempUsageDetail_20' ) end [2025-03-14 16:46:28] Production.ERROR: pbx prc_insertCDR start [2025-03-14 16:46:28] Production.ERROR: pbx prc_insertCDR end [2025-03-14 16:46:28] Production.INFO: ==1051== Releasing lock... [2025-03-14 16:46:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 16:46:28] Production.INFO: 66.25 MB #Memory Used# [2025-03-14 16:47:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 13:47:06 [end_date_ymd] => 2025-03-14 16:47:06 [RateCDR] => 1 ) [2025-03-14 16:47: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-03-14 13:47:06' and `end` < '2025-03-14 16:47: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-03-14 16:47:19] Production.INFO: count ==5119 [2025-03-14 16:47:22] Production.ERROR: pbx CDR StartTime 2025-03-14 13:47:06 - End Time 2025-03-14 16:47:06 [2025-03-14 16:47:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 16:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680161', 'tblTempUsageDetail_20' ) start [2025-03-14 16:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680161', 'tblTempUsageDetail_20' ) end [2025-03-14 16:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680161', 'tblTempVendorCDR_20' ) start [2025-03-14 16:47:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680161', 'tblTempVendorCDR_20' ) end [2025-03-14 16:47:22] Production.INFO: ProcessCDR(1,14680161,1,1,2) [2025-03-14 16:47:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:47:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680161,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:47:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:47:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680161,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:47:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680161', 'tblTempUsageDetail_20' ) start [2025-03-14 16:47:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680161', 'tblTempUsageDetail_20' ) end [2025-03-14 16:47:28] Production.ERROR: pbx prc_insertCDR start [2025-03-14 16:47:28] Production.ERROR: pbx prc_insertCDR end [2025-03-14 16:47:28] Production.INFO: ==1126== Releasing lock... [2025-03-14 16:47:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 16:47:28] Production.INFO: 66.25 MB #Memory Used# [2025-03-14 16:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 13:48:06 [end_date_ymd] => 2025-03-14 16:48:06 [RateCDR] => 1 ) [2025-03-14 16:48: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-03-14 13:48:06' and `end` < '2025-03-14 16:48: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-03-14 16:48:20] Production.INFO: count ==5110 [2025-03-14 16:48:22] Production.ERROR: pbx CDR StartTime 2025-03-14 13:48:06 - End Time 2025-03-14 16:48:06 [2025-03-14 16:48:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 16:48:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680166', 'tblTempUsageDetail_20' ) start [2025-03-14 16:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680166', 'tblTempUsageDetail_20' ) end [2025-03-14 16:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680166', 'tblTempVendorCDR_20' ) start [2025-03-14 16:48:23] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680166', 'tblTempVendorCDR_20' ) end [2025-03-14 16:48:23] Production.INFO: ProcessCDR(1,14680166,1,1,2) [2025-03-14 16:48:23] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:48:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680166,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:48:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:48:28] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680166,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680166', 'tblTempUsageDetail_20' ) start [2025-03-14 16:48:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680166', 'tblTempUsageDetail_20' ) end [2025-03-14 16:48:28] Production.ERROR: pbx prc_insertCDR start [2025-03-14 16:48:28] Production.ERROR: pbx prc_insertCDR end [2025-03-14 16:48:28] Production.INFO: ==1209== Releasing lock... [2025-03-14 16:48:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 16:48:28] Production.INFO: 66.25 MB #Memory Used# [2025-03-14 16:49:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 13:49:06 [end_date_ymd] => 2025-03-14 16:49:06 [RateCDR] => 1 ) [2025-03-14 16:49: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-03-14 13:49:06' and `end` < '2025-03-14 16:49: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-03-14 16:49:19] Production.INFO: count ==5122 [2025-03-14 16:49:22] Production.ERROR: pbx CDR StartTime 2025-03-14 13:49:06 - End Time 2025-03-14 16:49:06 [2025-03-14 16:49:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 16:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680171', 'tblTempUsageDetail_20' ) start [2025-03-14 16:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680171', 'tblTempUsageDetail_20' ) end [2025-03-14 16:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680171', 'tblTempVendorCDR_20' ) start [2025-03-14 16:49:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680171', 'tblTempVendorCDR_20' ) end [2025-03-14 16:49:22] Production.INFO: ProcessCDR(1,14680171,1,1,2) [2025-03-14 16:49:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:49:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680171,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:49:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:49:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680171,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:49:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680171', 'tblTempUsageDetail_20' ) start [2025-03-14 16:49:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680171', 'tblTempUsageDetail_20' ) end [2025-03-14 16:49:28] Production.ERROR: pbx prc_insertCDR start [2025-03-14 16:49:28] Production.ERROR: pbx prc_insertCDR end [2025-03-14 16:49:28] Production.INFO: ==1303== Releasing lock... [2025-03-14 16:49:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 16:49:28] Production.INFO: 66.25 MB #Memory Used# [2025-03-14 16:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 13:50:06 [end_date_ymd] => 2025-03-14 16:50:06 [RateCDR] => 1 ) [2025-03-14 16:50: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-03-14 13:50:06' and `end` < '2025-03-14 16:50: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-03-14 16:50:19] Production.INFO: count ==5116 [2025-03-14 16:50:21] Production.ERROR: pbx CDR StartTime 2025-03-14 13:50:06 - End Time 2025-03-14 16:50:06 [2025-03-14 16:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 16:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680176', 'tblTempUsageDetail_20' ) start [2025-03-14 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680176', 'tblTempUsageDetail_20' ) end [2025-03-14 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680176', 'tblTempVendorCDR_20' ) start [2025-03-14 16:50:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680176', 'tblTempVendorCDR_20' ) end [2025-03-14 16:50:22] Production.INFO: ProcessCDR(1,14680176,1,1,2) [2025-03-14 16:50:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680176,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:50:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680176,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680176', 'tblTempUsageDetail_20' ) start [2025-03-14 16:50:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680176', 'tblTempUsageDetail_20' ) end [2025-03-14 16:50:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 16:50:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 16:50:27] Production.INFO: ==1381== Releasing lock... [2025-03-14 16:50:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 16:50:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-14 16:51:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 13:51:06 [end_date_ymd] => 2025-03-14 16:51:06 [RateCDR] => 1 ) [2025-03-14 16:51: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-03-14 13:51:06' and `end` < '2025-03-14 16:51: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-03-14 16:51:19] Production.INFO: count ==5098 [2025-03-14 16:51:21] Production.ERROR: pbx CDR StartTime 2025-03-14 13:51:06 - End Time 2025-03-14 16:51:06 [2025-03-14 16:51:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 16:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680182', 'tblTempUsageDetail_20' ) start [2025-03-14 16:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680182', 'tblTempUsageDetail_20' ) end [2025-03-14 16:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680182', 'tblTempVendorCDR_20' ) start [2025-03-14 16:51:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680182', 'tblTempVendorCDR_20' ) end [2025-03-14 16:51:21] Production.INFO: ProcessCDR(1,14680182,1,1,2) [2025-03-14 16:51:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:51:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680182,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:51:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:51:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680182,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680182', 'tblTempUsageDetail_20' ) start [2025-03-14 16:51:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680182', 'tblTempUsageDetail_20' ) end [2025-03-14 16:51:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 16:51:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 16:51:27] Production.INFO: ==1462== Releasing lock... [2025-03-14 16:51:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 16:51:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-14 16:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 13:52:06 [end_date_ymd] => 2025-03-14 16:52:06 [RateCDR] => 1 ) [2025-03-14 16:52: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-03-14 13:52:06' and `end` < '2025-03-14 16:52: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-03-14 16:52:19] Production.INFO: count ==5116 [2025-03-14 16:52:21] Production.ERROR: pbx CDR StartTime 2025-03-14 13:52:06 - End Time 2025-03-14 16:52:06 [2025-03-14 16:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680187', 'tblTempUsageDetail_20' ) start [2025-03-14 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680187', 'tblTempUsageDetail_20' ) end [2025-03-14 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680187', 'tblTempVendorCDR_20' ) start [2025-03-14 16:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680187', 'tblTempVendorCDR_20' ) end [2025-03-14 16:52:21] Production.INFO: ProcessCDR(1,14680187,1,1,2) [2025-03-14 16:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680187,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:52:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680187,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680187', 'tblTempUsageDetail_20' ) start [2025-03-14 16:52:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680187', 'tblTempUsageDetail_20' ) end [2025-03-14 16:52:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 16:52:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 16:52:27] Production.INFO: ==1616== Releasing lock... [2025-03-14 16:52:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 16:52:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-14 16:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 13:53:05 [end_date_ymd] => 2025-03-14 16:53:05 [RateCDR] => 1 ) [2025-03-14 16:53: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-03-14 13:53:05' and `end` < '2025-03-14 16:53: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-03-14 16:53:19] Production.INFO: count ==5099 [2025-03-14 16:53:21] Production.ERROR: pbx CDR StartTime 2025-03-14 13:53:05 - End Time 2025-03-14 16:53:05 [2025-03-14 16:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680192', 'tblTempUsageDetail_20' ) start [2025-03-14 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680192', 'tblTempUsageDetail_20' ) end [2025-03-14 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680192', 'tblTempVendorCDR_20' ) start [2025-03-14 16:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680192', 'tblTempVendorCDR_20' ) end [2025-03-14 16:53:21] Production.INFO: ProcessCDR(1,14680192,1,1,2) [2025-03-14 16:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680192,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680192,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680192', 'tblTempUsageDetail_20' ) start [2025-03-14 16:53:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680192', 'tblTempUsageDetail_20' ) end [2025-03-14 16:53:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 16:53:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 16:53:27] Production.INFO: ==1693== Releasing lock... [2025-03-14 16:53:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 16:53:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-14 16:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 13:54:06 [end_date_ymd] => 2025-03-14 16:54:06 [RateCDR] => 1 ) [2025-03-14 16:54: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-03-14 13:54:06' and `end` < '2025-03-14 16:54: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-03-14 16:54:19] Production.INFO: count ==5089 [2025-03-14 16:54:21] Production.ERROR: pbx CDR StartTime 2025-03-14 13:54:06 - End Time 2025-03-14 16:54:06 [2025-03-14 16:54:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 16:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680197', 'tblTempUsageDetail_20' ) start [2025-03-14 16:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680197', 'tblTempUsageDetail_20' ) end [2025-03-14 16:54:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680197', 'tblTempVendorCDR_20' ) start [2025-03-14 16:54:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680197', 'tblTempVendorCDR_20' ) end [2025-03-14 16:54:22] Production.INFO: ProcessCDR(1,14680197,1,1,2) [2025-03-14 16:54:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:54:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680197,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:54:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:54:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680197,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680197', 'tblTempUsageDetail_20' ) start [2025-03-14 16:54:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680197', 'tblTempUsageDetail_20' ) end [2025-03-14 16:54:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 16:54:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 16:54:27] Production.INFO: ==1768== Releasing lock... [2025-03-14 16:54:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 16:54:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-14 16:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 13:55:06 [end_date_ymd] => 2025-03-14 16:55:06 [RateCDR] => 1 ) [2025-03-14 16:55: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-03-14 13:55:06' and `end` < '2025-03-14 16:55: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-03-14 16:55:19] Production.INFO: count ==5097 [2025-03-14 16:55:22] Production.ERROR: pbx CDR StartTime 2025-03-14 13:55:06 - End Time 2025-03-14 16:55:06 [2025-03-14 16:55:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 16:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680202', 'tblTempUsageDetail_20' ) start [2025-03-14 16:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680202', 'tblTempUsageDetail_20' ) end [2025-03-14 16:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680202', 'tblTempVendorCDR_20' ) start [2025-03-14 16:55:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680202', 'tblTempVendorCDR_20' ) end [2025-03-14 16:55:22] Production.INFO: ProcessCDR(1,14680202,1,1,2) [2025-03-14 16:55:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:55:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680202,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:55:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:55:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680202,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680202', 'tblTempUsageDetail_20' ) start [2025-03-14 16:55:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680202', 'tblTempUsageDetail_20' ) end [2025-03-14 16:55:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 16:55:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 16:55:26] Production.INFO: ==1851== Releasing lock... [2025-03-14 16:55:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 16:55:26] Production.INFO: 66.25 MB #Memory Used# [2025-03-14 16:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 13:56:06 [end_date_ymd] => 2025-03-14 16:56:06 [RateCDR] => 1 ) [2025-03-14 16:56: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-03-14 13:56:06' and `end` < '2025-03-14 16:56: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-03-14 16:56:19] Production.INFO: count ==5091 [2025-03-14 16:56:21] Production.ERROR: pbx CDR StartTime 2025-03-14 13:56:06 - End Time 2025-03-14 16:56:06 [2025-03-14 16:56:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680207', 'tblTempUsageDetail_20' ) start [2025-03-14 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680207', 'tblTempUsageDetail_20' ) end [2025-03-14 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680207', 'tblTempVendorCDR_20' ) start [2025-03-14 16:56:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680207', 'tblTempVendorCDR_20' ) end [2025-03-14 16:56:21] Production.INFO: ProcessCDR(1,14680207,1,1,2) [2025-03-14 16:56:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:56:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680207,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:56:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:56:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680207,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680207', 'tblTempUsageDetail_20' ) start [2025-03-14 16:56:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680207', 'tblTempUsageDetail_20' ) end [2025-03-14 16:56:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 16:56:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 16:56:27] Production.INFO: ==1936== Releasing lock... [2025-03-14 16:56:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 16:56:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-14 16:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 13:57:06 [end_date_ymd] => 2025-03-14 16:57:06 [RateCDR] => 1 ) [2025-03-14 16:57: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-03-14 13:57:06' and `end` < '2025-03-14 16:57: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-03-14 16:57:19] Production.INFO: count ==5099 [2025-03-14 16:57:21] Production.ERROR: pbx CDR StartTime 2025-03-14 13:57:06 - End Time 2025-03-14 16:57:06 [2025-03-14 16:57:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680212', 'tblTempUsageDetail_20' ) start [2025-03-14 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680212', 'tblTempUsageDetail_20' ) end [2025-03-14 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680212', 'tblTempVendorCDR_20' ) start [2025-03-14 16:57:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680212', 'tblTempVendorCDR_20' ) end [2025-03-14 16:57:21] Production.INFO: ProcessCDR(1,14680212,1,1,2) [2025-03-14 16:57:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:57:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680212,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:57:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:57:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680212,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680212', 'tblTempUsageDetail_20' ) start [2025-03-14 16:57:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680212', 'tblTempUsageDetail_20' ) end [2025-03-14 16:57:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 16:57:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 16:57:27] Production.INFO: ==2018== Releasing lock... [2025-03-14 16:57:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 16:57:27] Production.INFO: 66.25 MB #Memory Used# [2025-03-14 16:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 13:58:05 [end_date_ymd] => 2025-03-14 16:58:05 [RateCDR] => 1 ) [2025-03-14 16:58: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-03-14 13:58:05' and `end` < '2025-03-14 16:58: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-03-14 16:58:18] Production.INFO: count ==5089 [2025-03-14 16:58:20] Production.ERROR: pbx CDR StartTime 2025-03-14 13:58:05 - End Time 2025-03-14 16:58:05 [2025-03-14 16:58:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 16:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680217', 'tblTempUsageDetail_20' ) start [2025-03-14 16:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680217', 'tblTempUsageDetail_20' ) end [2025-03-14 16:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680217', 'tblTempVendorCDR_20' ) start [2025-03-14 16:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680217', 'tblTempVendorCDR_20' ) end [2025-03-14 16:58:20] Production.INFO: ProcessCDR(1,14680217,1,1,2) [2025-03-14 16:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:58:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680217,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:58:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680217,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680217', 'tblTempUsageDetail_20' ) start [2025-03-14 16:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680217', 'tblTempUsageDetail_20' ) end [2025-03-14 16:58:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 16:58:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 16:58:26] Production.INFO: ==2095== Releasing lock... [2025-03-14 16:58:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 16:58:26] Production.INFO: 66.25 MB #Memory Used# [2025-03-14 16:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 13:59:05 [end_date_ymd] => 2025-03-14 16:59:05 [RateCDR] => 1 ) [2025-03-14 16:59: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-03-14 13:59:05' and `end` < '2025-03-14 16:59: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-03-14 16:59:18] Production.INFO: count ==5073 [2025-03-14 16:59:20] Production.ERROR: pbx CDR StartTime 2025-03-14 13:59:05 - End Time 2025-03-14 16:59:05 [2025-03-14 16:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 16:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680222', 'tblTempUsageDetail_20' ) start [2025-03-14 16:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680222', 'tblTempUsageDetail_20' ) end [2025-03-14 16:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680222', 'tblTempVendorCDR_20' ) start [2025-03-14 16:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680222', 'tblTempVendorCDR_20' ) end [2025-03-14 16:59:20] Production.INFO: ProcessCDR(1,14680222,1,1,2) [2025-03-14 16:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680222,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 16:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680222,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 16:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680222', 'tblTempUsageDetail_20' ) start [2025-03-14 16:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680222', 'tblTempUsageDetail_20' ) end [2025-03-14 16:59:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 16:59:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 16:59:25] Production.INFO: ==2173== Releasing lock... [2025-03-14 16:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 16:59:25] Production.INFO: 66 MB #Memory Used# [2025-03-14 17:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 14:00:06 [end_date_ymd] => 2025-03-14 17:00:06 [RateCDR] => 1 ) [2025-03-14 17:00: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-03-14 14:00:06' and `end` < '2025-03-14 17:00: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-03-14 17:00:20] Production.INFO: count ==5062 [2025-03-14 17:00:22] Production.ERROR: pbx CDR StartTime 2025-03-14 14:00:06 - End Time 2025-03-14 17:00:06 [2025-03-14 17:00:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680228', 'tblTempUsageDetail_20' ) start [2025-03-14 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680228', 'tblTempUsageDetail_20' ) end [2025-03-14 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680228', 'tblTempVendorCDR_20' ) start [2025-03-14 17:00:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680228', 'tblTempVendorCDR_20' ) end [2025-03-14 17:00:22] Production.INFO: ProcessCDR(1,14680228,1,1,2) [2025-03-14 17:00:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:00:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680228,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:00:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:00:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680228,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:00:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680228', 'tblTempUsageDetail_20' ) start [2025-03-14 17:00:28] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680228', 'tblTempUsageDetail_20' ) end [2025-03-14 17:00:28] Production.ERROR: pbx prc_insertCDR start [2025-03-14 17:00:28] Production.ERROR: pbx prc_insertCDR end [2025-03-14 17:00:28] Production.INFO: ==2255== Releasing lock... [2025-03-14 17:00:28] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 17:00:28] Production.INFO: 66 MB #Memory Used# [2025-03-14 17:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 14:01:05 [end_date_ymd] => 2025-03-14 17:01:05 [RateCDR] => 1 ) [2025-03-14 17:01: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-03-14 14:01:05' and `end` < '2025-03-14 17:01: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-03-14 17:01:19] Production.INFO: count ==5076 [2025-03-14 17:01:21] Production.ERROR: pbx CDR StartTime 2025-03-14 14:01:05 - End Time 2025-03-14 17:01:05 [2025-03-14 17:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680233', 'tblTempUsageDetail_20' ) start [2025-03-14 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680233', 'tblTempUsageDetail_20' ) end [2025-03-14 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680233', 'tblTempVendorCDR_20' ) start [2025-03-14 17:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680233', 'tblTempVendorCDR_20' ) end [2025-03-14 17:01:21] Production.INFO: ProcessCDR(1,14680233,1,1,2) [2025-03-14 17:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:01:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680233,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:01:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:01:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680233,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680233', 'tblTempUsageDetail_20' ) start [2025-03-14 17:01:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680233', 'tblTempUsageDetail_20' ) end [2025-03-14 17:01:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 17:01:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 17:01:27] Production.INFO: ==2343== Releasing lock... [2025-03-14 17:01:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 17:01:27] Production.INFO: 66 MB #Memory Used# [2025-03-14 17:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 14:02:05 [end_date_ymd] => 2025-03-14 17:02:05 [RateCDR] => 1 ) [2025-03-14 17:02: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-03-14 14:02:05' and `end` < '2025-03-14 17:02: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-03-14 17:02:18] Production.INFO: count ==5046 [2025-03-14 17:02:20] Production.ERROR: pbx CDR StartTime 2025-03-14 14:02:05 - End Time 2025-03-14 17:02:05 [2025-03-14 17:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 17:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680238', 'tblTempUsageDetail_20' ) start [2025-03-14 17:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680238', 'tblTempUsageDetail_20' ) end [2025-03-14 17:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680238', 'tblTempVendorCDR_20' ) start [2025-03-14 17:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680238', 'tblTempVendorCDR_20' ) end [2025-03-14 17:02:20] Production.INFO: ProcessCDR(1,14680238,1,1,2) [2025-03-14 17:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:02:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680238,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:02:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680238,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680238', 'tblTempUsageDetail_20' ) start [2025-03-14 17:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680238', 'tblTempUsageDetail_20' ) end [2025-03-14 17:02:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 17:02:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 17:02:26] Production.INFO: ==2419== Releasing lock... [2025-03-14 17:02:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 17:02:26] Production.INFO: 65.75 MB #Memory Used# [2025-03-14 17:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 14:03:05 [end_date_ymd] => 2025-03-14 17:03:05 [RateCDR] => 1 ) [2025-03-14 17:03: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-03-14 14:03:05' and `end` < '2025-03-14 17:03: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-03-14 17:03:18] Production.INFO: count ==5026 [2025-03-14 17:03:20] Production.ERROR: pbx CDR StartTime 2025-03-14 14:03:05 - End Time 2025-03-14 17:03:05 [2025-03-14 17:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 17:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680243', 'tblTempUsageDetail_20' ) start [2025-03-14 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680243', 'tblTempUsageDetail_20' ) end [2025-03-14 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680243', 'tblTempVendorCDR_20' ) start [2025-03-14 17:03:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680243', 'tblTempVendorCDR_20' ) end [2025-03-14 17:03:21] Production.INFO: ProcessCDR(1,14680243,1,1,2) [2025-03-14 17:03:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:03:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680243,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:03:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:03:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680243,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680243', 'tblTempUsageDetail_20' ) start [2025-03-14 17:03:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680243', 'tblTempUsageDetail_20' ) end [2025-03-14 17:03:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 17:03:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 17:03:26] Production.INFO: ==2496== Releasing lock... [2025-03-14 17:03:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 17:03:26] Production.INFO: 65.75 MB #Memory Used# [2025-03-14 17:04:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 14:04:06 [end_date_ymd] => 2025-03-14 17:04:06 [RateCDR] => 1 ) [2025-03-14 17:04: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-03-14 14:04:06' and `end` < '2025-03-14 17:04: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-03-14 17:04:19] Production.INFO: count ==4983 [2025-03-14 17:04:21] Production.ERROR: pbx CDR StartTime 2025-03-14 14:04:06 - End Time 2025-03-14 17:04:06 [2025-03-14 17:04:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680248', 'tblTempUsageDetail_20' ) start [2025-03-14 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680248', 'tblTempUsageDetail_20' ) end [2025-03-14 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680248', 'tblTempVendorCDR_20' ) start [2025-03-14 17:04:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680248', 'tblTempVendorCDR_20' ) end [2025-03-14 17:04:21] Production.INFO: ProcessCDR(1,14680248,1,1,2) [2025-03-14 17:04:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:04:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680248,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:04:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:04:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680248,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680248', 'tblTempUsageDetail_20' ) start [2025-03-14 17:04:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680248', 'tblTempUsageDetail_20' ) end [2025-03-14 17:04:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 17:04:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 17:04:27] Production.INFO: ==2572== Releasing lock... [2025-03-14 17:04:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 17:04:27] Production.INFO: 65.25 MB #Memory Used# [2025-03-14 17:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 14:05:06 [end_date_ymd] => 2025-03-14 17:05:06 [RateCDR] => 1 ) [2025-03-14 17:05: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-03-14 14:05:06' and `end` < '2025-03-14 17:05: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-03-14 17:05:19] Production.INFO: count ==4961 [2025-03-14 17:05:21] Production.ERROR: pbx CDR StartTime 2025-03-14 14:05:06 - End Time 2025-03-14 17:05:06 [2025-03-14 17:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680253', 'tblTempUsageDetail_20' ) start [2025-03-14 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680253', 'tblTempUsageDetail_20' ) end [2025-03-14 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680253', 'tblTempVendorCDR_20' ) start [2025-03-14 17:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680253', 'tblTempVendorCDR_20' ) end [2025-03-14 17:05:21] Production.INFO: ProcessCDR(1,14680253,1,1,2) [2025-03-14 17:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:05:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680253,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:05:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:05:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680253,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680253', 'tblTempUsageDetail_20' ) start [2025-03-14 17:05:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680253', 'tblTempUsageDetail_20' ) end [2025-03-14 17:05:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 17:05:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 17:05:26] Production.INFO: ==2652== Releasing lock... [2025-03-14 17:05:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 17:05:26] Production.INFO: 65.25 MB #Memory Used# [2025-03-14 17:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 14:06:05 [end_date_ymd] => 2025-03-14 17:06:05 [RateCDR] => 1 ) [2025-03-14 17:06: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-03-14 14:06:05' and `end` < '2025-03-14 17:06: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-03-14 17:06:19] Production.INFO: count ==4949 [2025-03-14 17:06:21] Production.ERROR: pbx CDR StartTime 2025-03-14 14:06:05 - End Time 2025-03-14 17:06:05 [2025-03-14 17:06:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680258', 'tblTempUsageDetail_20' ) start [2025-03-14 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680258', 'tblTempUsageDetail_20' ) end [2025-03-14 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680258', 'tblTempVendorCDR_20' ) start [2025-03-14 17:06:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680258', 'tblTempVendorCDR_20' ) end [2025-03-14 17:06:21] Production.INFO: ProcessCDR(1,14680258,1,1,2) [2025-03-14 17:06:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:06:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680258,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:06:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:06:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680258,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680258', 'tblTempUsageDetail_20' ) start [2025-03-14 17:06:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680258', 'tblTempUsageDetail_20' ) end [2025-03-14 17:06:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 17:06:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 17:06:26] Production.INFO: ==2726== Releasing lock... [2025-03-14 17:06:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 17:06:26] Production.INFO: 65 MB #Memory Used# [2025-03-14 17:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 14:07:05 [end_date_ymd] => 2025-03-14 17:07:05 [RateCDR] => 1 ) [2025-03-14 17:07: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-03-14 14:07:05' and `end` < '2025-03-14 17:07: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-03-14 17:07:18] Production.INFO: count ==4930 [2025-03-14 17:07:20] Production.ERROR: pbx CDR StartTime 2025-03-14 14:07:05 - End Time 2025-03-14 17:07:05 [2025-03-14 17:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 17:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680263', 'tblTempUsageDetail_20' ) start [2025-03-14 17:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680263', 'tblTempUsageDetail_20' ) end [2025-03-14 17:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680263', 'tblTempVendorCDR_20' ) start [2025-03-14 17:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680263', 'tblTempVendorCDR_20' ) end [2025-03-14 17:07:20] Production.INFO: ProcessCDR(1,14680263,1,1,2) [2025-03-14 17:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:07:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680263,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:07:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680263,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680263', 'tblTempUsageDetail_20' ) start [2025-03-14 17:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680263', 'tblTempUsageDetail_20' ) end [2025-03-14 17:07:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 17:07:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 17:07:25] Production.INFO: ==2841== Releasing lock... [2025-03-14 17:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 17:07:25] Production.INFO: 65 MB #Memory Used# [2025-03-14 17:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 14:08:05 [end_date_ymd] => 2025-03-14 17:08:05 [RateCDR] => 1 ) [2025-03-14 17:08: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-03-14 14:08:05' and `end` < '2025-03-14 17:08: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-03-14 17:08:19] Production.INFO: count ==4900 [2025-03-14 17:08:21] Production.ERROR: pbx CDR StartTime 2025-03-14 14:08:05 - End Time 2025-03-14 17:08:05 [2025-03-14 17:08:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680268', 'tblTempUsageDetail_20' ) start [2025-03-14 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680268', 'tblTempUsageDetail_20' ) end [2025-03-14 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680268', 'tblTempVendorCDR_20' ) start [2025-03-14 17:08:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680268', 'tblTempVendorCDR_20' ) end [2025-03-14 17:08:21] Production.INFO: ProcessCDR(1,14680268,1,1,2) [2025-03-14 17:08:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680268,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680268,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680268', 'tblTempUsageDetail_20' ) start [2025-03-14 17:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680268', 'tblTempUsageDetail_20' ) end [2025-03-14 17:08:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 17:08:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 17:08:24] Production.INFO: ==2913== Releasing lock... [2025-03-14 17:08:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 17:08:24] Production.INFO: 64.75 MB #Memory Used# [2025-03-14 17:09:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 14:09:07 [end_date_ymd] => 2025-03-14 17:09:07 [RateCDR] => 1 ) [2025-03-14 17:09:07] 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-03-14 14:09:07' and `end` < '2025-03-14 17:09:07' 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-03-14 17:09:20] Production.INFO: count ==4890 [2025-03-14 17:09:22] Production.ERROR: pbx CDR StartTime 2025-03-14 14:09:07 - End Time 2025-03-14 17:09:07 [2025-03-14 17:09:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 17:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680273', 'tblTempUsageDetail_20' ) start [2025-03-14 17:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680273', 'tblTempUsageDetail_20' ) end [2025-03-14 17:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680273', 'tblTempVendorCDR_20' ) start [2025-03-14 17:09:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680273', 'tblTempVendorCDR_20' ) end [2025-03-14 17:09:22] Production.INFO: ProcessCDR(1,14680273,1,1,2) [2025-03-14 17:09:22] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:09:25] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680273,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:09:25] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:09:27] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680273,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680273', 'tblTempUsageDetail_20' ) start [2025-03-14 17:09:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680273', 'tblTempUsageDetail_20' ) end [2025-03-14 17:09:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 17:09:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 17:09:27] Production.INFO: ==2992== Releasing lock... [2025-03-14 17:09:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 17:09:27] Production.INFO: 64.75 MB #Memory Used# [2025-03-14 17:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 14:10:06 [end_date_ymd] => 2025-03-14 17:10:06 [RateCDR] => 1 ) [2025-03-14 17:10: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-03-14 14:10:06' and `end` < '2025-03-14 17:10: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-03-14 17:10:19] Production.INFO: count ==4864 [2025-03-14 17:10:21] Production.ERROR: pbx CDR StartTime 2025-03-14 14:10:06 - End Time 2025-03-14 17:10:06 [2025-03-14 17:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 17:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680278', 'tblTempUsageDetail_20' ) start [2025-03-14 17:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680278', 'tblTempUsageDetail_20' ) end [2025-03-14 17:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680278', 'tblTempVendorCDR_20' ) start [2025-03-14 17:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680278', 'tblTempVendorCDR_20' ) end [2025-03-14 17:10:21] Production.INFO: ProcessCDR(1,14680278,1,1,2) [2025-03-14 17:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:10:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680278,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:10:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680278,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680278', 'tblTempUsageDetail_20' ) start [2025-03-14 17:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680278', 'tblTempUsageDetail_20' ) end [2025-03-14 17:10:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 17:10:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 17:10:26] Production.INFO: ==3075== Releasing lock... [2025-03-14 17:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 17:10:26] Production.INFO: 64.5 MB #Memory Used# [2025-03-14 17:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 14:11:06 [end_date_ymd] => 2025-03-14 17:11:06 [RateCDR] => 1 ) [2025-03-14 17:11: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-03-14 14:11:06' and `end` < '2025-03-14 17:11: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-03-14 17:11:19] Production.INFO: count ==4873 [2025-03-14 17:11:21] Production.ERROR: pbx CDR StartTime 2025-03-14 14:11:06 - End Time 2025-03-14 17:11:06 [2025-03-14 17:11:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680284', 'tblTempUsageDetail_20' ) start [2025-03-14 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680284', 'tblTempUsageDetail_20' ) end [2025-03-14 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680284', 'tblTempVendorCDR_20' ) start [2025-03-14 17:11:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680284', 'tblTempVendorCDR_20' ) end [2025-03-14 17:11:21] Production.INFO: ProcessCDR(1,14680284,1,1,2) [2025-03-14 17:11:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:11:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680284,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:11:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:11:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680284,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680284', 'tblTempUsageDetail_20' ) start [2025-03-14 17:11:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680284', 'tblTempUsageDetail_20' ) end [2025-03-14 17:11:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 17:11:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 17:11:26] Production.INFO: ==3151== Releasing lock... [2025-03-14 17:11:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 17:11:26] Production.INFO: 64.5 MB #Memory Used# [2025-03-14 17:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 14:12:05 [end_date_ymd] => 2025-03-14 17:12:05 [RateCDR] => 1 ) [2025-03-14 17:12: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-03-14 14:12:05' and `end` < '2025-03-14 17:12: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-03-14 17:12:18] Production.INFO: count ==4867 [2025-03-14 17:12:20] Production.ERROR: pbx CDR StartTime 2025-03-14 14:12:05 - End Time 2025-03-14 17:12:05 [2025-03-14 17:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 17:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680289', 'tblTempUsageDetail_20' ) start [2025-03-14 17:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680289', 'tblTempUsageDetail_20' ) end [2025-03-14 17:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680289', 'tblTempVendorCDR_20' ) start [2025-03-14 17:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680289', 'tblTempVendorCDR_20' ) end [2025-03-14 17:12:20] Production.INFO: ProcessCDR(1,14680289,1,1,2) [2025-03-14 17:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680289,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680289,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680289', 'tblTempUsageDetail_20' ) start [2025-03-14 17:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680289', 'tblTempUsageDetail_20' ) end [2025-03-14 17:12:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 17:12:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 17:12:24] Production.INFO: ==3234== Releasing lock... [2025-03-14 17:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 17:12:24] Production.INFO: 64.5 MB #Memory Used# [2025-03-14 17:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 14:13:06 [end_date_ymd] => 2025-03-14 17:13:06 [RateCDR] => 1 ) [2025-03-14 17:13: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-03-14 14:13:06' and `end` < '2025-03-14 17:13: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-03-14 17:13:19] Production.INFO: count ==4874 [2025-03-14 17:13:21] Production.ERROR: pbx CDR StartTime 2025-03-14 14:13:06 - End Time 2025-03-14 17:13:06 [2025-03-14 17:13:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680294', 'tblTempUsageDetail_20' ) start [2025-03-14 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680294', 'tblTempUsageDetail_20' ) end [2025-03-14 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680294', 'tblTempVendorCDR_20' ) start [2025-03-14 17:13:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680294', 'tblTempVendorCDR_20' ) end [2025-03-14 17:13:21] Production.INFO: ProcessCDR(1,14680294,1,1,2) [2025-03-14 17:13:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:13:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680294,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:13:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:13:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680294,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680294', 'tblTempUsageDetail_20' ) start [2025-03-14 17:13:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680294', 'tblTempUsageDetail_20' ) end [2025-03-14 17:13:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 17:13:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 17:13:26] Production.INFO: ==3309== Releasing lock... [2025-03-14 17:13:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 17:13:26] Production.INFO: 64.5 MB #Memory Used# [2025-03-14 17:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 14:14:05 [end_date_ymd] => 2025-03-14 17:14:05 [RateCDR] => 1 ) [2025-03-14 17:14: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-03-14 14:14:05' and `end` < '2025-03-14 17:14: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-03-14 17:14:18] Production.INFO: count ==4876 [2025-03-14 17:14:20] Production.ERROR: pbx CDR StartTime 2025-03-14 14:14:05 - End Time 2025-03-14 17:14:05 [2025-03-14 17:14:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 17:14:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680299', 'tblTempUsageDetail_20' ) start [2025-03-14 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680299', 'tblTempUsageDetail_20' ) end [2025-03-14 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680299', 'tblTempVendorCDR_20' ) start [2025-03-14 17:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680299', 'tblTempVendorCDR_20' ) end [2025-03-14 17:14:21] Production.INFO: ProcessCDR(1,14680299,1,1,2) [2025-03-14 17:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680299,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680299,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680299', 'tblTempUsageDetail_20' ) start [2025-03-14 17:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680299', 'tblTempUsageDetail_20' ) end [2025-03-14 17:14:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 17:14:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 17:14:26] Production.INFO: ==3380== Releasing lock... [2025-03-14 17:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 17:14:26] Production.INFO: 64.5 MB #Memory Used# [2025-03-14 17:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 14:15:06 [end_date_ymd] => 2025-03-14 17:15:06 [RateCDR] => 1 ) [2025-03-14 17:15: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-03-14 14:15:06' and `end` < '2025-03-14 17:15: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-03-14 17:15:19] Production.INFO: count ==4870 [2025-03-14 17:15:21] Production.ERROR: pbx CDR StartTime 2025-03-14 14:15:06 - End Time 2025-03-14 17:15:06 [2025-03-14 17:15:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680304', 'tblTempUsageDetail_20' ) start [2025-03-14 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680304', 'tblTempUsageDetail_20' ) end [2025-03-14 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680304', 'tblTempVendorCDR_20' ) start [2025-03-14 17:15:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680304', 'tblTempVendorCDR_20' ) end [2025-03-14 17:15:21] Production.INFO: ProcessCDR(1,14680304,1,1,2) [2025-03-14 17:15:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:15:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680304,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:15:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:15:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680304,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680304', 'tblTempUsageDetail_20' ) start [2025-03-14 17:15:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680304', 'tblTempUsageDetail_20' ) end [2025-03-14 17:15:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 17:15:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 17:15:26] Production.INFO: ==3464== Releasing lock... [2025-03-14 17:15:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 17:15:26] Production.INFO: 64.5 MB #Memory Used# [2025-03-14 17:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 14:16:05 [end_date_ymd] => 2025-03-14 17:16:05 [RateCDR] => 1 ) [2025-03-14 17:16: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-03-14 14:16:05' and `end` < '2025-03-14 17:16: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-03-14 17:16:18] Production.INFO: count ==4859 [2025-03-14 17:16:20] Production.ERROR: pbx CDR StartTime 2025-03-14 14:16:05 - End Time 2025-03-14 17:16:05 [2025-03-14 17:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 17:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680309', 'tblTempUsageDetail_20' ) start [2025-03-14 17:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680309', 'tblTempUsageDetail_20' ) end [2025-03-14 17:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680309', 'tblTempVendorCDR_20' ) start [2025-03-14 17:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680309', 'tblTempVendorCDR_20' ) end [2025-03-14 17:16:20] Production.INFO: ProcessCDR(1,14680309,1,1,2) [2025-03-14 17:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680309,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680309,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680309', 'tblTempUsageDetail_20' ) start [2025-03-14 17:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680309', 'tblTempUsageDetail_20' ) end [2025-03-14 17:16:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 17:16:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 17:16:25] Production.INFO: ==3545== Releasing lock... [2025-03-14 17:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 17:16:25] Production.INFO: 64.5 MB #Memory Used# [2025-03-14 17:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 14:17:06 [end_date_ymd] => 2025-03-14 17:17:06 [RateCDR] => 1 ) [2025-03-14 17:17: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-03-14 14:17:06' and `end` < '2025-03-14 17:17: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-03-14 17:17:19] Production.INFO: count ==4871 [2025-03-14 17:17:21] Production.ERROR: pbx CDR StartTime 2025-03-14 14:17:06 - End Time 2025-03-14 17:17:06 [2025-03-14 17:17:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680314', 'tblTempUsageDetail_20' ) start [2025-03-14 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680314', 'tblTempUsageDetail_20' ) end [2025-03-14 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680314', 'tblTempVendorCDR_20' ) start [2025-03-14 17:17:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680314', 'tblTempVendorCDR_20' ) end [2025-03-14 17:17:21] Production.INFO: ProcessCDR(1,14680314,1,1,2) [2025-03-14 17:17:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:17:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680314,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:17:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:17:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680314,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680314', 'tblTempUsageDetail_20' ) start [2025-03-14 17:17:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680314', 'tblTempUsageDetail_20' ) end [2025-03-14 17:17:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 17:17:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 17:17:26] Production.INFO: ==3619== Releasing lock... [2025-03-14 17:17:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 17:17:26] Production.INFO: 64.5 MB #Memory Used# [2025-03-14 17:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 14:18:05 [end_date_ymd] => 2025-03-14 17:18:05 [RateCDR] => 1 ) [2025-03-14 17:18: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-03-14 14:18:05' and `end` < '2025-03-14 17:18: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-03-14 17:18:18] Production.INFO: count ==4846 [2025-03-14 17:18:20] Production.ERROR: pbx CDR StartTime 2025-03-14 14:18:05 - End Time 2025-03-14 17:18:05 [2025-03-14 17:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680319', 'tblTempUsageDetail_20' ) start [2025-03-14 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680319', 'tblTempUsageDetail_20' ) end [2025-03-14 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680319', 'tblTempVendorCDR_20' ) start [2025-03-14 17:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680319', 'tblTempVendorCDR_20' ) end [2025-03-14 17:18:20] Production.INFO: ProcessCDR(1,14680319,1,1,2) [2025-03-14 17:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:18:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680319,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:18:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:18:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680319,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680319', 'tblTempUsageDetail_20' ) start [2025-03-14 17:18:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680319', 'tblTempUsageDetail_20' ) end [2025-03-14 17:18:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 17:18:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 17:18:25] Production.INFO: ==3707== Releasing lock... [2025-03-14 17:18:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 17:18:25] Production.INFO: 64.25 MB #Memory Used# [2025-03-14 17:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 14:19:05 [end_date_ymd] => 2025-03-14 17:19:05 [RateCDR] => 1 ) [2025-03-14 17:19: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-03-14 14:19:05' and `end` < '2025-03-14 17:19: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-03-14 17:19:18] Production.INFO: count ==4841 [2025-03-14 17:19:20] Production.ERROR: pbx CDR StartTime 2025-03-14 14:19:05 - End Time 2025-03-14 17:19:05 [2025-03-14 17:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 17:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680324', 'tblTempUsageDetail_20' ) start [2025-03-14 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680324', 'tblTempUsageDetail_20' ) end [2025-03-14 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680324', 'tblTempVendorCDR_20' ) start [2025-03-14 17:19:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680324', 'tblTempVendorCDR_20' ) end [2025-03-14 17:19:21] Production.INFO: ProcessCDR(1,14680324,1,1,2) [2025-03-14 17:19:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:19:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680324,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:19:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:19:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680324,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:19:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680324', 'tblTempUsageDetail_20' ) start [2025-03-14 17:19:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680324', 'tblTempUsageDetail_20' ) end [2025-03-14 17:19:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 17:19:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 17:19:26] Production.INFO: ==3784== Releasing lock... [2025-03-14 17:19:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 17:19:26] Production.INFO: 64.25 MB #Memory Used# [2025-03-14 17:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 14:20:06 [end_date_ymd] => 2025-03-14 17:20:06 [RateCDR] => 1 ) [2025-03-14 17:20: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-03-14 14:20:06' and `end` < '2025-03-14 17:20: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-03-14 17:20:19] Production.INFO: count ==4849 [2025-03-14 17:20:21] Production.ERROR: pbx CDR StartTime 2025-03-14 14:20:06 - End Time 2025-03-14 17:20:06 [2025-03-14 17:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680330', 'tblTempUsageDetail_20' ) start [2025-03-14 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680330', 'tblTempUsageDetail_20' ) end [2025-03-14 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680330', 'tblTempVendorCDR_20' ) start [2025-03-14 17:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680330', 'tblTempVendorCDR_20' ) end [2025-03-14 17:20:21] Production.INFO: ProcessCDR(1,14680330,1,1,2) [2025-03-14 17:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680330,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680330,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680330', 'tblTempUsageDetail_20' ) start [2025-03-14 17:20:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680330', 'tblTempUsageDetail_20' ) end [2025-03-14 17:20:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 17:20:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 17:20:27] Production.INFO: ==3855== Releasing lock... [2025-03-14 17:20:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 17:20:27] Production.INFO: 64.25 MB #Memory Used# [2025-03-14 17:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 14:21:05 [end_date_ymd] => 2025-03-14 17:21:05 [RateCDR] => 1 ) [2025-03-14 17:21: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-03-14 14:21:05' and `end` < '2025-03-14 17:21: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-03-14 17:21:18] Production.INFO: count ==4777 [2025-03-14 17:21:20] Production.ERROR: pbx CDR StartTime 2025-03-14 14:21:05 - End Time 2025-03-14 17:21:05 [2025-03-14 17:21:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 17:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680335', 'tblTempUsageDetail_20' ) start [2025-03-14 17:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680335', 'tblTempUsageDetail_20' ) end [2025-03-14 17:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680335', 'tblTempVendorCDR_20' ) start [2025-03-14 17:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680335', 'tblTempVendorCDR_20' ) end [2025-03-14 17:21:20] Production.INFO: ProcessCDR(1,14680335,1,1,2) [2025-03-14 17:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680335,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680335,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680335', 'tblTempUsageDetail_20' ) start [2025-03-14 17:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680335', 'tblTempUsageDetail_20' ) end [2025-03-14 17:21:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 17:21:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 17:21:24] Production.INFO: ==3934== Releasing lock... [2025-03-14 17:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 17:21:24] Production.INFO: 63.75 MB #Memory Used# [2025-03-14 17:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 14:22:05 [end_date_ymd] => 2025-03-14 17:22:05 [RateCDR] => 1 ) [2025-03-14 17:22: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-03-14 14:22:05' and `end` < '2025-03-14 17:22: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-03-14 17:22:18] Production.INFO: count ==4781 [2025-03-14 17:22:20] Production.ERROR: pbx CDR StartTime 2025-03-14 14:22:05 - End Time 2025-03-14 17:22:05 [2025-03-14 17:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 17:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680340', 'tblTempUsageDetail_20' ) start [2025-03-14 17:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680340', 'tblTempUsageDetail_20' ) end [2025-03-14 17:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680340', 'tblTempVendorCDR_20' ) start [2025-03-14 17:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680340', 'tblTempVendorCDR_20' ) end [2025-03-14 17:22:20] Production.INFO: ProcessCDR(1,14680340,1,1,2) [2025-03-14 17:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680340,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680340,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680340', 'tblTempUsageDetail_20' ) start [2025-03-14 17:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680340', 'tblTempUsageDetail_20' ) end [2025-03-14 17:22:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 17:22:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 17:22:25] Production.INFO: ==4010== Releasing lock... [2025-03-14 17:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 17:22:25] Production.INFO: 63.75 MB #Memory Used# [2025-03-14 17:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 14:23:05 [end_date_ymd] => 2025-03-14 17:23:05 [RateCDR] => 1 ) [2025-03-14 17:23: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-03-14 14:23:05' and `end` < '2025-03-14 17:23: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-03-14 17:23:18] Production.INFO: count ==4753 [2025-03-14 17:23:20] Production.ERROR: pbx CDR StartTime 2025-03-14 14:23:05 - End Time 2025-03-14 17:23:05 [2025-03-14 17:23:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680345', 'tblTempUsageDetail_20' ) start [2025-03-14 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680345', 'tblTempUsageDetail_20' ) end [2025-03-14 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680345', 'tblTempVendorCDR_20' ) start [2025-03-14 17:23:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680345', 'tblTempVendorCDR_20' ) end [2025-03-14 17:23:20] Production.INFO: ProcessCDR(1,14680345,1,1,2) [2025-03-14 17:23:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:23:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680345,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:23:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:23:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680345,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680345', 'tblTempUsageDetail_20' ) start [2025-03-14 17:23:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680345', 'tblTempUsageDetail_20' ) end [2025-03-14 17:23:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 17:23:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 17:23:25] Production.INFO: ==4126== Releasing lock... [2025-03-14 17:23:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 17:23:25] Production.INFO: 63.5 MB #Memory Used# [2025-03-14 17:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 14:24:05 [end_date_ymd] => 2025-03-14 17:24:05 [RateCDR] => 1 ) [2025-03-14 17:24: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-03-14 14:24:05' and `end` < '2025-03-14 17:24: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-03-14 17:24:19] Production.INFO: count ==4743 [2025-03-14 17:24:21] Production.ERROR: pbx CDR StartTime 2025-03-14 14:24:05 - End Time 2025-03-14 17:24:05 [2025-03-14 17:24:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680350', 'tblTempUsageDetail_20' ) start [2025-03-14 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680350', 'tblTempUsageDetail_20' ) end [2025-03-14 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680350', 'tblTempVendorCDR_20' ) start [2025-03-14 17:24:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680350', 'tblTempVendorCDR_20' ) end [2025-03-14 17:24:21] Production.INFO: ProcessCDR(1,14680350,1,1,2) [2025-03-14 17:24:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:24:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680350,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:24:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:24:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680350,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680350', 'tblTempUsageDetail_20' ) start [2025-03-14 17:24:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680350', 'tblTempUsageDetail_20' ) end [2025-03-14 17:24:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 17:24:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 17:24:26] Production.INFO: ==4202== Releasing lock... [2025-03-14 17:24:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 17:24:26] Production.INFO: 63.5 MB #Memory Used# [2025-03-14 17:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 14:25:05 [end_date_ymd] => 2025-03-14 17:25:05 [RateCDR] => 1 ) [2025-03-14 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-03-14 14:25:05' and `end` < '2025-03-14 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-03-14 17:25:19] Production.INFO: count ==4730 [2025-03-14 17:25:21] Production.ERROR: pbx CDR StartTime 2025-03-14 14:25:05 - End Time 2025-03-14 17:25:05 [2025-03-14 17:25:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680355', 'tblTempUsageDetail_20' ) start [2025-03-14 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680355', 'tblTempUsageDetail_20' ) end [2025-03-14 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680355', 'tblTempVendorCDR_20' ) start [2025-03-14 17:25:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680355', 'tblTempVendorCDR_20' ) end [2025-03-14 17:25:21] Production.INFO: ProcessCDR(1,14680355,1,1,2) [2025-03-14 17:25:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:25:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680355,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:25:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:25:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680355,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:25:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680355', 'tblTempUsageDetail_20' ) start [2025-03-14 17:25:27] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680355', 'tblTempUsageDetail_20' ) end [2025-03-14 17:25:27] Production.ERROR: pbx prc_insertCDR start [2025-03-14 17:25:27] Production.ERROR: pbx prc_insertCDR end [2025-03-14 17:25:27] Production.INFO: ==4282== Releasing lock... [2025-03-14 17:25:27] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 17:25:27] Production.INFO: 63.5 MB #Memory Used# [2025-03-14 17:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 14:26:06 [end_date_ymd] => 2025-03-14 17:26:06 [RateCDR] => 1 ) [2025-03-14 17:26: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-03-14 14:26:06' and `end` < '2025-03-14 17:26: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-03-14 17:26:19] Production.INFO: count ==4727 [2025-03-14 17:26:21] Production.ERROR: pbx CDR StartTime 2025-03-14 14:26:06 - End Time 2025-03-14 17:26:06 [2025-03-14 17:26:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 17:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680360', 'tblTempUsageDetail_20' ) start [2025-03-14 17:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680360', 'tblTempUsageDetail_20' ) end [2025-03-14 17:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680360', 'tblTempVendorCDR_20' ) start [2025-03-14 17:26:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680360', 'tblTempVendorCDR_20' ) end [2025-03-14 17:26:21] Production.INFO: ProcessCDR(1,14680360,1,1,2) [2025-03-14 17:26:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:26:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680360,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:26:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:26:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680360,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680360', 'tblTempUsageDetail_20' ) start [2025-03-14 17:26:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680360', 'tblTempUsageDetail_20' ) end [2025-03-14 17:26:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 17:26:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 17:26:26] Production.INFO: ==4356== Releasing lock... [2025-03-14 17:26:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 17:26:26] Production.INFO: 63.5 MB #Memory Used# [2025-03-14 17:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 14:27:05 [end_date_ymd] => 2025-03-14 17:27:05 [RateCDR] => 1 ) [2025-03-14 17:27: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-03-14 14:27:05' and `end` < '2025-03-14 17:27: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-03-14 17:27:18] Production.INFO: count ==4709 [2025-03-14 17:27:20] Production.ERROR: pbx CDR StartTime 2025-03-14 14:27:05 - End Time 2025-03-14 17:27:05 [2025-03-14 17:27:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 17:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680365', 'tblTempUsageDetail_20' ) start [2025-03-14 17:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680365', 'tblTempUsageDetail_20' ) end [2025-03-14 17:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680365', 'tblTempVendorCDR_20' ) start [2025-03-14 17:27:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680365', 'tblTempVendorCDR_20' ) end [2025-03-14 17:27:20] Production.INFO: ProcessCDR(1,14680365,1,1,2) [2025-03-14 17:27:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:27:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680365,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:27:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:27:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680365,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680365', 'tblTempUsageDetail_20' ) start [2025-03-14 17:27:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680365', 'tblTempUsageDetail_20' ) end [2025-03-14 17:27:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 17:27:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 17:27:26] Production.INFO: ==4428== Releasing lock... [2025-03-14 17:27:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 17:27:26] Production.INFO: 63.25 MB #Memory Used# [2025-03-14 17:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 14:28:05 [end_date_ymd] => 2025-03-14 17:28:05 [RateCDR] => 1 ) [2025-03-14 17:28: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-03-14 14:28:05' and `end` < '2025-03-14 17:28: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-03-14 17:28:18] Production.INFO: count ==4714 [2025-03-14 17:28:20] Production.ERROR: pbx CDR StartTime 2025-03-14 14:28:05 - End Time 2025-03-14 17:28:05 [2025-03-14 17:28:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 17:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680370', 'tblTempUsageDetail_20' ) start [2025-03-14 17:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680370', 'tblTempUsageDetail_20' ) end [2025-03-14 17:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680370', 'tblTempVendorCDR_20' ) start [2025-03-14 17:28:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680370', 'tblTempVendorCDR_20' ) end [2025-03-14 17:28:20] Production.INFO: ProcessCDR(1,14680370,1,1,2) [2025-03-14 17:28:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:28:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680370,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:28:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680370,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680370', 'tblTempUsageDetail_20' ) start [2025-03-14 17:28:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680370', 'tblTempUsageDetail_20' ) end [2025-03-14 17:28:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 17:28:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 17:28:26] Production.INFO: ==4503== Releasing lock... [2025-03-14 17:28:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 17:28:26] Production.INFO: 63.25 MB #Memory Used# [2025-03-14 17:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 14:29:05 [end_date_ymd] => 2025-03-14 17:29:05 [RateCDR] => 1 ) [2025-03-14 17:29: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-03-14 14:29:05' and `end` < '2025-03-14 17:29: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-03-14 17:29:18] Production.INFO: count ==4723 [2025-03-14 17:29:20] Production.ERROR: pbx CDR StartTime 2025-03-14 14:29:05 - End Time 2025-03-14 17:29:05 [2025-03-14 17:29:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 17:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680375', 'tblTempUsageDetail_20' ) start [2025-03-14 17:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680375', 'tblTempUsageDetail_20' ) end [2025-03-14 17:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680375', 'tblTempVendorCDR_20' ) start [2025-03-14 17:29:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680375', 'tblTempVendorCDR_20' ) end [2025-03-14 17:29:20] Production.INFO: ProcessCDR(1,14680375,1,1,2) [2025-03-14 17:29:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:29:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680375,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:29:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:29:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680375,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680375', 'tblTempUsageDetail_20' ) start [2025-03-14 17:29:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680375', 'tblTempUsageDetail_20' ) end [2025-03-14 17:29:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 17:29:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 17:29:25] Production.INFO: ==4587== Releasing lock... [2025-03-14 17:29:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 17:29:25] Production.INFO: 63.25 MB #Memory Used# [2025-03-14 17:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 14:30:06 [end_date_ymd] => 2025-03-14 17:30:06 [RateCDR] => 1 ) [2025-03-14 17:30: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-03-14 14:30:06' and `end` < '2025-03-14 17:30: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-03-14 17:30:19] Production.INFO: count ==4709 [2025-03-14 17:30:21] Production.ERROR: pbx CDR StartTime 2025-03-14 14:30:06 - End Time 2025-03-14 17:30:06 [2025-03-14 17:30:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 17:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680381', 'tblTempUsageDetail_20' ) start [2025-03-14 17:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680381', 'tblTempUsageDetail_20' ) end [2025-03-14 17:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680381', 'tblTempVendorCDR_20' ) start [2025-03-14 17:30:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680381', 'tblTempVendorCDR_20' ) end [2025-03-14 17:30:21] Production.INFO: ProcessCDR(1,14680381,1,1,2) [2025-03-14 17:30:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:30:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680381,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:30:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:30:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680381,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680381', 'tblTempUsageDetail_20' ) start [2025-03-14 17:30:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680381', 'tblTempUsageDetail_20' ) end [2025-03-14 17:30:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 17:30:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 17:30:26] Production.INFO: ==4666== Releasing lock... [2025-03-14 17:30:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 17:30:26] Production.INFO: 63.25 MB #Memory Used# [2025-03-14 17:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 14:31:05 [end_date_ymd] => 2025-03-14 17:31:05 [RateCDR] => 1 ) [2025-03-14 17:31: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-03-14 14:31:05' and `end` < '2025-03-14 17:31: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-03-14 17:31:18] Production.INFO: count ==4645 [2025-03-14 17:31:20] Production.ERROR: pbx CDR StartTime 2025-03-14 14:31:05 - End Time 2025-03-14 17:31:05 [2025-03-14 17:31:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 17:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680386', 'tblTempUsageDetail_20' ) start [2025-03-14 17:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680386', 'tblTempUsageDetail_20' ) end [2025-03-14 17:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680386', 'tblTempVendorCDR_20' ) start [2025-03-14 17:31:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680386', 'tblTempVendorCDR_20' ) end [2025-03-14 17:31:20] Production.INFO: ProcessCDR(1,14680386,1,1,2) [2025-03-14 17:31:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:31:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680386,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:31:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680386,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680386', 'tblTempUsageDetail_20' ) start [2025-03-14 17:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680386', 'tblTempUsageDetail_20' ) end [2025-03-14 17:31:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 17:31:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 17:31:24] Production.INFO: ==4740== Releasing lock... [2025-03-14 17:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 17:31:24] Production.INFO: 62.75 MB #Memory Used# [2025-03-14 17:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 14:32:06 [end_date_ymd] => 2025-03-14 17:32:06 [RateCDR] => 1 ) [2025-03-14 17:32: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-03-14 14:32:06' and `end` < '2025-03-14 17:32: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-03-14 17:32:19] Production.INFO: count ==4629 [2025-03-14 17:32:21] Production.ERROR: pbx CDR StartTime 2025-03-14 14:32:06 - End Time 2025-03-14 17:32:06 [2025-03-14 17:32:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 17:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680391', 'tblTempUsageDetail_20' ) start [2025-03-14 17:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680391', 'tblTempUsageDetail_20' ) end [2025-03-14 17:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680391', 'tblTempVendorCDR_20' ) start [2025-03-14 17:32:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680391', 'tblTempVendorCDR_20' ) end [2025-03-14 17:32:21] Production.INFO: ProcessCDR(1,14680391,1,1,2) [2025-03-14 17:32:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:32:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680391,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:32:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:32:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680391,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680391', 'tblTempUsageDetail_20' ) start [2025-03-14 17:32:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680391', 'tblTempUsageDetail_20' ) end [2025-03-14 17:32:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 17:32:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 17:32:24] Production.INFO: ==4813== Releasing lock... [2025-03-14 17:32:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 17:32:24] Production.INFO: 62.75 MB #Memory Used# [2025-03-14 17:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 14:33:05 [end_date_ymd] => 2025-03-14 17:33:05 [RateCDR] => 1 ) [2025-03-14 17:33: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-03-14 14:33:05' and `end` < '2025-03-14 17:33: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-03-14 17:33:18] Production.INFO: count ==4608 [2025-03-14 17:33:20] Production.ERROR: pbx CDR StartTime 2025-03-14 14:33:05 - End Time 2025-03-14 17:33:05 [2025-03-14 17:33:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 17:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680396', 'tblTempUsageDetail_20' ) start [2025-03-14 17:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680396', 'tblTempUsageDetail_20' ) end [2025-03-14 17:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680396', 'tblTempVendorCDR_20' ) start [2025-03-14 17:33:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680396', 'tblTempVendorCDR_20' ) end [2025-03-14 17:33:20] Production.INFO: ProcessCDR(1,14680396,1,1,2) [2025-03-14 17:33:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680396,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:33:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680396,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680396', 'tblTempUsageDetail_20' ) start [2025-03-14 17:33:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680396', 'tblTempUsageDetail_20' ) end [2025-03-14 17:33:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 17:33:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 17:33:23] Production.INFO: ==4891== Releasing lock... [2025-03-14 17:33:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 17:33:23] Production.INFO: 62.5 MB #Memory Used# [2025-03-14 17:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 14:34:06 [end_date_ymd] => 2025-03-14 17:34:06 [RateCDR] => 1 ) [2025-03-14 17:34: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-03-14 14:34:06' and `end` < '2025-03-14 17:34: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-03-14 17:34:19] Production.INFO: count ==4584 [2025-03-14 17:34:20] Production.ERROR: pbx CDR StartTime 2025-03-14 14:34:06 - End Time 2025-03-14 17:34:06 [2025-03-14 17:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 17:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680401', 'tblTempUsageDetail_20' ) start [2025-03-14 17:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680401', 'tblTempUsageDetail_20' ) end [2025-03-14 17:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680401', 'tblTempVendorCDR_20' ) start [2025-03-14 17:34:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680401', 'tblTempVendorCDR_20' ) end [2025-03-14 17:34:21] Production.INFO: ProcessCDR(1,14680401,1,1,2) [2025-03-14 17:34:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680401,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680401,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680401', 'tblTempUsageDetail_20' ) start [2025-03-14 17:34:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680401', 'tblTempUsageDetail_20' ) end [2025-03-14 17:34:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 17:34:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 17:34:26] Production.INFO: ==4976== Releasing lock... [2025-03-14 17:34:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 17:34:26] Production.INFO: 62.25 MB #Memory Used# [2025-03-14 17:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 14:35:05 [end_date_ymd] => 2025-03-14 17:35:05 [RateCDR] => 1 ) [2025-03-14 17:35: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-03-14 14:35:05' and `end` < '2025-03-14 17:35: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-03-14 17:35:18] Production.INFO: count ==4571 [2025-03-14 17:35:20] Production.ERROR: pbx CDR StartTime 2025-03-14 14:35:05 - End Time 2025-03-14 17:35:05 [2025-03-14 17:35:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680406', 'tblTempUsageDetail_20' ) start [2025-03-14 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680406', 'tblTempUsageDetail_20' ) end [2025-03-14 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680406', 'tblTempVendorCDR_20' ) start [2025-03-14 17:35:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680406', 'tblTempVendorCDR_20' ) end [2025-03-14 17:35:20] Production.INFO: ProcessCDR(1,14680406,1,1,2) [2025-03-14 17:35:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680406,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680406,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680406', 'tblTempUsageDetail_20' ) start [2025-03-14 17:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680406', 'tblTempUsageDetail_20' ) end [2025-03-14 17:35:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 17:35:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 17:35:24] Production.INFO: ==5054== Releasing lock... [2025-03-14 17:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 17:35:24] Production.INFO: 62.25 MB #Memory Used# [2025-03-14 17:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 14:36:06 [end_date_ymd] => 2025-03-14 17:36:06 [RateCDR] => 1 ) [2025-03-14 17:36: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-03-14 14:36:06' and `end` < '2025-03-14 17:36: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-03-14 17:36:19] Production.INFO: count ==4560 [2025-03-14 17:36:21] Production.ERROR: pbx CDR StartTime 2025-03-14 14:36:06 - End Time 2025-03-14 17:36:06 [2025-03-14 17:36:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680411', 'tblTempUsageDetail_20' ) start [2025-03-14 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680411', 'tblTempUsageDetail_20' ) end [2025-03-14 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680411', 'tblTempVendorCDR_20' ) start [2025-03-14 17:36:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680411', 'tblTempVendorCDR_20' ) end [2025-03-14 17:36:21] Production.INFO: ProcessCDR(1,14680411,1,1,2) [2025-03-14 17:36:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:36:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680411,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:36:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:36:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680411,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680411', 'tblTempUsageDetail_20' ) start [2025-03-14 17:36:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680411', 'tblTempUsageDetail_20' ) end [2025-03-14 17:36:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 17:36:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 17:36:26] Production.INFO: ==5132== Releasing lock... [2025-03-14 17:36:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 17:36:26] Production.INFO: 62.25 MB #Memory Used# [2025-03-14 17:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 14:37:05 [end_date_ymd] => 2025-03-14 17:37:05 [RateCDR] => 1 ) [2025-03-14 17:37: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-03-14 14:37:05' and `end` < '2025-03-14 17:37: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-03-14 17:37:18] Production.INFO: count ==4533 [2025-03-14 17:37:19] Production.ERROR: pbx CDR StartTime 2025-03-14 14:37:05 - End Time 2025-03-14 17:37:05 [2025-03-14 17:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 17:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680416', 'tblTempUsageDetail_20' ) start [2025-03-14 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680416', 'tblTempUsageDetail_20' ) end [2025-03-14 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680416', 'tblTempVendorCDR_20' ) start [2025-03-14 17:37:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680416', 'tblTempVendorCDR_20' ) end [2025-03-14 17:37:20] Production.INFO: ProcessCDR(1,14680416,1,1,2) [2025-03-14 17:37:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680416,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680416,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680416', 'tblTempUsageDetail_20' ) start [2025-03-14 17:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680416', 'tblTempUsageDetail_20' ) end [2025-03-14 17:37:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 17:37:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 17:37:24] Production.INFO: ==5205== Releasing lock... [2025-03-14 17:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 17:37:24] Production.INFO: 62 MB #Memory Used# [2025-03-14 17:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 14:38:05 [end_date_ymd] => 2025-03-14 17:38:05 [RateCDR] => 1 ) [2025-03-14 17:38: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-03-14 14:38:05' and `end` < '2025-03-14 17:38: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-03-14 17:38:18] Production.INFO: count ==4519 [2025-03-14 17:38:20] Production.ERROR: pbx CDR StartTime 2025-03-14 14:38:05 - End Time 2025-03-14 17:38:05 [2025-03-14 17:38:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680421', 'tblTempUsageDetail_20' ) start [2025-03-14 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680421', 'tblTempUsageDetail_20' ) end [2025-03-14 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680421', 'tblTempVendorCDR_20' ) start [2025-03-14 17:38:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680421', 'tblTempVendorCDR_20' ) end [2025-03-14 17:38:20] Production.INFO: ProcessCDR(1,14680421,1,1,2) [2025-03-14 17:38:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:38:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680421,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:38:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680421,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680421', 'tblTempUsageDetail_20' ) start [2025-03-14 17:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680421', 'tblTempUsageDetail_20' ) end [2025-03-14 17:38:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 17:38:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 17:38:24] Production.INFO: ==5319== Releasing lock... [2025-03-14 17:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 17:38:24] Production.INFO: 61.75 MB #Memory Used# [2025-03-14 17:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 14:39:05 [end_date_ymd] => 2025-03-14 17:39:05 [RateCDR] => 1 ) [2025-03-14 17:39: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-03-14 14:39:05' and `end` < '2025-03-14 17:39: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-03-14 17:39:18] Production.INFO: count ==4491 [2025-03-14 17:39:20] Production.ERROR: pbx CDR StartTime 2025-03-14 14:39:05 - End Time 2025-03-14 17:39:05 [2025-03-14 17:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680426', 'tblTempUsageDetail_20' ) start [2025-03-14 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680426', 'tblTempUsageDetail_20' ) end [2025-03-14 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680426', 'tblTempVendorCDR_20' ) start [2025-03-14 17:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680426', 'tblTempVendorCDR_20' ) end [2025-03-14 17:39:20] Production.INFO: ProcessCDR(1,14680426,1,1,2) [2025-03-14 17:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:39:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680426,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:39:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680426,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680426', 'tblTempUsageDetail_20' ) start [2025-03-14 17:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680426', 'tblTempUsageDetail_20' ) end [2025-03-14 17:39:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 17:39:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 17:39:25] Production.INFO: ==5400== Releasing lock... [2025-03-14 17:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 17:39:25] Production.INFO: 61.75 MB #Memory Used# [2025-03-14 17:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 14:40:06 [end_date_ymd] => 2025-03-14 17:40:06 [RateCDR] => 1 ) [2025-03-14 17:40: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-03-14 14:40:06' and `end` < '2025-03-14 17:40: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-03-14 17:40:20] Production.INFO: count ==4485 [2025-03-14 17:40:21] Production.ERROR: pbx CDR StartTime 2025-03-14 14:40:06 - End Time 2025-03-14 17:40:06 [2025-03-14 17:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680432', 'tblTempUsageDetail_20' ) start [2025-03-14 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680432', 'tblTempUsageDetail_20' ) end [2025-03-14 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680432', 'tblTempVendorCDR_20' ) start [2025-03-14 17:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680432', 'tblTempVendorCDR_20' ) end [2025-03-14 17:40:21] Production.INFO: ProcessCDR(1,14680432,1,1,2) [2025-03-14 17:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:40:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680432,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:40:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:40:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680432,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680432', 'tblTempUsageDetail_20' ) start [2025-03-14 17:40:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680432', 'tblTempUsageDetail_20' ) end [2025-03-14 17:40:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 17:40:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 17:40:25] Production.INFO: ==5487== Releasing lock... [2025-03-14 17:40:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 17:40:25] Production.INFO: 61.5 MB #Memory Used# [2025-03-14 17:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 14:41:05 [end_date_ymd] => 2025-03-14 17:41:05 [RateCDR] => 1 ) [2025-03-14 17:41: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-03-14 14:41:05' and `end` < '2025-03-14 17:41: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-03-14 17:41:18] Production.INFO: count ==4478 [2025-03-14 17:41:20] Production.ERROR: pbx CDR StartTime 2025-03-14 14:41:05 - End Time 2025-03-14 17:41:05 [2025-03-14 17:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680437', 'tblTempUsageDetail_20' ) start [2025-03-14 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680437', 'tblTempUsageDetail_20' ) end [2025-03-14 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680437', 'tblTempVendorCDR_20' ) start [2025-03-14 17:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680437', 'tblTempVendorCDR_20' ) end [2025-03-14 17:41:20] Production.INFO: ProcessCDR(1,14680437,1,1,2) [2025-03-14 17:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680437,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680437,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680437', 'tblTempUsageDetail_20' ) start [2025-03-14 17:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680437', 'tblTempUsageDetail_20' ) end [2025-03-14 17:41:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 17:41:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 17:41:25] Production.INFO: ==5569== Releasing lock... [2025-03-14 17:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 17:41:25] Production.INFO: 61.5 MB #Memory Used# [2025-03-14 17:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 14:42:05 [end_date_ymd] => 2025-03-14 17:42:05 [RateCDR] => 1 ) [2025-03-14 17:42: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-03-14 14:42:05' and `end` < '2025-03-14 17:42: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-03-14 17:42:18] Production.INFO: count ==4464 [2025-03-14 17:42:20] Production.ERROR: pbx CDR StartTime 2025-03-14 14:42:05 - End Time 2025-03-14 17:42:05 [2025-03-14 17:42:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680442', 'tblTempUsageDetail_20' ) start [2025-03-14 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680442', 'tblTempUsageDetail_20' ) end [2025-03-14 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680442', 'tblTempVendorCDR_20' ) start [2025-03-14 17:42:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680442', 'tblTempVendorCDR_20' ) end [2025-03-14 17:42:20] Production.INFO: ProcessCDR(1,14680442,1,1,2) [2025-03-14 17:42:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680442,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680442,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680442', 'tblTempUsageDetail_20' ) start [2025-03-14 17:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680442', 'tblTempUsageDetail_20' ) end [2025-03-14 17:42:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 17:42:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 17:42:24] Production.INFO: ==5654== Releasing lock... [2025-03-14 17:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 17:42:24] Production.INFO: 61.5 MB #Memory Used# [2025-03-14 17:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 14:43:05 [end_date_ymd] => 2025-03-14 17:43:05 [RateCDR] => 1 ) [2025-03-14 17:43: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-03-14 14:43:05' and `end` < '2025-03-14 17:43: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-03-14 17:43:18] Production.INFO: count ==4457 [2025-03-14 17:43:19] Production.ERROR: pbx CDR StartTime 2025-03-14 14:43:05 - End Time 2025-03-14 17:43:05 [2025-03-14 17:43:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 17:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680447', 'tblTempUsageDetail_20' ) start [2025-03-14 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680447', 'tblTempUsageDetail_20' ) end [2025-03-14 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680447', 'tblTempVendorCDR_20' ) start [2025-03-14 17:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680447', 'tblTempVendorCDR_20' ) end [2025-03-14 17:43:20] Production.INFO: ProcessCDR(1,14680447,1,1,2) [2025-03-14 17:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:43:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680447,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:43:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:43:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680447,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680447', 'tblTempUsageDetail_20' ) start [2025-03-14 17:43:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680447', 'tblTempUsageDetail_20' ) end [2025-03-14 17:43:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 17:43:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 17:43:24] Production.INFO: ==5736== Releasing lock... [2025-03-14 17:43:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 17:43:24] Production.INFO: 61.5 MB #Memory Used# [2025-03-14 17:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 14:44:06 [end_date_ymd] => 2025-03-14 17:44:06 [RateCDR] => 1 ) [2025-03-14 17:44: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-03-14 14:44:06' and `end` < '2025-03-14 17:44: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-03-14 17:44:19] Production.INFO: count ==4454 [2025-03-14 17:44:20] Production.ERROR: pbx CDR StartTime 2025-03-14 14:44:06 - End Time 2025-03-14 17:44:06 [2025-03-14 17:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680452', 'tblTempUsageDetail_20' ) start [2025-03-14 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680452', 'tblTempUsageDetail_20' ) end [2025-03-14 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680452', 'tblTempVendorCDR_20' ) start [2025-03-14 17:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680452', 'tblTempVendorCDR_20' ) end [2025-03-14 17:44:20] Production.INFO: ProcessCDR(1,14680452,1,1,2) [2025-03-14 17:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:44:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680452,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:44:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:44:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680452,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680452', 'tblTempUsageDetail_20' ) start [2025-03-14 17:44:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680452', 'tblTempUsageDetail_20' ) end [2025-03-14 17:44:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 17:44:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 17:44:25] Production.INFO: ==5813== Releasing lock... [2025-03-14 17:44:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 17:44:25] Production.INFO: 61.25 MB #Memory Used# [2025-03-14 17:45:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 14:45:04 [end_date_ymd] => 2025-03-14 17:45:04 [RateCDR] => 1 ) [2025-03-14 17:45: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-03-14 14:45:04' and `end` < '2025-03-14 17:45: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-03-14 17:45:17] Production.INFO: count ==4449 [2025-03-14 17:45:19] Production.ERROR: pbx CDR StartTime 2025-03-14 14:45:04 - End Time 2025-03-14 17:45:04 [2025-03-14 17:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 17:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680457', 'tblTempUsageDetail_20' ) start [2025-03-14 17:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680457', 'tblTempUsageDetail_20' ) end [2025-03-14 17:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680457', 'tblTempVendorCDR_20' ) start [2025-03-14 17:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680457', 'tblTempVendorCDR_20' ) end [2025-03-14 17:45:19] Production.INFO: ProcessCDR(1,14680457,1,1,2) [2025-03-14 17:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680457,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680457,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680457', 'tblTempUsageDetail_20' ) start [2025-03-14 17:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680457', 'tblTempUsageDetail_20' ) end [2025-03-14 17:45:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 17:45:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 17:45:23] Production.INFO: ==5892== Releasing lock... [2025-03-14 17:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 17:45:23] Production.INFO: 61.25 MB #Memory Used# [2025-03-14 17:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 14:46:05 [end_date_ymd] => 2025-03-14 17:46:05 [RateCDR] => 1 ) [2025-03-14 17:46: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-03-14 14:46:05' and `end` < '2025-03-14 17:46: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-03-14 17:46:18] Production.INFO: count ==4426 [2025-03-14 17:46:20] Production.ERROR: pbx CDR StartTime 2025-03-14 14:46:05 - End Time 2025-03-14 17:46:05 [2025-03-14 17:46:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680462', 'tblTempUsageDetail_20' ) start [2025-03-14 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680462', 'tblTempUsageDetail_20' ) end [2025-03-14 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680462', 'tblTempVendorCDR_20' ) start [2025-03-14 17:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680462', 'tblTempVendorCDR_20' ) end [2025-03-14 17:46:20] Production.INFO: ProcessCDR(1,14680462,1,1,2) [2025-03-14 17:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:46:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680462,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:46:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:46:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680462,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680462', 'tblTempUsageDetail_20' ) start [2025-03-14 17:46:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680462', 'tblTempUsageDetail_20' ) end [2025-03-14 17:46:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 17:46:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 17:46:25] Production.INFO: ==5975== Releasing lock... [2025-03-14 17:46:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 17:46:25] Production.INFO: 61.25 MB #Memory Used# [2025-03-14 17:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 14:47:05 [end_date_ymd] => 2025-03-14 17:47:05 [RateCDR] => 1 ) [2025-03-14 17:47: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-03-14 14:47:05' and `end` < '2025-03-14 17:47: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-03-14 17:47:18] Production.INFO: count ==4411 [2025-03-14 17:47:20] Production.ERROR: pbx CDR StartTime 2025-03-14 14:47:05 - End Time 2025-03-14 17:47:05 [2025-03-14 17:47:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680467', 'tblTempUsageDetail_20' ) start [2025-03-14 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680467', 'tblTempUsageDetail_20' ) end [2025-03-14 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680467', 'tblTempVendorCDR_20' ) start [2025-03-14 17:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680467', 'tblTempVendorCDR_20' ) end [2025-03-14 17:47:20] Production.INFO: ProcessCDR(1,14680467,1,1,2) [2025-03-14 17:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:47:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680467,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:47:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:47:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680467,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680467', 'tblTempUsageDetail_20' ) start [2025-03-14 17:47:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680467', 'tblTempUsageDetail_20' ) end [2025-03-14 17:47:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 17:47:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 17:47:25] Production.INFO: ==6056== Releasing lock... [2025-03-14 17:47:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 17:47:25] Production.INFO: 61 MB #Memory Used# [2025-03-14 17:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 14:48:05 [end_date_ymd] => 2025-03-14 17:48:05 [RateCDR] => 1 ) [2025-03-14 17:48: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-03-14 14:48:05' and `end` < '2025-03-14 17:48: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-03-14 17:48:18] Production.INFO: count ==4404 [2025-03-14 17:48:20] Production.ERROR: pbx CDR StartTime 2025-03-14 14:48:05 - End Time 2025-03-14 17:48:05 [2025-03-14 17:48:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680472', 'tblTempUsageDetail_20' ) start [2025-03-14 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680472', 'tblTempUsageDetail_20' ) end [2025-03-14 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680472', 'tblTempVendorCDR_20' ) start [2025-03-14 17:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680472', 'tblTempVendorCDR_20' ) end [2025-03-14 17:48:20] Production.INFO: ProcessCDR(1,14680472,1,1,2) [2025-03-14 17:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:48:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680472,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:48:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:48:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680472,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680472', 'tblTempUsageDetail_20' ) start [2025-03-14 17:48:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680472', 'tblTempUsageDetail_20' ) end [2025-03-14 17:48:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 17:48:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 17:48:25] Production.INFO: ==6138== Releasing lock... [2025-03-14 17:48:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 17:48:25] Production.INFO: 61 MB #Memory Used# [2025-03-14 17:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 14:49:05 [end_date_ymd] => 2025-03-14 17:49:05 [RateCDR] => 1 ) [2025-03-14 17:49: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-03-14 14:49:05' and `end` < '2025-03-14 17:49: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-03-14 17:49:18] Production.INFO: count ==4380 [2025-03-14 17:49:20] Production.ERROR: pbx CDR StartTime 2025-03-14 14:49:05 - End Time 2025-03-14 17:49:05 [2025-03-14 17:49:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680477', 'tblTempUsageDetail_20' ) start [2025-03-14 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680477', 'tblTempUsageDetail_20' ) end [2025-03-14 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680477', 'tblTempVendorCDR_20' ) start [2025-03-14 17:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680477', 'tblTempVendorCDR_20' ) end [2025-03-14 17:49:20] Production.INFO: ProcessCDR(1,14680477,1,1,2) [2025-03-14 17:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:49:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680477,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:49:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:49:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680477,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680477', 'tblTempUsageDetail_20' ) start [2025-03-14 17:49:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680477', 'tblTempUsageDetail_20' ) end [2025-03-14 17:49:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 17:49:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 17:49:25] Production.INFO: ==6220== Releasing lock... [2025-03-14 17:49:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 17:49:25] Production.INFO: 60.75 MB #Memory Used# [2025-03-14 17:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 14:50:06 [end_date_ymd] => 2025-03-14 17:50:06 [RateCDR] => 1 ) [2025-03-14 17:50: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-03-14 14:50:06' and `end` < '2025-03-14 17:50: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-03-14 17:50:19] Production.INFO: count ==4360 [2025-03-14 17:50:21] Production.ERROR: pbx CDR StartTime 2025-03-14 14:50:06 - End Time 2025-03-14 17:50:06 [2025-03-14 17:50:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680483', 'tblTempUsageDetail_20' ) start [2025-03-14 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680483', 'tblTempUsageDetail_20' ) end [2025-03-14 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680483', 'tblTempVendorCDR_20' ) start [2025-03-14 17:50:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680483', 'tblTempVendorCDR_20' ) end [2025-03-14 17:50:21] Production.INFO: ProcessCDR(1,14680483,1,1,2) [2025-03-14 17:50:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:50:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680483,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:50:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680483,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680483', 'tblTempUsageDetail_20' ) start [2025-03-14 17:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680483', 'tblTempUsageDetail_20' ) end [2025-03-14 17:50:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 17:50:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 17:50:26] Production.INFO: ==6295== Releasing lock... [2025-03-14 17:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 17:50:26] Production.INFO: 60.75 MB #Memory Used# [2025-03-14 17:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 14:51:05 [end_date_ymd] => 2025-03-14 17:51:05 [RateCDR] => 1 ) [2025-03-14 17:51: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-03-14 14:51:05' and `end` < '2025-03-14 17:51: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-03-14 17:51:18] Production.INFO: count ==4339 [2025-03-14 17:51:19] Production.ERROR: pbx CDR StartTime 2025-03-14 14:51:05 - End Time 2025-03-14 17:51:05 [2025-03-14 17:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 17:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680488', 'tblTempUsageDetail_20' ) start [2025-03-14 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680488', 'tblTempUsageDetail_20' ) end [2025-03-14 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680488', 'tblTempVendorCDR_20' ) start [2025-03-14 17:51:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680488', 'tblTempVendorCDR_20' ) end [2025-03-14 17:51:20] Production.INFO: ProcessCDR(1,14680488,1,1,2) [2025-03-14 17:51:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:51:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680488,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:51:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:51:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680488,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:51:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680488', 'tblTempUsageDetail_20' ) start [2025-03-14 17:51:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680488', 'tblTempUsageDetail_20' ) end [2025-03-14 17:51:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 17:51:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 17:51:25] Production.INFO: ==6376== Releasing lock... [2025-03-14 17:51:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 17:51:25] Production.INFO: 60.5 MB #Memory Used# [2025-03-14 17:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 14:52:06 [end_date_ymd] => 2025-03-14 17:52:06 [RateCDR] => 1 ) [2025-03-14 17:52: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-03-14 14:52:06' and `end` < '2025-03-14 17:52: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-03-14 17:52:19] Production.INFO: count ==4344 [2025-03-14 17:52:21] Production.ERROR: pbx CDR StartTime 2025-03-14 14:52:06 - End Time 2025-03-14 17:52:06 [2025-03-14 17:52:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680493', 'tblTempUsageDetail_20' ) start [2025-03-14 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680493', 'tblTempUsageDetail_20' ) end [2025-03-14 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680493', 'tblTempVendorCDR_20' ) start [2025-03-14 17:52:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680493', 'tblTempVendorCDR_20' ) end [2025-03-14 17:52:21] Production.INFO: ProcessCDR(1,14680493,1,1,2) [2025-03-14 17:52:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:52:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680493,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:52:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:52:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680493,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680493', 'tblTempUsageDetail_20' ) start [2025-03-14 17:52:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680493', 'tblTempUsageDetail_20' ) end [2025-03-14 17:52:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 17:52:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 17:52:26] Production.INFO: ==6457== Releasing lock... [2025-03-14 17:52:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 17:52:26] Production.INFO: 60.5 MB #Memory Used# [2025-03-14 17:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 14:53:06 [end_date_ymd] => 2025-03-14 17:53:06 [RateCDR] => 1 ) [2025-03-14 17:53: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-03-14 14:53:06' and `end` < '2025-03-14 17:53: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-03-14 17:53:19] Production.INFO: count ==4349 [2025-03-14 17:53:21] Production.ERROR: pbx CDR StartTime 2025-03-14 14:53:06 - End Time 2025-03-14 17:53:06 [2025-03-14 17:53:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680498', 'tblTempUsageDetail_20' ) start [2025-03-14 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680498', 'tblTempUsageDetail_20' ) end [2025-03-14 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680498', 'tblTempVendorCDR_20' ) start [2025-03-14 17:53:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680498', 'tblTempVendorCDR_20' ) end [2025-03-14 17:53:21] Production.INFO: ProcessCDR(1,14680498,1,1,2) [2025-03-14 17:53:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:53:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680498,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:53:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:53:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680498,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680498', 'tblTempUsageDetail_20' ) start [2025-03-14 17:53:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680498', 'tblTempUsageDetail_20' ) end [2025-03-14 17:53:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 17:53:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 17:53:26] Production.INFO: ==6573== Releasing lock... [2025-03-14 17:53:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 17:53:26] Production.INFO: 60.5 MB #Memory Used# [2025-03-14 17:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 14:54:06 [end_date_ymd] => 2025-03-14 17:54:06 [RateCDR] => 1 ) [2025-03-14 17:54: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-03-14 14:54:06' and `end` < '2025-03-14 17:54: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-03-14 17:54:18] Production.INFO: count ==4347 [2025-03-14 17:54:20] Production.ERROR: pbx CDR StartTime 2025-03-14 14:54:06 - End Time 2025-03-14 17:54:06 [2025-03-14 17:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680503', 'tblTempUsageDetail_20' ) start [2025-03-14 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680503', 'tblTempUsageDetail_20' ) end [2025-03-14 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680503', 'tblTempVendorCDR_20' ) start [2025-03-14 17:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680503', 'tblTempVendorCDR_20' ) end [2025-03-14 17:54:20] Production.INFO: ProcessCDR(1,14680503,1,1,2) [2025-03-14 17:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:54:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680503,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:54:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:54:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680503,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680503', 'tblTempUsageDetail_20' ) start [2025-03-14 17:54:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680503', 'tblTempUsageDetail_20' ) end [2025-03-14 17:54:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 17:54:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 17:54:25] Production.INFO: ==6655== Releasing lock... [2025-03-14 17:54:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 17:54:25] Production.INFO: 60.5 MB #Memory Used# [2025-03-14 17:55:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 14:55:04 [end_date_ymd] => 2025-03-14 17:55:04 [RateCDR] => 1 ) [2025-03-14 17:55: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-03-14 14:55:04' and `end` < '2025-03-14 17:55: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-03-14 17:55:17] Production.INFO: count ==4336 [2025-03-14 17:55:19] Production.ERROR: pbx CDR StartTime 2025-03-14 14:55:04 - End Time 2025-03-14 17:55:04 [2025-03-14 17:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 17:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680508', 'tblTempUsageDetail_20' ) start [2025-03-14 17:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680508', 'tblTempUsageDetail_20' ) end [2025-03-14 17:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680508', 'tblTempVendorCDR_20' ) start [2025-03-14 17:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680508', 'tblTempVendorCDR_20' ) end [2025-03-14 17:55:19] Production.INFO: ProcessCDR(1,14680508,1,1,2) [2025-03-14 17:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680508,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680508,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680508', 'tblTempUsageDetail_20' ) start [2025-03-14 17:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680508', 'tblTempUsageDetail_20' ) end [2025-03-14 17:55:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 17:55:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 17:55:24] Production.INFO: ==6737== Releasing lock... [2025-03-14 17:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 17:55:24] Production.INFO: 60.5 MB #Memory Used# [2025-03-14 17:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 14:56:05 [end_date_ymd] => 2025-03-14 17:56:05 [RateCDR] => 1 ) [2025-03-14 17:56: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-03-14 14:56:05' and `end` < '2025-03-14 17:56: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-03-14 17:56:18] Production.INFO: count ==4361 [2025-03-14 17:56:20] Production.ERROR: pbx CDR StartTime 2025-03-14 14:56:05 - End Time 2025-03-14 17:56:05 [2025-03-14 17:56:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680513', 'tblTempUsageDetail_20' ) start [2025-03-14 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680513', 'tblTempUsageDetail_20' ) end [2025-03-14 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680513', 'tblTempVendorCDR_20' ) start [2025-03-14 17:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680513', 'tblTempVendorCDR_20' ) end [2025-03-14 17:56:20] Production.INFO: ProcessCDR(1,14680513,1,1,2) [2025-03-14 17:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:56:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680513,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:56:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680513,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680513', 'tblTempUsageDetail_20' ) start [2025-03-14 17:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680513', 'tblTempUsageDetail_20' ) end [2025-03-14 17:56:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 17:56:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 17:56:25] Production.INFO: ==6818== Releasing lock... [2025-03-14 17:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 17:56:25] Production.INFO: 60.75 MB #Memory Used# [2025-03-14 17:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 14:57:06 [end_date_ymd] => 2025-03-14 17:57:06 [RateCDR] => 1 ) [2025-03-14 17:57: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-03-14 14:57:06' and `end` < '2025-03-14 17:57: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-03-14 17:57:18] Production.INFO: count ==4367 [2025-03-14 17:57:20] Production.ERROR: pbx CDR StartTime 2025-03-14 14:57:06 - End Time 2025-03-14 17:57:06 [2025-03-14 17:57:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680518', 'tblTempUsageDetail_20' ) start [2025-03-14 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680518', 'tblTempUsageDetail_20' ) end [2025-03-14 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680518', 'tblTempVendorCDR_20' ) start [2025-03-14 17:57:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680518', 'tblTempVendorCDR_20' ) end [2025-03-14 17:57:20] Production.INFO: ProcessCDR(1,14680518,1,1,2) [2025-03-14 17:57:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:57:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680518,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:57:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680518,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680518', 'tblTempUsageDetail_20' ) start [2025-03-14 17:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680518', 'tblTempUsageDetail_20' ) end [2025-03-14 17:57:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 17:57:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 17:57:25] Production.INFO: ==6899== Releasing lock... [2025-03-14 17:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 17:57:25] Production.INFO: 60.75 MB #Memory Used# [2025-03-14 17:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 14:58:05 [end_date_ymd] => 2025-03-14 17:58:05 [RateCDR] => 1 ) [2025-03-14 17:58: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-03-14 14:58:05' and `end` < '2025-03-14 17:58: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-03-14 17:58:18] Production.INFO: count ==4359 [2025-03-14 17:58:19] Production.ERROR: pbx CDR StartTime 2025-03-14 14:58:05 - End Time 2025-03-14 17:58:05 [2025-03-14 17:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 17:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680523', 'tblTempUsageDetail_20' ) start [2025-03-14 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680523', 'tblTempUsageDetail_20' ) end [2025-03-14 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680523', 'tblTempVendorCDR_20' ) start [2025-03-14 17:58:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680523', 'tblTempVendorCDR_20' ) end [2025-03-14 17:58:20] Production.INFO: ProcessCDR(1,14680523,1,1,2) [2025-03-14 17:58:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680523,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:58:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680523,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680523', 'tblTempUsageDetail_20' ) start [2025-03-14 17:58:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680523', 'tblTempUsageDetail_20' ) end [2025-03-14 17:58:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 17:58:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 17:58:25] Production.INFO: ==6977== Releasing lock... [2025-03-14 17:58:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 17:58:25] Production.INFO: 61 MB #Memory Used# [2025-03-14 17:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 14:59:05 [end_date_ymd] => 2025-03-14 17:59:05 [RateCDR] => 1 ) [2025-03-14 17:59: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-03-14 14:59:05' and `end` < '2025-03-14 17:59: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-03-14 17:59:18] Production.INFO: count ==4355 [2025-03-14 17:59:20] Production.ERROR: pbx CDR StartTime 2025-03-14 14:59:05 - End Time 2025-03-14 17:59:05 [2025-03-14 17:59:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680528', 'tblTempUsageDetail_20' ) start [2025-03-14 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680528', 'tblTempUsageDetail_20' ) end [2025-03-14 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680528', 'tblTempVendorCDR_20' ) start [2025-03-14 17:59:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680528', 'tblTempVendorCDR_20' ) end [2025-03-14 17:59:20] Production.INFO: ProcessCDR(1,14680528,1,1,2) [2025-03-14 17:59:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:59:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680528,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 17:59:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:59:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680528,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 17:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680528', 'tblTempUsageDetail_20' ) start [2025-03-14 17:59:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680528', 'tblTempUsageDetail_20' ) end [2025-03-14 17:59:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 17:59:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 17:59:25] Production.INFO: ==7055== Releasing lock... [2025-03-14 17:59:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 17:59:25] Production.INFO: 60.5 MB #Memory Used# [2025-03-14 18:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 15:00:06 [end_date_ymd] => 2025-03-14 18:00:06 [RateCDR] => 1 ) [2025-03-14 18:00: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-03-14 15:00:06' and `end` < '2025-03-14 18:00: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-03-14 18:00:19] Production.INFO: count ==4368 [2025-03-14 18:00:20] Production.ERROR: pbx CDR StartTime 2025-03-14 15:00:06 - End Time 2025-03-14 18:00:06 [2025-03-14 18:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680534', 'tblTempUsageDetail_20' ) start [2025-03-14 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680534', 'tblTempUsageDetail_20' ) end [2025-03-14 18:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680534', 'tblTempVendorCDR_20' ) start [2025-03-14 18:00:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680534', 'tblTempVendorCDR_20' ) end [2025-03-14 18:00:21] Production.INFO: ProcessCDR(1,14680534,1,1,2) [2025-03-14 18:00:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:00:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680534,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:00:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:00:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680534,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:00:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680534', 'tblTempUsageDetail_20' ) start [2025-03-14 18:00:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680534', 'tblTempUsageDetail_20' ) end [2025-03-14 18:00:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 18:00:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 18:00:26] Production.INFO: ==7137== Releasing lock... [2025-03-14 18:00:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 18:00:26] Production.INFO: 60.75 MB #Memory Used# [2025-03-14 18:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 15:01:06 [end_date_ymd] => 2025-03-14 18:01:06 [RateCDR] => 1 ) [2025-03-14 18:01: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-03-14 15:01:06' and `end` < '2025-03-14 18:01: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-03-14 18:01:19] Production.INFO: count ==4418 [2025-03-14 18:01:21] Production.ERROR: pbx CDR StartTime 2025-03-14 15:01:06 - End Time 2025-03-14 18:01:06 [2025-03-14 18:01:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680539', 'tblTempUsageDetail_20' ) start [2025-03-14 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680539', 'tblTempUsageDetail_20' ) end [2025-03-14 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680539', 'tblTempVendorCDR_20' ) start [2025-03-14 18:01:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680539', 'tblTempVendorCDR_20' ) end [2025-03-14 18:01:21] Production.INFO: ProcessCDR(1,14680539,1,1,2) [2025-03-14 18:01:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:01:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680539,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:01:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:01:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680539,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680539', 'tblTempUsageDetail_20' ) start [2025-03-14 18:01:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680539', 'tblTempUsageDetail_20' ) end [2025-03-14 18:01:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 18:01:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 18:01:26] Production.INFO: ==7230== Releasing lock... [2025-03-14 18:01:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 18:01:26] Production.INFO: 61 MB #Memory Used# [2025-03-14 18:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 15:02:05 [end_date_ymd] => 2025-03-14 18:02:05 [RateCDR] => 1 ) [2025-03-14 18:02: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-03-14 15:02:05' and `end` < '2025-03-14 18:02: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-03-14 18:02:18] Production.INFO: count ==4432 [2025-03-14 18:02:20] Production.ERROR: pbx CDR StartTime 2025-03-14 15:02:05 - End Time 2025-03-14 18:02:05 [2025-03-14 18:02:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680544', 'tblTempUsageDetail_20' ) start [2025-03-14 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680544', 'tblTempUsageDetail_20' ) end [2025-03-14 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680544', 'tblTempVendorCDR_20' ) start [2025-03-14 18:02:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680544', 'tblTempVendorCDR_20' ) end [2025-03-14 18:02:20] Production.INFO: ProcessCDR(1,14680544,1,1,2) [2025-03-14 18:02:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680544,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:02:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680544,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680544', 'tblTempUsageDetail_20' ) start [2025-03-14 18:02:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680544', 'tblTempUsageDetail_20' ) end [2025-03-14 18:02:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 18:02:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 18:02:25] Production.INFO: ==7307== Releasing lock... [2025-03-14 18:02:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 18:02:25] Production.INFO: 61.25 MB #Memory Used# [2025-03-14 18:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 15:03:05 [end_date_ymd] => 2025-03-14 18:03:05 [RateCDR] => 1 ) [2025-03-14 18:03: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-03-14 15:03:05' and `end` < '2025-03-14 18:03: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-03-14 18:03:18] Production.INFO: count ==4438 [2025-03-14 18:03:20] Production.ERROR: pbx CDR StartTime 2025-03-14 15:03:05 - End Time 2025-03-14 18:03:05 [2025-03-14 18:03:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680549', 'tblTempUsageDetail_20' ) start [2025-03-14 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680549', 'tblTempUsageDetail_20' ) end [2025-03-14 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680549', 'tblTempVendorCDR_20' ) start [2025-03-14 18:03:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680549', 'tblTempVendorCDR_20' ) end [2025-03-14 18:03:20] Production.INFO: ProcessCDR(1,14680549,1,1,2) [2025-03-14 18:03:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:03:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680549,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:03:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:03:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680549,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680549', 'tblTempUsageDetail_20' ) start [2025-03-14 18:03:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680549', 'tblTempUsageDetail_20' ) end [2025-03-14 18:03:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 18:03:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 18:03:25] Production.INFO: ==7388== Releasing lock... [2025-03-14 18:03:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 18:03:25] Production.INFO: 61.25 MB #Memory Used# [2025-03-14 18:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 15:04:05 [end_date_ymd] => 2025-03-14 18:04:05 [RateCDR] => 1 ) [2025-03-14 18:04: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-03-14 15:04:05' and `end` < '2025-03-14 18:04: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-03-14 18:04:18] Production.INFO: count ==4437 [2025-03-14 18:04:20] Production.ERROR: pbx CDR StartTime 2025-03-14 15:04:05 - End Time 2025-03-14 18:04:05 [2025-03-14 18:04:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680554', 'tblTempUsageDetail_20' ) start [2025-03-14 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680554', 'tblTempUsageDetail_20' ) end [2025-03-14 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680554', 'tblTempVendorCDR_20' ) start [2025-03-14 18:04:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680554', 'tblTempVendorCDR_20' ) end [2025-03-14 18:04:20] Production.INFO: ProcessCDR(1,14680554,1,1,2) [2025-03-14 18:04:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680554,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:04:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680554,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680554', 'tblTempUsageDetail_20' ) start [2025-03-14 18:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680554', 'tblTempUsageDetail_20' ) end [2025-03-14 18:04:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 18:04:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 18:04:23] Production.INFO: ==7467== Releasing lock... [2025-03-14 18:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 18:04:23] Production.INFO: 61.25 MB #Memory Used# [2025-03-14 18:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 15:05:06 [end_date_ymd] => 2025-03-14 18:05:06 [RateCDR] => 1 ) [2025-03-14 18:05: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-03-14 15:05:06' and `end` < '2025-03-14 18:05: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-03-14 18:05:19] Production.INFO: count ==4430 [2025-03-14 18:05:21] Production.ERROR: pbx CDR StartTime 2025-03-14 15:05:06 - End Time 2025-03-14 18:05:06 [2025-03-14 18:05:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680559', 'tblTempUsageDetail_20' ) start [2025-03-14 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680559', 'tblTempUsageDetail_20' ) end [2025-03-14 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680559', 'tblTempVendorCDR_20' ) start [2025-03-14 18:05:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680559', 'tblTempVendorCDR_20' ) end [2025-03-14 18:05:21] Production.INFO: ProcessCDR(1,14680559,1,1,2) [2025-03-14 18:05:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:05:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680559,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:05:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680559,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680559', 'tblTempUsageDetail_20' ) start [2025-03-14 18:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680559', 'tblTempUsageDetail_20' ) end [2025-03-14 18:05:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 18:05:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 18:05:25] Production.INFO: ==7541== Releasing lock... [2025-03-14 18:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 18:05:25] Production.INFO: 61.25 MB #Memory Used# [2025-03-14 18:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 15:06:05 [end_date_ymd] => 2025-03-14 18:06:05 [RateCDR] => 1 ) [2025-03-14 18:06: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-03-14 15:06:05' and `end` < '2025-03-14 18:06: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-03-14 18:06:18] Production.INFO: count ==4418 [2025-03-14 18:06:20] Production.ERROR: pbx CDR StartTime 2025-03-14 15:06:05 - End Time 2025-03-14 18:06:05 [2025-03-14 18:06:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680564', 'tblTempUsageDetail_20' ) start [2025-03-14 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680564', 'tblTempUsageDetail_20' ) end [2025-03-14 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680564', 'tblTempVendorCDR_20' ) start [2025-03-14 18:06:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680564', 'tblTempVendorCDR_20' ) end [2025-03-14 18:06:20] Production.INFO: ProcessCDR(1,14680564,1,1,2) [2025-03-14 18:06:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680564,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680564,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680564', 'tblTempUsageDetail_20' ) start [2025-03-14 18:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680564', 'tblTempUsageDetail_20' ) end [2025-03-14 18:06:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 18:06:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 18:06:23] Production.INFO: ==7621== Releasing lock... [2025-03-14 18:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 18:06:23] Production.INFO: 61 MB #Memory Used# [2025-03-14 18:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 15:07:05 [end_date_ymd] => 2025-03-14 18:07:05 [RateCDR] => 1 ) [2025-03-14 18:07: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-03-14 15:07:05' and `end` < '2025-03-14 18:07: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-03-14 18:07:18] Production.INFO: count ==4384 [2025-03-14 18:07:20] Production.ERROR: pbx CDR StartTime 2025-03-14 15:07:05 - End Time 2025-03-14 18:07:05 [2025-03-14 18:07:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680569', 'tblTempUsageDetail_20' ) start [2025-03-14 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680569', 'tblTempUsageDetail_20' ) end [2025-03-14 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680569', 'tblTempVendorCDR_20' ) start [2025-03-14 18:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680569', 'tblTempVendorCDR_20' ) end [2025-03-14 18:07:20] Production.INFO: ProcessCDR(1,14680569,1,1,2) [2025-03-14 18:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680569,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680569,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680569', 'tblTempUsageDetail_20' ) start [2025-03-14 18:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680569', 'tblTempUsageDetail_20' ) end [2025-03-14 18:07:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 18:07:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 18:07:23] Production.INFO: ==7701== Releasing lock... [2025-03-14 18:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 18:07:23] Production.INFO: 60.75 MB #Memory Used# [2025-03-14 18:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 15:08:05 [end_date_ymd] => 2025-03-14 18:08:05 [RateCDR] => 1 ) [2025-03-14 18:08: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-03-14 15:08:05' and `end` < '2025-03-14 18:08: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-03-14 18:08:18] Production.INFO: count ==4378 [2025-03-14 18:08:19] Production.ERROR: pbx CDR StartTime 2025-03-14 15:08:05 - End Time 2025-03-14 18:08:05 [2025-03-14 18:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 18:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680574', 'tblTempUsageDetail_20' ) start [2025-03-14 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680574', 'tblTempUsageDetail_20' ) end [2025-03-14 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680574', 'tblTempVendorCDR_20' ) start [2025-03-14 18:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680574', 'tblTempVendorCDR_20' ) end [2025-03-14 18:08:20] Production.INFO: ProcessCDR(1,14680574,1,1,2) [2025-03-14 18:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:08:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680574,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:08:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:08:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680574,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680574', 'tblTempUsageDetail_20' ) start [2025-03-14 18:08:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680574', 'tblTempUsageDetail_20' ) end [2025-03-14 18:08:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 18:08:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 18:08:25] Production.INFO: ==7779== Releasing lock... [2025-03-14 18:08:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 18:08:25] Production.INFO: 60.75 MB #Memory Used# [2025-03-14 18:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 15:09:05 [end_date_ymd] => 2025-03-14 18:09:05 [RateCDR] => 1 ) [2025-03-14 18:09: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-03-14 15:09:05' and `end` < '2025-03-14 18:09: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-03-14 18:09:18] Production.INFO: count ==4385 [2025-03-14 18:09:20] Production.ERROR: pbx CDR StartTime 2025-03-14 15:09:05 - End Time 2025-03-14 18:09:05 [2025-03-14 18:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680579', 'tblTempUsageDetail_20' ) start [2025-03-14 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680579', 'tblTempUsageDetail_20' ) end [2025-03-14 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680579', 'tblTempVendorCDR_20' ) start [2025-03-14 18:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680579', 'tblTempVendorCDR_20' ) end [2025-03-14 18:09:20] Production.INFO: ProcessCDR(1,14680579,1,1,2) [2025-03-14 18:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680579,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680579,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680579', 'tblTempUsageDetail_20' ) start [2025-03-14 18:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680579', 'tblTempUsageDetail_20' ) end [2025-03-14 18:09:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 18:09:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 18:09:25] Production.INFO: ==7902== Releasing lock... [2025-03-14 18:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 18:09:25] Production.INFO: 61 MB #Memory Used# [2025-03-14 18:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 15:10:07 [end_date_ymd] => 2025-03-14 18:10:07 [RateCDR] => 1 ) [2025-03-14 18:10:07] 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-03-14 15:10:07' and `end` < '2025-03-14 18:10:07' 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-03-14 18:10:19] Production.INFO: count ==4379 [2025-03-14 18:10:21] Production.ERROR: pbx CDR StartTime 2025-03-14 15:10:07 - End Time 2025-03-14 18:10:07 [2025-03-14 18:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680585', 'tblTempUsageDetail_20' ) start [2025-03-14 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680585', 'tblTempUsageDetail_20' ) end [2025-03-14 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680585', 'tblTempVendorCDR_20' ) start [2025-03-14 18:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680585', 'tblTempVendorCDR_20' ) end [2025-03-14 18:10:21] Production.INFO: ProcessCDR(1,14680585,1,1,2) [2025-03-14 18:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680585,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680585,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680585', 'tblTempUsageDetail_20' ) start [2025-03-14 18:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680585', 'tblTempUsageDetail_20' ) end [2025-03-14 18:10:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 18:10:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 18:10:26] Production.INFO: ==7984== Releasing lock... [2025-03-14 18:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 18:10:26] Production.INFO: 60.75 MB #Memory Used# [2025-03-14 18:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 15:11:05 [end_date_ymd] => 2025-03-14 18:11:05 [RateCDR] => 1 ) [2025-03-14 18:11: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-03-14 15:11:05' and `end` < '2025-03-14 18:11: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-03-14 18:11:18] Production.INFO: count ==4353 [2025-03-14 18:11:20] Production.ERROR: pbx CDR StartTime 2025-03-14 15:11:05 - End Time 2025-03-14 18:11:05 [2025-03-14 18:11:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680590', 'tblTempUsageDetail_20' ) start [2025-03-14 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680590', 'tblTempUsageDetail_20' ) end [2025-03-14 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680590', 'tblTempVendorCDR_20' ) start [2025-03-14 18:11:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680590', 'tblTempVendorCDR_20' ) end [2025-03-14 18:11:20] Production.INFO: ProcessCDR(1,14680590,1,1,2) [2025-03-14 18:11:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680590,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680590,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680590', 'tblTempUsageDetail_20' ) start [2025-03-14 18:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680590', 'tblTempUsageDetail_20' ) end [2025-03-14 18:11:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 18:11:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 18:11:23] Production.INFO: ==8063== Releasing lock... [2025-03-14 18:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 18:11:23] Production.INFO: 60.5 MB #Memory Used# [2025-03-14 18:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 15:12:06 [end_date_ymd] => 2025-03-14 18:12:06 [RateCDR] => 1 ) [2025-03-14 18:12: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-03-14 15:12:06' and `end` < '2025-03-14 18:12: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-03-14 18:12:18] Production.INFO: count ==4342 [2025-03-14 18:12:20] Production.ERROR: pbx CDR StartTime 2025-03-14 15:12:06 - End Time 2025-03-14 18:12:06 [2025-03-14 18:12:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680595', 'tblTempUsageDetail_20' ) start [2025-03-14 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680595', 'tblTempUsageDetail_20' ) end [2025-03-14 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680595', 'tblTempVendorCDR_20' ) start [2025-03-14 18:12:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680595', 'tblTempVendorCDR_20' ) end [2025-03-14 18:12:20] Production.INFO: ProcessCDR(1,14680595,1,1,2) [2025-03-14 18:12:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:12:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680595,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:12:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:12:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680595,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680595', 'tblTempUsageDetail_20' ) start [2025-03-14 18:12:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680595', 'tblTempUsageDetail_20' ) end [2025-03-14 18:12:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 18:12:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 18:12:25] Production.INFO: ==8145== Releasing lock... [2025-03-14 18:12:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 18:12:25] Production.INFO: 60.5 MB #Memory Used# [2025-03-14 18:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 15:13:05 [end_date_ymd] => 2025-03-14 18:13:05 [RateCDR] => 1 ) [2025-03-14 18:13: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-03-14 15:13:05' and `end` < '2025-03-14 18:13: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-03-14 18:13:18] Production.INFO: count ==4328 [2025-03-14 18:13:19] Production.ERROR: pbx CDR StartTime 2025-03-14 15:13:05 - End Time 2025-03-14 18:13:05 [2025-03-14 18:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 18:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680600', 'tblTempUsageDetail_20' ) start [2025-03-14 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680600', 'tblTempUsageDetail_20' ) end [2025-03-14 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680600', 'tblTempVendorCDR_20' ) start [2025-03-14 18:13:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680600', 'tblTempVendorCDR_20' ) end [2025-03-14 18:13:20] Production.INFO: ProcessCDR(1,14680600,1,1,2) [2025-03-14 18:13:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680600,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680600,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680600', 'tblTempUsageDetail_20' ) start [2025-03-14 18:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680600', 'tblTempUsageDetail_20' ) end [2025-03-14 18:13:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 18:13:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 18:13:23] Production.INFO: ==8230== Releasing lock... [2025-03-14 18:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 18:13:23] Production.INFO: 60.5 MB #Memory Used# [2025-03-14 18:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 15:14:06 [end_date_ymd] => 2025-03-14 18:14:06 [RateCDR] => 1 ) [2025-03-14 18:14: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-03-14 15:14:06' and `end` < '2025-03-14 18:14: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-03-14 18:14:19] Production.INFO: count ==4319 [2025-03-14 18:14:21] Production.ERROR: pbx CDR StartTime 2025-03-14 15:14:06 - End Time 2025-03-14 18:14:06 [2025-03-14 18:14:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680605', 'tblTempUsageDetail_20' ) start [2025-03-14 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680605', 'tblTempUsageDetail_20' ) end [2025-03-14 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680605', 'tblTempVendorCDR_20' ) start [2025-03-14 18:14:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680605', 'tblTempVendorCDR_20' ) end [2025-03-14 18:14:21] Production.INFO: ProcessCDR(1,14680605,1,1,2) [2025-03-14 18:14:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:14:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680605,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:14:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:14:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680605,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680605', 'tblTempUsageDetail_20' ) start [2025-03-14 18:14:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680605', 'tblTempUsageDetail_20' ) end [2025-03-14 18:14:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 18:14:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 18:14:26] Production.INFO: ==8307== Releasing lock... [2025-03-14 18:14:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 18:14:26] Production.INFO: 60.25 MB #Memory Used# [2025-03-14 18:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 15:15:05 [end_date_ymd] => 2025-03-14 18:15:05 [RateCDR] => 1 ) [2025-03-14 18:15: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-03-14 15:15:05' and `end` < '2025-03-14 18:15: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-03-14 18:15:18] Production.INFO: count ==4301 [2025-03-14 18:15:20] Production.ERROR: pbx CDR StartTime 2025-03-14 15:15:05 - End Time 2025-03-14 18:15:05 [2025-03-14 18:15:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680610', 'tblTempUsageDetail_20' ) start [2025-03-14 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680610', 'tblTempUsageDetail_20' ) end [2025-03-14 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680610', 'tblTempVendorCDR_20' ) start [2025-03-14 18:15:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680610', 'tblTempVendorCDR_20' ) end [2025-03-14 18:15:20] Production.INFO: ProcessCDR(1,14680610,1,1,2) [2025-03-14 18:15:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680610,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680610,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680610', 'tblTempUsageDetail_20' ) start [2025-03-14 18:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680610', 'tblTempUsageDetail_20' ) end [2025-03-14 18:15:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 18:15:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 18:15:23] Production.INFO: ==8388== Releasing lock... [2025-03-14 18:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 18:15:23] Production.INFO: 60.5 MB #Memory Used# [2025-03-14 18:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 15:16:05 [end_date_ymd] => 2025-03-14 18:16:05 [RateCDR] => 1 ) [2025-03-14 18:16: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-03-14 15:16:05' and `end` < '2025-03-14 18:16: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-03-14 18:16:18] Production.INFO: count ==4298 [2025-03-14 18:16:20] Production.ERROR: pbx CDR StartTime 2025-03-14 15:16:05 - End Time 2025-03-14 18:16:05 [2025-03-14 18:16:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680615', 'tblTempUsageDetail_20' ) start [2025-03-14 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680615', 'tblTempUsageDetail_20' ) end [2025-03-14 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680615', 'tblTempVendorCDR_20' ) start [2025-03-14 18:16:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680615', 'tblTempVendorCDR_20' ) end [2025-03-14 18:16:20] Production.INFO: ProcessCDR(1,14680615,1,1,2) [2025-03-14 18:16:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:16:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680615,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:16:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680615,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680615', 'tblTempUsageDetail_20' ) start [2025-03-14 18:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680615', 'tblTempUsageDetail_20' ) end [2025-03-14 18:16:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 18:16:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 18:16:25] Production.INFO: ==8462== Releasing lock... [2025-03-14 18:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 18:16:25] Production.INFO: 60.25 MB #Memory Used# [2025-03-14 18:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 15:17:05 [end_date_ymd] => 2025-03-14 18:17:05 [RateCDR] => 1 ) [2025-03-14 18:17: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-03-14 15:17:05' and `end` < '2025-03-14 18:17: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-03-14 18:17:18] Production.INFO: count ==4279 [2025-03-14 18:17:20] Production.ERROR: pbx CDR StartTime 2025-03-14 15:17:05 - End Time 2025-03-14 18:17:05 [2025-03-14 18:17:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680620', 'tblTempUsageDetail_20' ) start [2025-03-14 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680620', 'tblTempUsageDetail_20' ) end [2025-03-14 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680620', 'tblTempVendorCDR_20' ) start [2025-03-14 18:17:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680620', 'tblTempVendorCDR_20' ) end [2025-03-14 18:17:20] Production.INFO: ProcessCDR(1,14680620,1,1,2) [2025-03-14 18:17:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680620,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:17:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680620,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680620', 'tblTempUsageDetail_20' ) start [2025-03-14 18:17:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680620', 'tblTempUsageDetail_20' ) end [2025-03-14 18:17:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 18:17:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 18:17:23] Production.INFO: ==8534== Releasing lock... [2025-03-14 18:17:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 18:17:23] Production.INFO: 60 MB #Memory Used# [2025-03-14 18:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 15:18:06 [end_date_ymd] => 2025-03-14 18:18:06 [RateCDR] => 1 ) [2025-03-14 18:18: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-03-14 15:18:06' and `end` < '2025-03-14 18:18: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-03-14 18:18:19] Production.INFO: count ==4263 [2025-03-14 18:18:20] Production.ERROR: pbx CDR StartTime 2025-03-14 15:18:06 - End Time 2025-03-14 18:18:06 [2025-03-14 18:18:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680625', 'tblTempUsageDetail_20' ) start [2025-03-14 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680625', 'tblTempUsageDetail_20' ) end [2025-03-14 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680625', 'tblTempVendorCDR_20' ) start [2025-03-14 18:18:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680625', 'tblTempVendorCDR_20' ) end [2025-03-14 18:18:20] Production.INFO: ProcessCDR(1,14680625,1,1,2) [2025-03-14 18:18:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680625,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:18:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680625,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680625', 'tblTempUsageDetail_20' ) start [2025-03-14 18:18:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680625', 'tblTempUsageDetail_20' ) end [2025-03-14 18:18:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 18:18:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 18:18:24] Production.INFO: ==8613== Releasing lock... [2025-03-14 18:18:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 18:18:24] Production.INFO: 60 MB #Memory Used# [2025-03-14 18:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 15:19:05 [end_date_ymd] => 2025-03-14 18:19:05 [RateCDR] => 1 ) [2025-03-14 18:19: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-03-14 15:19:05' and `end` < '2025-03-14 18:19: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-03-14 18:19:18] Production.INFO: count ==4250 [2025-03-14 18:19:20] Production.ERROR: pbx CDR StartTime 2025-03-14 15:19:05 - End Time 2025-03-14 18:19:05 [2025-03-14 18:19:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680630', 'tblTempUsageDetail_20' ) start [2025-03-14 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680630', 'tblTempUsageDetail_20' ) end [2025-03-14 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680630', 'tblTempVendorCDR_20' ) start [2025-03-14 18:19:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680630', 'tblTempVendorCDR_20' ) end [2025-03-14 18:19:20] Production.INFO: ProcessCDR(1,14680630,1,1,2) [2025-03-14 18:19:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680630,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680630,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680630', 'tblTempUsageDetail_20' ) start [2025-03-14 18:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680630', 'tblTempUsageDetail_20' ) end [2025-03-14 18:19:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 18:19:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 18:19:23] Production.INFO: ==8691== Releasing lock... [2025-03-14 18:19:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 18:19:23] Production.INFO: 59.75 MB #Memory Used# [2025-03-14 18:20:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 15:20:07 [end_date_ymd] => 2025-03-14 18:20:07 [RateCDR] => 1 ) [2025-03-14 18:20:07] 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-03-14 15:20:07' and `end` < '2025-03-14 18:20:07' 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-03-14 18:20:20] Production.INFO: count ==4247 [2025-03-14 18:20:21] Production.ERROR: pbx CDR StartTime 2025-03-14 15:20:07 - End Time 2025-03-14 18:20:07 [2025-03-14 18:20:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680636', 'tblTempUsageDetail_20' ) start [2025-03-14 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680636', 'tblTempUsageDetail_20' ) end [2025-03-14 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680636', 'tblTempVendorCDR_20' ) start [2025-03-14 18:20:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680636', 'tblTempVendorCDR_20' ) end [2025-03-14 18:20:21] Production.INFO: ProcessCDR(1,14680636,1,1,2) [2025-03-14 18:20:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:20:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680636,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:20:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:20:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680636,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680636', 'tblTempUsageDetail_20' ) start [2025-03-14 18:20:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680636', 'tblTempUsageDetail_20' ) end [2025-03-14 18:20:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 18:20:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 18:20:26] Production.INFO: ==8777== Releasing lock... [2025-03-14 18:20:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 18:20:26] Production.INFO: 59.75 MB #Memory Used# [2025-03-14 18:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 15:21:05 [end_date_ymd] => 2025-03-14 18:21:05 [RateCDR] => 1 ) [2025-03-14 18:21: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-03-14 15:21:05' and `end` < '2025-03-14 18:21: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-03-14 18:21:18] Production.INFO: count ==4213 [2025-03-14 18:21:19] Production.ERROR: pbx CDR StartTime 2025-03-14 15:21:05 - End Time 2025-03-14 18:21:05 [2025-03-14 18:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 18:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680641', 'tblTempUsageDetail_20' ) start [2025-03-14 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680641', 'tblTempUsageDetail_20' ) end [2025-03-14 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680641', 'tblTempVendorCDR_20' ) start [2025-03-14 18:21:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680641', 'tblTempVendorCDR_20' ) end [2025-03-14 18:21:20] Production.INFO: ProcessCDR(1,14680641,1,1,2) [2025-03-14 18:21:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:21:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680641,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:21:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680641,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680641', 'tblTempUsageDetail_20' ) start [2025-03-14 18:21:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680641', 'tblTempUsageDetail_20' ) end [2025-03-14 18:21:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 18:21:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 18:21:25] Production.INFO: ==8857== Releasing lock... [2025-03-14 18:21:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 18:21:25] Production.INFO: 59.5 MB #Memory Used# [2025-03-14 18:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 15:22:06 [end_date_ymd] => 2025-03-14 18:22:06 [RateCDR] => 1 ) [2025-03-14 18:22: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-03-14 15:22:06' and `end` < '2025-03-14 18:22: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-03-14 18:22:19] Production.INFO: count ==4182 [2025-03-14 18:22:20] Production.ERROR: pbx CDR StartTime 2025-03-14 15:22:06 - End Time 2025-03-14 18:22:06 [2025-03-14 18:22:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680646', 'tblTempUsageDetail_20' ) start [2025-03-14 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680646', 'tblTempUsageDetail_20' ) end [2025-03-14 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680646', 'tblTempVendorCDR_20' ) start [2025-03-14 18:22:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680646', 'tblTempVendorCDR_20' ) end [2025-03-14 18:22:20] Production.INFO: ProcessCDR(1,14680646,1,1,2) [2025-03-14 18:22:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:22:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680646,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:22:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:22:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680646,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680646', 'tblTempUsageDetail_20' ) start [2025-03-14 18:22:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680646', 'tblTempUsageDetail_20' ) end [2025-03-14 18:22:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 18:22:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 18:22:25] Production.INFO: ==8934== Releasing lock... [2025-03-14 18:22:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 18:22:25] Production.INFO: 59.25 MB #Memory Used# [2025-03-14 18:23:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 15:23:04 [end_date_ymd] => 2025-03-14 18:23:04 [RateCDR] => 1 ) [2025-03-14 18:23: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-03-14 15:23:04' and `end` < '2025-03-14 18:23: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-03-14 18:23:17] Production.INFO: count ==4174 [2025-03-14 18:23:19] Production.ERROR: pbx CDR StartTime 2025-03-14 15:23:04 - End Time 2025-03-14 18:23:04 [2025-03-14 18:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680651', 'tblTempUsageDetail_20' ) start [2025-03-14 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680651', 'tblTempUsageDetail_20' ) end [2025-03-14 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680651', 'tblTempVendorCDR_20' ) start [2025-03-14 18:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680651', 'tblTempVendorCDR_20' ) end [2025-03-14 18:23:19] Production.INFO: ProcessCDR(1,14680651,1,1,2) [2025-03-14 18:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:23:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680651,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:23:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:23:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680651,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680651', 'tblTempUsageDetail_20' ) start [2025-03-14 18:23:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680651', 'tblTempUsageDetail_20' ) end [2025-03-14 18:23:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 18:23:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 18:23:24] Production.INFO: ==9004== Releasing lock... [2025-03-14 18:23:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 18:23:24] Production.INFO: 59.25 MB #Memory Used# [2025-03-14 18:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 15:24:05 [end_date_ymd] => 2025-03-14 18:24:05 [RateCDR] => 1 ) [2025-03-14 18:24: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-03-14 15:24:05' and `end` < '2025-03-14 18:24: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-03-14 18:24:18] Production.INFO: count ==4172 [2025-03-14 18:24:20] Production.ERROR: pbx CDR StartTime 2025-03-14 15:24:05 - End Time 2025-03-14 18:24:05 [2025-03-14 18:24:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680656', 'tblTempUsageDetail_20' ) start [2025-03-14 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680656', 'tblTempUsageDetail_20' ) end [2025-03-14 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680656', 'tblTempVendorCDR_20' ) start [2025-03-14 18:24:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680656', 'tblTempVendorCDR_20' ) end [2025-03-14 18:24:20] Production.INFO: ProcessCDR(1,14680656,1,1,2) [2025-03-14 18:24:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:24:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680656,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:24:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680656,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680656', 'tblTempUsageDetail_20' ) start [2025-03-14 18:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680656', 'tblTempUsageDetail_20' ) end [2025-03-14 18:24:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 18:24:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 18:24:24] Production.INFO: ==9116== Releasing lock... [2025-03-14 18:24:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 18:24:24] Production.INFO: 59.5 MB #Memory Used# [2025-03-14 18:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 15:25:05 [end_date_ymd] => 2025-03-14 18:25:05 [RateCDR] => 1 ) [2025-03-14 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-03-14 15:25:05' and `end` < '2025-03-14 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-03-14 18:25:18] Production.INFO: count ==4166 [2025-03-14 18:25:19] Production.ERROR: pbx CDR StartTime 2025-03-14 15:25:05 - End Time 2025-03-14 18:25:05 [2025-03-14 18:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680661', 'tblTempUsageDetail_20' ) start [2025-03-14 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680661', 'tblTempUsageDetail_20' ) end [2025-03-14 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680661', 'tblTempVendorCDR_20' ) start [2025-03-14 18:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680661', 'tblTempVendorCDR_20' ) end [2025-03-14 18:25:19] Production.INFO: ProcessCDR(1,14680661,1,1,2) [2025-03-14 18:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680661,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:25:34] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680661,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:25:34] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680661', 'tblTempUsageDetail_20' ) start [2025-03-14 18:25:35] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680661', 'tblTempUsageDetail_20' ) end [2025-03-14 18:25:35] Production.ERROR: pbx prc_insertCDR start [2025-03-14 18:25:35] Production.ERROR: pbx prc_insertCDR end [2025-03-14 18:25:35] Production.INFO: ==9193== Releasing lock... [2025-03-14 18:25:35] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 18:25:35] Production.INFO: 59.5 MB #Memory Used# [2025-03-14 18:26:20] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 15:26:20 [end_date_ymd] => 2025-03-14 18:26:20 [RateCDR] => 1 ) [2025-03-14 18:26:20] 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-03-14 15:26:20' and `end` < '2025-03-14 18:26:20' 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-03-14 18:26:33] Production.INFO: count ==4150 [2025-03-14 18:27:22] Production.ERROR: pbx CDR StartTime 2025-03-14 15:26:20 - End Time 2025-03-14 18:26:20 [2025-03-14 18:27:22] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 18:27:22] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680666', 'tblTempUsageDetail_20' ) start [2025-03-14 18:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680666', 'tblTempUsageDetail_20' ) end [2025-03-14 18:27:26] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680666', 'tblTempVendorCDR_20' ) start [2025-03-14 18:27:27] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680666', 'tblTempVendorCDR_20' ) end [2025-03-14 18:27:27] Production.INFO: ProcessCDR(1,14680666,1,1,2) [2025-03-14 18:27:27] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:27:38] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680666,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:27:38] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:28:01] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680666,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:28:01] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680666', 'tblTempUsageDetail_20' ) start [2025-03-14 18:28:11] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680666', 'tblTempUsageDetail_20' ) end [2025-03-14 18:28:11] Production.ERROR: pbx prc_insertCDR start [2025-03-14 18:28:11] Production.ERROR: pbx prc_insertCDR end [2025-03-14 18:28:15] Production.INFO: ==9264== Releasing lock... [2025-03-14 18:28:15] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 18:28:15] Production.INFO: 59.25 MB #Memory Used# [2025-03-14 18:29:20] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 15:29:20 [end_date_ymd] => 2025-03-14 18:29:20 [RateCDR] => 1 ) [2025-03-14 18:29:20] 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-03-14 15:29:20' and `end` < '2025-03-14 18:29:20' 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-03-14 18:29:33] Production.INFO: count ==4121 [2025-03-14 18:30:13] Production.ERROR: pbx CDR StartTime 2025-03-14 15:29:20 - End Time 2025-03-14 18:29:20 [2025-03-14 18:30:13] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 18:30:13] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680677', 'tblTempUsageDetail_20' ) start [2025-03-14 18:30:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680677', 'tblTempUsageDetail_20' ) end [2025-03-14 18:30:16] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680677', 'tblTempVendorCDR_20' ) start [2025-03-14 18:30:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680677', 'tblTempVendorCDR_20' ) end [2025-03-14 18:30:17] Production.INFO: ProcessCDR(1,14680677,1,1,2) [2025-03-14 18:30:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:30:26] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680677,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:30:26] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:30:39] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680677,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:30:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680677', 'tblTempUsageDetail_20' ) start [2025-03-14 18:30:39] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680677', 'tblTempUsageDetail_20' ) end [2025-03-14 18:30:39] Production.ERROR: pbx prc_insertCDR start [2025-03-14 18:30:39] Production.ERROR: pbx prc_insertCDR end [2025-03-14 18:30:39] Production.INFO: ==9466== Releasing lock... [2025-03-14 18:30:39] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 18:30:39] Production.INFO: 58.75 MB #Memory Used# [2025-03-14 18:31:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 15:31:06 [end_date_ymd] => 2025-03-14 18:31:06 [RateCDR] => 1 ) [2025-03-14 18:31: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-03-14 15:31:06' and `end` < '2025-03-14 18:31: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-03-14 18:31:19] Production.INFO: count ==4050 [2025-03-14 18:31:21] Production.ERROR: pbx CDR StartTime 2025-03-14 15:31:06 - End Time 2025-03-14 18:31:06 [2025-03-14 18:31:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 18:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680686', 'tblTempUsageDetail_20' ) start [2025-03-14 18:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680686', 'tblTempUsageDetail_20' ) end [2025-03-14 18:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680686', 'tblTempVendorCDR_20' ) start [2025-03-14 18:31:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680686', 'tblTempVendorCDR_20' ) end [2025-03-14 18:31:21] Production.INFO: ProcessCDR(1,14680686,1,1,2) [2025-03-14 18:31:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:31:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680686,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:31:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:31:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680686,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680686', 'tblTempUsageDetail_20' ) start [2025-03-14 18:31:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680686', 'tblTempUsageDetail_20' ) end [2025-03-14 18:31:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 18:31:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 18:31:24] Production.INFO: ==9609== Releasing lock... [2025-03-14 18:31:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 18:31:24] Production.INFO: 58.25 MB #Memory Used# [2025-03-14 18:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 15:32:06 [end_date_ymd] => 2025-03-14 18:32:06 [RateCDR] => 1 ) [2025-03-14 18:32: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-03-14 15:32:06' and `end` < '2025-03-14 18:32: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-03-14 18:32:19] Production.INFO: count ==4016 [2025-03-14 18:32:20] Production.ERROR: pbx CDR StartTime 2025-03-14 15:32:06 - End Time 2025-03-14 18:32:06 [2025-03-14 18:32:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680691', 'tblTempUsageDetail_20' ) start [2025-03-14 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680691', 'tblTempUsageDetail_20' ) end [2025-03-14 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680691', 'tblTempVendorCDR_20' ) start [2025-03-14 18:32:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680691', 'tblTempVendorCDR_20' ) end [2025-03-14 18:32:20] Production.INFO: ProcessCDR(1,14680691,1,1,2) [2025-03-14 18:32:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:32:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680691,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:32:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:32:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680691,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680691', 'tblTempUsageDetail_20' ) start [2025-03-14 18:32:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680691', 'tblTempUsageDetail_20' ) end [2025-03-14 18:32:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 18:32:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 18:32:25] Production.INFO: ==9693== Releasing lock... [2025-03-14 18:32:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 18:32:25] Production.INFO: 58 MB #Memory Used# [2025-03-14 18:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 15:33:05 [end_date_ymd] => 2025-03-14 18:33:05 [RateCDR] => 1 ) [2025-03-14 18:33: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-03-14 15:33:05' and `end` < '2025-03-14 18:33: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-03-14 18:33:17] Production.INFO: count ==3979 [2025-03-14 18:33:19] Production.ERROR: pbx CDR StartTime 2025-03-14 15:33:05 - End Time 2025-03-14 18:33:05 [2025-03-14 18:33:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680696', 'tblTempUsageDetail_20' ) start [2025-03-14 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680696', 'tblTempUsageDetail_20' ) end [2025-03-14 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680696', 'tblTempVendorCDR_20' ) start [2025-03-14 18:33:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680696', 'tblTempVendorCDR_20' ) end [2025-03-14 18:33:19] Production.INFO: ProcessCDR(1,14680696,1,1,2) [2025-03-14 18:33:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:33:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680696,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:33:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:33:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680696,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680696', 'tblTempUsageDetail_20' ) start [2025-03-14 18:33:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680696', 'tblTempUsageDetail_20' ) end [2025-03-14 18:33:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 18:33:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 18:33:24] Production.INFO: ==9765== Releasing lock... [2025-03-14 18:33:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 18:33:24] Production.INFO: 58 MB #Memory Used# [2025-03-14 18:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 15:34:06 [end_date_ymd] => 2025-03-14 18:34:06 [RateCDR] => 1 ) [2025-03-14 18:34: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-03-14 15:34:06' and `end` < '2025-03-14 18:34: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-03-14 18:34:19] Production.INFO: count ==3980 [2025-03-14 18:34:20] Production.ERROR: pbx CDR StartTime 2025-03-14 15:34:06 - End Time 2025-03-14 18:34:06 [2025-03-14 18:34:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680701', 'tblTempUsageDetail_20' ) start [2025-03-14 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680701', 'tblTempUsageDetail_20' ) end [2025-03-14 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680701', 'tblTempVendorCDR_20' ) start [2025-03-14 18:34:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680701', 'tblTempVendorCDR_20' ) end [2025-03-14 18:34:20] Production.INFO: ProcessCDR(1,14680701,1,1,2) [2025-03-14 18:34:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:34:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:34:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:34:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680701', 'tblTempUsageDetail_20' ) start [2025-03-14 18:34:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680701', 'tblTempUsageDetail_20' ) end [2025-03-14 18:34:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 18:34:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 18:34:25] Production.INFO: ==9839== Releasing lock... [2025-03-14 18:34:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 18:34:25] Production.INFO: 58 MB #Memory Used# [2025-03-14 18:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 15:35:05 [end_date_ymd] => 2025-03-14 18:35:05 [RateCDR] => 1 ) [2025-03-14 18:35: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-03-14 15:35:05' and `end` < '2025-03-14 18:35: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-03-14 18:35:17] Production.INFO: count ==3963 [2025-03-14 18:35:19] Production.ERROR: pbx CDR StartTime 2025-03-14 15:35:05 - End Time 2025-03-14 18:35:05 [2025-03-14 18:35:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680706', 'tblTempUsageDetail_20' ) start [2025-03-14 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680706', 'tblTempUsageDetail_20' ) end [2025-03-14 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680706', 'tblTempVendorCDR_20' ) start [2025-03-14 18:35:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680706', 'tblTempVendorCDR_20' ) end [2025-03-14 18:35:19] Production.INFO: ProcessCDR(1,14680706,1,1,2) [2025-03-14 18:35:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680706', 'tblTempUsageDetail_20' ) start [2025-03-14 18:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680706', 'tblTempUsageDetail_20' ) end [2025-03-14 18:35:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 18:35:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 18:35:24] Production.INFO: ==9913== Releasing lock... [2025-03-14 18:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 18:35:24] Production.INFO: 57.5 MB #Memory Used# [2025-03-14 18:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 15:36:05 [end_date_ymd] => 2025-03-14 18:36:05 [RateCDR] => 1 ) [2025-03-14 18:36: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-03-14 15:36:05' and `end` < '2025-03-14 18:36: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-03-14 18:36:18] Production.INFO: count ==3933 [2025-03-14 18:36:19] Production.ERROR: pbx CDR StartTime 2025-03-14 15:36:05 - End Time 2025-03-14 18:36:05 [2025-03-14 18:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 18:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680711', 'tblTempUsageDetail_20' ) start [2025-03-14 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680711', 'tblTempUsageDetail_20' ) end [2025-03-14 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680711', 'tblTempVendorCDR_20' ) start [2025-03-14 18:36:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680711', 'tblTempVendorCDR_20' ) end [2025-03-14 18:36:20] Production.INFO: ProcessCDR(1,14680711,1,1,2) [2025-03-14 18:36:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:36:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:36:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680711', 'tblTempUsageDetail_20' ) start [2025-03-14 18:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680711', 'tblTempUsageDetail_20' ) end [2025-03-14 18:36:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 18:36:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 18:36:23] Production.INFO: ==9985== Releasing lock... [2025-03-14 18:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 18:36:23] Production.INFO: 57.75 MB #Memory Used# [2025-03-14 18:37:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 15:37:05 [end_date_ymd] => 2025-03-14 18:37:05 [RateCDR] => 1 ) [2025-03-14 18:37: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-03-14 15:37:05' and `end` < '2025-03-14 18:37: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-03-14 18:37:18] Production.INFO: count ==3916 [2025-03-14 18:37:19] Production.ERROR: pbx CDR StartTime 2025-03-14 15:37:05 - End Time 2025-03-14 18:37:05 [2025-03-14 18:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680716', 'tblTempUsageDetail_20' ) start [2025-03-14 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680716', 'tblTempUsageDetail_20' ) end [2025-03-14 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680716', 'tblTempVendorCDR_20' ) start [2025-03-14 18:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680716', 'tblTempVendorCDR_20' ) end [2025-03-14 18:37:19] Production.INFO: ProcessCDR(1,14680716,1,1,2) [2025-03-14 18:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680716', 'tblTempUsageDetail_20' ) start [2025-03-14 18:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680716', 'tblTempUsageDetail_20' ) end [2025-03-14 18:37:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 18:37:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 18:37:24] Production.INFO: ==10062== Releasing lock... [2025-03-14 18:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 18:37:24] Production.INFO: 57.25 MB #Memory Used# [2025-03-14 18:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 15:38:05 [end_date_ymd] => 2025-03-14 18:38:05 [RateCDR] => 1 ) [2025-03-14 18:38: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-03-14 15:38:05' and `end` < '2025-03-14 18:38: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-03-14 18:38:18] Production.INFO: count ==3903 [2025-03-14 18:38:19] Production.ERROR: pbx CDR StartTime 2025-03-14 15:38:05 - End Time 2025-03-14 18:38:05 [2025-03-14 18:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680721', 'tblTempUsageDetail_20' ) start [2025-03-14 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680721', 'tblTempUsageDetail_20' ) end [2025-03-14 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680721', 'tblTempVendorCDR_20' ) start [2025-03-14 18:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680721', 'tblTempVendorCDR_20' ) end [2025-03-14 18:38:19] Production.INFO: ProcessCDR(1,14680721,1,1,2) [2025-03-14 18:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:38:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680721', 'tblTempUsageDetail_20' ) start [2025-03-14 18:38:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680721', 'tblTempUsageDetail_20' ) end [2025-03-14 18:38:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 18:38:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 18:38:24] Production.INFO: ==10136== Releasing lock... [2025-03-14 18:38:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 18:38:24] Production.INFO: 57.25 MB #Memory Used# [2025-03-14 18:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 15:39:05 [end_date_ymd] => 2025-03-14 18:39:05 [RateCDR] => 1 ) [2025-03-14 18:39: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-03-14 15:39:05' and `end` < '2025-03-14 18:39: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-03-14 18:39:18] Production.INFO: count ==3886 [2025-03-14 18:39:20] Production.ERROR: pbx CDR StartTime 2025-03-14 15:39:05 - End Time 2025-03-14 18:39:05 [2025-03-14 18:39:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680726', 'tblTempUsageDetail_20' ) start [2025-03-14 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680726', 'tblTempUsageDetail_20' ) end [2025-03-14 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680726', 'tblTempVendorCDR_20' ) start [2025-03-14 18:39:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680726', 'tblTempVendorCDR_20' ) end [2025-03-14 18:39:20] Production.INFO: ProcessCDR(1,14680726,1,1,2) [2025-03-14 18:39:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:39:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680726', 'tblTempUsageDetail_20' ) start [2025-03-14 18:39:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680726', 'tblTempUsageDetail_20' ) end [2025-03-14 18:39:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 18:39:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 18:39:25] Production.INFO: ==10213== Releasing lock... [2025-03-14 18:39:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 18:39:25] Production.INFO: 57 MB #Memory Used# [2025-03-14 18:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 15:40:07 [end_date_ymd] => 2025-03-14 18:40:07 [RateCDR] => 1 ) [2025-03-14 18:40:07] 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-03-14 15:40:07' and `end` < '2025-03-14 18:40:07' 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-03-14 18:40:20] Production.INFO: count ==3864 [2025-03-14 18:40:21] Production.ERROR: pbx CDR StartTime 2025-03-14 15:40:07 - End Time 2025-03-14 18:40:07 [2025-03-14 18:40:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680732', 'tblTempUsageDetail_20' ) start [2025-03-14 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680732', 'tblTempUsageDetail_20' ) end [2025-03-14 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680732', 'tblTempVendorCDR_20' ) start [2025-03-14 18:40:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680732', 'tblTempVendorCDR_20' ) end [2025-03-14 18:40:21] Production.INFO: ProcessCDR(1,14680732,1,1,2) [2025-03-14 18:40:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:40:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680732,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:40:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:40:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680732,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680732', 'tblTempUsageDetail_20' ) start [2025-03-14 18:40:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680732', 'tblTempUsageDetail_20' ) end [2025-03-14 18:40:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 18:40:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 18:40:26] Production.INFO: ==10329== Releasing lock... [2025-03-14 18:40:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 18:40:26] Production.INFO: 57.25 MB #Memory Used# [2025-03-14 18:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 15:41:06 [end_date_ymd] => 2025-03-14 18:41:06 [RateCDR] => 1 ) [2025-03-14 18:41: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-03-14 15:41:06' and `end` < '2025-03-14 18:41: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-03-14 18:41:19] Production.INFO: count ==3813 [2025-03-14 18:41:20] Production.ERROR: pbx CDR StartTime 2025-03-14 15:41:06 - End Time 2025-03-14 18:41:06 [2025-03-14 18:41:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680737', 'tblTempUsageDetail_20' ) start [2025-03-14 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680737', 'tblTempUsageDetail_20' ) end [2025-03-14 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680737', 'tblTempVendorCDR_20' ) start [2025-03-14 18:41:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680737', 'tblTempVendorCDR_20' ) end [2025-03-14 18:41:20] Production.INFO: ProcessCDR(1,14680737,1,1,2) [2025-03-14 18:41:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:41:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680737,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:41:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:41:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680737,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680737', 'tblTempUsageDetail_20' ) start [2025-03-14 18:41:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680737', 'tblTempUsageDetail_20' ) end [2025-03-14 18:41:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 18:41:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 18:41:25] Production.INFO: ==10407== Releasing lock... [2025-03-14 18:41:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 18:41:25] Production.INFO: 57 MB #Memory Used# [2025-03-14 18:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 15:42:05 [end_date_ymd] => 2025-03-14 18:42:05 [RateCDR] => 1 ) [2025-03-14 18:42: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-03-14 15:42:05' and `end` < '2025-03-14 18:42: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-03-14 18:42:18] Production.INFO: count ==3800 [2025-03-14 18:42:19] Production.ERROR: pbx CDR StartTime 2025-03-14 15:42:05 - End Time 2025-03-14 18:42:05 [2025-03-14 18:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680742', 'tblTempUsageDetail_20' ) start [2025-03-14 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680742', 'tblTempUsageDetail_20' ) end [2025-03-14 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680742', 'tblTempVendorCDR_20' ) start [2025-03-14 18:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680742', 'tblTempVendorCDR_20' ) end [2025-03-14 18:42:19] Production.INFO: ProcessCDR(1,14680742,1,1,2) [2025-03-14 18:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:42:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680742,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:42:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680742,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680742', 'tblTempUsageDetail_20' ) start [2025-03-14 18:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680742', 'tblTempUsageDetail_20' ) end [2025-03-14 18:42:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 18:42:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 18:42:23] Production.INFO: ==10484== Releasing lock... [2025-03-14 18:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 18:42:23] Production.INFO: 56.75 MB #Memory Used# [2025-03-14 18:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 15:43:05 [end_date_ymd] => 2025-03-14 18:43:05 [RateCDR] => 1 ) [2025-03-14 18:43: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-03-14 15:43:05' and `end` < '2025-03-14 18:43: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-03-14 18:43:18] Production.INFO: count ==3783 [2025-03-14 18:43:20] Production.ERROR: pbx CDR StartTime 2025-03-14 15:43:05 - End Time 2025-03-14 18:43:05 [2025-03-14 18:43:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680747', 'tblTempUsageDetail_20' ) start [2025-03-14 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680747', 'tblTempUsageDetail_20' ) end [2025-03-14 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680747', 'tblTempVendorCDR_20' ) start [2025-03-14 18:43:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680747', 'tblTempVendorCDR_20' ) end [2025-03-14 18:43:20] Production.INFO: ProcessCDR(1,14680747,1,1,2) [2025-03-14 18:43:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:43:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680747,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:43:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:43:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680747,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680747', 'tblTempUsageDetail_20' ) start [2025-03-14 18:43:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680747', 'tblTempUsageDetail_20' ) end [2025-03-14 18:43:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 18:43:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 18:43:23] Production.INFO: ==10558== Releasing lock... [2025-03-14 18:43:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 18:43:23] Production.INFO: 56.75 MB #Memory Used# [2025-03-14 18:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 15:44:06 [end_date_ymd] => 2025-03-14 18:44:06 [RateCDR] => 1 ) [2025-03-14 18:44: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-03-14 15:44:06' and `end` < '2025-03-14 18:44: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-03-14 18:44:19] Production.INFO: count ==3791 [2025-03-14 18:44:20] Production.ERROR: pbx CDR StartTime 2025-03-14 15:44:06 - End Time 2025-03-14 18:44:06 [2025-03-14 18:44:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680752', 'tblTempUsageDetail_20' ) start [2025-03-14 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680752', 'tblTempUsageDetail_20' ) end [2025-03-14 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680752', 'tblTempVendorCDR_20' ) start [2025-03-14 18:44:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680752', 'tblTempVendorCDR_20' ) end [2025-03-14 18:44:20] Production.INFO: ProcessCDR(1,14680752,1,1,2) [2025-03-14 18:44:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680752,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680752,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680752', 'tblTempUsageDetail_20' ) start [2025-03-14 18:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680752', 'tblTempUsageDetail_20' ) end [2025-03-14 18:44:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 18:44:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 18:44:24] Production.INFO: ==10634== Releasing lock... [2025-03-14 18:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 18:44:24] Production.INFO: 57.25 MB #Memory Used# [2025-03-14 18:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 15:45:05 [end_date_ymd] => 2025-03-14 18:45:05 [RateCDR] => 1 ) [2025-03-14 18:45: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-03-14 15:45:05' and `end` < '2025-03-14 18:45: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-03-14 18:45:18] Production.INFO: count ==3782 [2025-03-14 18:45:19] Production.ERROR: pbx CDR StartTime 2025-03-14 15:45:05 - End Time 2025-03-14 18:45:05 [2025-03-14 18:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680757', 'tblTempUsageDetail_20' ) start [2025-03-14 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680757', 'tblTempUsageDetail_20' ) end [2025-03-14 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680757', 'tblTempVendorCDR_20' ) start [2025-03-14 18:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680757', 'tblTempVendorCDR_20' ) end [2025-03-14 18:45:19] Production.INFO: ProcessCDR(1,14680757,1,1,2) [2025-03-14 18:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:45:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680757', 'tblTempUsageDetail_20' ) start [2025-03-14 18:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680757', 'tblTempUsageDetail_20' ) end [2025-03-14 18:45:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 18:45:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 18:45:23] Production.INFO: ==10707== Releasing lock... [2025-03-14 18:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 18:45:23] Production.INFO: 57.25 MB #Memory Used# [2025-03-14 18:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 15:46:05 [end_date_ymd] => 2025-03-14 18:46:05 [RateCDR] => 1 ) [2025-03-14 18:46: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-03-14 15:46:05' and `end` < '2025-03-14 18:46: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-03-14 18:46:18] Production.INFO: count ==3783 [2025-03-14 18:46:19] Production.ERROR: pbx CDR StartTime 2025-03-14 15:46:05 - End Time 2025-03-14 18:46:05 [2025-03-14 18:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680762', 'tblTempUsageDetail_20' ) start [2025-03-14 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680762', 'tblTempUsageDetail_20' ) end [2025-03-14 18:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680762', 'tblTempVendorCDR_20' ) start [2025-03-14 18:46:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680762', 'tblTempVendorCDR_20' ) end [2025-03-14 18:46:20] Production.INFO: ProcessCDR(1,14680762,1,1,2) [2025-03-14 18:46:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:46:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:46:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680762', 'tblTempUsageDetail_20' ) start [2025-03-14 18:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680762', 'tblTempUsageDetail_20' ) end [2025-03-14 18:46:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 18:46:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 18:46:23] Production.INFO: ==10782== Releasing lock... [2025-03-14 18:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 18:46:23] Production.INFO: 56.5 MB #Memory Used# [2025-03-14 18:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 15:47:05 [end_date_ymd] => 2025-03-14 18:47:05 [RateCDR] => 1 ) [2025-03-14 18:47: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-03-14 15:47:05' and `end` < '2025-03-14 18:47: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-03-14 18:47:18] Production.INFO: count ==3778 [2025-03-14 18:47:19] Production.ERROR: pbx CDR StartTime 2025-03-14 15:47:05 - End Time 2025-03-14 18:47:05 [2025-03-14 18:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 18:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680767', 'tblTempUsageDetail_20' ) start [2025-03-14 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680767', 'tblTempUsageDetail_20' ) end [2025-03-14 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680767', 'tblTempVendorCDR_20' ) start [2025-03-14 18:47:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680767', 'tblTempVendorCDR_20' ) end [2025-03-14 18:47:20] Production.INFO: ProcessCDR(1,14680767,1,1,2) [2025-03-14 18:47:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680767', 'tblTempUsageDetail_20' ) start [2025-03-14 18:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680767', 'tblTempUsageDetail_20' ) end [2025-03-14 18:47:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 18:47:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 18:47:23] Production.INFO: ==10863== Releasing lock... [2025-03-14 18:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 18:47:23] Production.INFO: 57 MB #Memory Used# [2025-03-14 18:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 15:48:05 [end_date_ymd] => 2025-03-14 18:48:05 [RateCDR] => 1 ) [2025-03-14 18:48: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-03-14 15:48:05' and `end` < '2025-03-14 18:48: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-03-14 18:48:18] Production.INFO: count ==3758 [2025-03-14 18:48:19] Production.ERROR: pbx CDR StartTime 2025-03-14 15:48:05 - End Time 2025-03-14 18:48:05 [2025-03-14 18:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 18:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680772', 'tblTempUsageDetail_20' ) start [2025-03-14 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680772', 'tblTempUsageDetail_20' ) end [2025-03-14 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680772', 'tblTempVendorCDR_20' ) start [2025-03-14 18:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680772', 'tblTempVendorCDR_20' ) end [2025-03-14 18:48:20] Production.INFO: ProcessCDR(1,14680772,1,1,2) [2025-03-14 18:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680772', 'tblTempUsageDetail_20' ) start [2025-03-14 18:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680772', 'tblTempUsageDetail_20' ) end [2025-03-14 18:48:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 18:48:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 18:48:23] Production.INFO: ==10941== Releasing lock... [2025-03-14 18:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 18:48:23] Production.INFO: 56 MB #Memory Used# [2025-03-14 18:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 15:49:05 [end_date_ymd] => 2025-03-14 18:49:05 [RateCDR] => 1 ) [2025-03-14 18:49: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-03-14 15:49:05' and `end` < '2025-03-14 18:49: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-03-14 18:49:18] Production.INFO: count ==3744 [2025-03-14 18:49:19] Production.ERROR: pbx CDR StartTime 2025-03-14 15:49:05 - End Time 2025-03-14 18:49:05 [2025-03-14 18:49:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680777', 'tblTempUsageDetail_20' ) start [2025-03-14 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680777', 'tblTempUsageDetail_20' ) end [2025-03-14 18:49:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680777', 'tblTempVendorCDR_20' ) start [2025-03-14 18:49:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680777', 'tblTempVendorCDR_20' ) end [2025-03-14 18:49:20] Production.INFO: ProcessCDR(1,14680777,1,1,2) [2025-03-14 18:49:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:49:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:49:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680777', 'tblTempUsageDetail_20' ) start [2025-03-14 18:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680777', 'tblTempUsageDetail_20' ) end [2025-03-14 18:49:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 18:49:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 18:49:24] Production.INFO: ==11015== Releasing lock... [2025-03-14 18:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 18:49:24] Production.INFO: 56 MB #Memory Used# [2025-03-14 18:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 15:50:06 [end_date_ymd] => 2025-03-14 18:50:06 [RateCDR] => 1 ) [2025-03-14 18:50: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-03-14 15:50:06' and `end` < '2025-03-14 18:50: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-03-14 18:50:19] Production.INFO: count ==3751 [2025-03-14 18:50:20] Production.ERROR: pbx CDR StartTime 2025-03-14 15:50:06 - End Time 2025-03-14 18:50:06 [2025-03-14 18:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680782', 'tblTempUsageDetail_20' ) start [2025-03-14 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680782', 'tblTempUsageDetail_20' ) end [2025-03-14 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680782', 'tblTempVendorCDR_20' ) start [2025-03-14 18:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680782', 'tblTempVendorCDR_20' ) end [2025-03-14 18:50:20] Production.INFO: ProcessCDR(1,14680782,1,1,2) [2025-03-14 18:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680782', 'tblTempUsageDetail_20' ) start [2025-03-14 18:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680782', 'tblTempUsageDetail_20' ) end [2025-03-14 18:50:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 18:50:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 18:50:26] Production.INFO: ==11097== Releasing lock... [2025-03-14 18:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 18:50:26] Production.INFO: 57 MB #Memory Used# [2025-03-14 18:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 15:51:05 [end_date_ymd] => 2025-03-14 18:51:05 [RateCDR] => 1 ) [2025-03-14 18:51: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-03-14 15:51:05' and `end` < '2025-03-14 18:51: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-03-14 18:51:18] Production.INFO: count ==3692 [2025-03-14 18:51:19] Production.ERROR: pbx CDR StartTime 2025-03-14 15:51:05 - End Time 2025-03-14 18:51:05 [2025-03-14 18:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680788', 'tblTempUsageDetail_20' ) start [2025-03-14 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680788', 'tblTempUsageDetail_20' ) end [2025-03-14 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680788', 'tblTempVendorCDR_20' ) start [2025-03-14 18:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680788', 'tblTempVendorCDR_20' ) end [2025-03-14 18:51:19] Production.INFO: ProcessCDR(1,14680788,1,1,2) [2025-03-14 18:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680788,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680788,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680788', 'tblTempUsageDetail_20' ) start [2025-03-14 18:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680788', 'tblTempUsageDetail_20' ) end [2025-03-14 18:51:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 18:51:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 18:51:23] Production.INFO: ==11178== Releasing lock... [2025-03-14 18:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 18:51:23] Production.INFO: 56 MB #Memory Used# [2025-03-14 18:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 15:52:05 [end_date_ymd] => 2025-03-14 18:52:05 [RateCDR] => 1 ) [2025-03-14 18:52: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-03-14 15:52:05' and `end` < '2025-03-14 18:52: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-03-14 18:52:18] Production.INFO: count ==3661 [2025-03-14 18:52:19] Production.ERROR: pbx CDR StartTime 2025-03-14 15:52:05 - End Time 2025-03-14 18:52:05 [2025-03-14 18:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680793', 'tblTempUsageDetail_20' ) start [2025-03-14 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680793', 'tblTempUsageDetail_20' ) end [2025-03-14 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680793', 'tblTempVendorCDR_20' ) start [2025-03-14 18:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680793', 'tblTempVendorCDR_20' ) end [2025-03-14 18:52:19] Production.INFO: ProcessCDR(1,14680793,1,1,2) [2025-03-14 18:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680793,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680793,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680793', 'tblTempUsageDetail_20' ) start [2025-03-14 18:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680793', 'tblTempUsageDetail_20' ) end [2025-03-14 18:52:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 18:52:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 18:52:24] Production.INFO: ==11254== Releasing lock... [2025-03-14 18:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 18:52:24] Production.INFO: 56.25 MB #Memory Used# [2025-03-14 18:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 15:53:05 [end_date_ymd] => 2025-03-14 18:53:05 [RateCDR] => 1 ) [2025-03-14 18:53: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-03-14 15:53:05' and `end` < '2025-03-14 18:53: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-03-14 18:53:18] Production.INFO: count ==3646 [2025-03-14 18:53:19] Production.ERROR: pbx CDR StartTime 2025-03-14 15:53:05 - End Time 2025-03-14 18:53:05 [2025-03-14 18:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680798', 'tblTempUsageDetail_20' ) start [2025-03-14 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680798', 'tblTempUsageDetail_20' ) end [2025-03-14 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680798', 'tblTempVendorCDR_20' ) start [2025-03-14 18:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680798', 'tblTempVendorCDR_20' ) end [2025-03-14 18:53:19] Production.INFO: ProcessCDR(1,14680798,1,1,2) [2025-03-14 18:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:53:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680798,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:53:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680798,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680798', 'tblTempUsageDetail_20' ) start [2025-03-14 18:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680798', 'tblTempUsageDetail_20' ) end [2025-03-14 18:53:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 18:53:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 18:53:23] Production.INFO: ==11333== Releasing lock... [2025-03-14 18:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 18:53:23] Production.INFO: 55.25 MB #Memory Used# [2025-03-14 18:54:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 15:54:06 [end_date_ymd] => 2025-03-14 18:54:06 [RateCDR] => 1 ) [2025-03-14 18:54: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-03-14 15:54:06' and `end` < '2025-03-14 18:54: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-03-14 18:54:18] Production.INFO: count ==3631 [2025-03-14 18:54:20] Production.ERROR: pbx CDR StartTime 2025-03-14 15:54:06 - End Time 2025-03-14 18:54:06 [2025-03-14 18:54:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680803', 'tblTempUsageDetail_20' ) start [2025-03-14 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680803', 'tblTempUsageDetail_20' ) end [2025-03-14 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680803', 'tblTempVendorCDR_20' ) start [2025-03-14 18:54:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680803', 'tblTempVendorCDR_20' ) end [2025-03-14 18:54:20] Production.INFO: ProcessCDR(1,14680803,1,1,2) [2025-03-14 18:54:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:54:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680803,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:54:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:54:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680803,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680803', 'tblTempUsageDetail_20' ) start [2025-03-14 18:54:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680803', 'tblTempUsageDetail_20' ) end [2025-03-14 18:54:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 18:54:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 18:54:23] Production.INFO: ==11408== Releasing lock... [2025-03-14 18:54:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 18:54:23] Production.INFO: 55 MB #Memory Used# [2025-03-14 18:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 15:55:05 [end_date_ymd] => 2025-03-14 18:55:05 [RateCDR] => 1 ) [2025-03-14 18:55: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-03-14 15:55:05' and `end` < '2025-03-14 18:55: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-03-14 18:55:17] Production.INFO: count ==3609 [2025-03-14 18:55:19] Production.ERROR: pbx CDR StartTime 2025-03-14 15:55:05 - End Time 2025-03-14 18:55:05 [2025-03-14 18:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680808', 'tblTempUsageDetail_20' ) start [2025-03-14 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680808', 'tblTempUsageDetail_20' ) end [2025-03-14 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680808', 'tblTempVendorCDR_20' ) start [2025-03-14 18:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680808', 'tblTempVendorCDR_20' ) end [2025-03-14 18:55:19] Production.INFO: ProcessCDR(1,14680808,1,1,2) [2025-03-14 18:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:55:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:55:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680808', 'tblTempUsageDetail_20' ) start [2025-03-14 18:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680808', 'tblTempUsageDetail_20' ) end [2025-03-14 18:55:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 18:55:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 18:55:24] Production.INFO: ==11527== Releasing lock... [2025-03-14 18:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 18:55:24] Production.INFO: 55 MB #Memory Used# [2025-03-14 18:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 15:56:05 [end_date_ymd] => 2025-03-14 18:56:05 [RateCDR] => 1 ) [2025-03-14 18:56: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-03-14 15:56:05' and `end` < '2025-03-14 18:56: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-03-14 18:56:18] Production.INFO: count ==3603 [2025-03-14 18:56:19] Production.ERROR: pbx CDR StartTime 2025-03-14 15:56:05 - End Time 2025-03-14 18:56:05 [2025-03-14 18:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 18:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680813', 'tblTempUsageDetail_20' ) start [2025-03-14 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680813', 'tblTempUsageDetail_20' ) end [2025-03-14 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680813', 'tblTempVendorCDR_20' ) start [2025-03-14 18:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680813', 'tblTempVendorCDR_20' ) end [2025-03-14 18:56:20] Production.INFO: ProcessCDR(1,14680813,1,1,2) [2025-03-14 18:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680813', 'tblTempUsageDetail_20' ) start [2025-03-14 18:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680813', 'tblTempUsageDetail_20' ) end [2025-03-14 18:56:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 18:56:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 18:56:23] Production.INFO: ==11605== Releasing lock... [2025-03-14 18:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 18:56:23] Production.INFO: 55.25 MB #Memory Used# [2025-03-14 18:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 15:57:05 [end_date_ymd] => 2025-03-14 18:57:05 [RateCDR] => 1 ) [2025-03-14 18:57: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-03-14 15:57:05' and `end` < '2025-03-14 18:57: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-03-14 18:57:18] Production.INFO: count ==3595 [2025-03-14 18:57:19] Production.ERROR: pbx CDR StartTime 2025-03-14 15:57:05 - End Time 2025-03-14 18:57:05 [2025-03-14 18:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680818', 'tblTempUsageDetail_20' ) start [2025-03-14 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680818', 'tblTempUsageDetail_20' ) end [2025-03-14 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680818', 'tblTempVendorCDR_20' ) start [2025-03-14 18:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680818', 'tblTempVendorCDR_20' ) end [2025-03-14 18:57:19] Production.INFO: ProcessCDR(1,14680818,1,1,2) [2025-03-14 18:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:57:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680818', 'tblTempUsageDetail_20' ) start [2025-03-14 18:57:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680818', 'tblTempUsageDetail_20' ) end [2025-03-14 18:57:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 18:57:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 18:57:25] Production.INFO: ==11682== Releasing lock... [2025-03-14 18:57:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 18:57:25] Production.INFO: 55 MB #Memory Used# [2025-03-14 18:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 15:58:05 [end_date_ymd] => 2025-03-14 18:58:05 [RateCDR] => 1 ) [2025-03-14 18:58: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-03-14 15:58:05' and `end` < '2025-03-14 18:58: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-03-14 18:58:18] Production.INFO: count ==3584 [2025-03-14 18:58:19] Production.ERROR: pbx CDR StartTime 2025-03-14 15:58:05 - End Time 2025-03-14 18:58:05 [2025-03-14 18:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680823', 'tblTempUsageDetail_20' ) start [2025-03-14 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680823', 'tblTempUsageDetail_20' ) end [2025-03-14 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680823', 'tblTempVendorCDR_20' ) start [2025-03-14 18:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680823', 'tblTempVendorCDR_20' ) end [2025-03-14 18:58:19] Production.INFO: ProcessCDR(1,14680823,1,1,2) [2025-03-14 18:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:58:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:58:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:58:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680823', 'tblTempUsageDetail_20' ) start [2025-03-14 18:58:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680823', 'tblTempUsageDetail_20' ) end [2025-03-14 18:58:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 18:58:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 18:58:24] Production.INFO: ==11757== Releasing lock... [2025-03-14 18:58:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 18:58:24] Production.INFO: 55.75 MB #Memory Used# [2025-03-14 18:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 15:59:05 [end_date_ymd] => 2025-03-14 18:59:05 [RateCDR] => 1 ) [2025-03-14 18:59: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-03-14 15:59:05' and `end` < '2025-03-14 18:59: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-03-14 18:59:18] Production.INFO: count ==3562 [2025-03-14 18:59:19] Production.ERROR: pbx CDR StartTime 2025-03-14 15:59:05 - End Time 2025-03-14 18:59:05 [2025-03-14 18:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680828', 'tblTempUsageDetail_20' ) start [2025-03-14 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680828', 'tblTempUsageDetail_20' ) end [2025-03-14 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680828', 'tblTempVendorCDR_20' ) start [2025-03-14 18:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680828', 'tblTempVendorCDR_20' ) end [2025-03-14 18:59:19] Production.INFO: ProcessCDR(1,14680828,1,1,2) [2025-03-14 18:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:59:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 18:59:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 18:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680828', 'tblTempUsageDetail_20' ) start [2025-03-14 18:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680828', 'tblTempUsageDetail_20' ) end [2025-03-14 18:59:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 18:59:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 18:59:23] Production.INFO: ==11835== Releasing lock... [2025-03-14 18:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 18:59:23] Production.INFO: 55.25 MB #Memory Used# [2025-03-14 19:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 16:00:06 [end_date_ymd] => 2025-03-14 19:00:06 [RateCDR] => 1 ) [2025-03-14 19:00: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-03-14 16:00:06' and `end` < '2025-03-14 19:00: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-03-14 19:00:19] Production.INFO: count ==3548 [2025-03-14 19:00:20] Production.ERROR: pbx CDR StartTime 2025-03-14 16:00:06 - End Time 2025-03-14 19:00:06 [2025-03-14 19:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680834', 'tblTempUsageDetail_20' ) start [2025-03-14 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680834', 'tblTempUsageDetail_20' ) end [2025-03-14 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680834', 'tblTempVendorCDR_20' ) start [2025-03-14 19:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680834', 'tblTempVendorCDR_20' ) end [2025-03-14 19:00:20] Production.INFO: ProcessCDR(1,14680834,1,1,2) [2025-03-14 19:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680834,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:00:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680834,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:00:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680834', 'tblTempUsageDetail_20' ) start [2025-03-14 19:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680834', 'tblTempUsageDetail_20' ) end [2025-03-14 19:00:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 19:00:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 19:00:24] Production.INFO: ==11910== Releasing lock... [2025-03-14 19:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 19:00:24] Production.INFO: 55 MB #Memory Used# [2025-03-14 19:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 16:01:05 [end_date_ymd] => 2025-03-14 19:01:05 [RateCDR] => 1 ) [2025-03-14 19:01: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-03-14 16:01:05' and `end` < '2025-03-14 19:01: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-03-14 19:01:18] Production.INFO: count ==3532 [2025-03-14 19:01:19] Production.ERROR: pbx CDR StartTime 2025-03-14 16:01:05 - End Time 2025-03-14 19:01:05 [2025-03-14 19:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680839', 'tblTempUsageDetail_20' ) start [2025-03-14 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680839', 'tblTempUsageDetail_20' ) end [2025-03-14 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680839', 'tblTempVendorCDR_20' ) start [2025-03-14 19:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680839', 'tblTempVendorCDR_20' ) end [2025-03-14 19:01:19] Production.INFO: ProcessCDR(1,14680839,1,1,2) [2025-03-14 19:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680839,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680839,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680839', 'tblTempUsageDetail_20' ) start [2025-03-14 19:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680839', 'tblTempUsageDetail_20' ) end [2025-03-14 19:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 19:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 19:01:22] Production.INFO: ==12005== Releasing lock... [2025-03-14 19:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 19:01:22] Production.INFO: 54.5 MB #Memory Used# [2025-03-14 19:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 16:02:05 [end_date_ymd] => 2025-03-14 19:02:05 [RateCDR] => 1 ) [2025-03-14 19:02: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-03-14 16:02:05' and `end` < '2025-03-14 19:02: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-03-14 19:02:18] Production.INFO: count ==3511 [2025-03-14 19:02:19] Production.ERROR: pbx CDR StartTime 2025-03-14 16:02:05 - End Time 2025-03-14 19:02:05 [2025-03-14 19:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680844', 'tblTempUsageDetail_20' ) start [2025-03-14 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680844', 'tblTempUsageDetail_20' ) end [2025-03-14 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680844', 'tblTempVendorCDR_20' ) start [2025-03-14 19:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680844', 'tblTempVendorCDR_20' ) end [2025-03-14 19:02:19] Production.INFO: ProcessCDR(1,14680844,1,1,2) [2025-03-14 19:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:02:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680844,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:02:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:02:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680844,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680844', 'tblTempUsageDetail_20' ) start [2025-03-14 19:02:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680844', 'tblTempUsageDetail_20' ) end [2025-03-14 19:02:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 19:02:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 19:02:24] Production.INFO: ==12164== Releasing lock... [2025-03-14 19:02:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 19:02:24] Production.INFO: 54.5 MB #Memory Used# [2025-03-14 19:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 16:03:05 [end_date_ymd] => 2025-03-14 19:03:05 [RateCDR] => 1 ) [2025-03-14 19:03: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-03-14 16:03:05' and `end` < '2025-03-14 19:03: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-03-14 19:03:18] Production.INFO: count ==3494 [2025-03-14 19:03:19] Production.ERROR: pbx CDR StartTime 2025-03-14 16:03:05 - End Time 2025-03-14 19:03:05 [2025-03-14 19:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680849', 'tblTempUsageDetail_20' ) start [2025-03-14 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680849', 'tblTempUsageDetail_20' ) end [2025-03-14 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680849', 'tblTempVendorCDR_20' ) start [2025-03-14 19:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680849', 'tblTempVendorCDR_20' ) end [2025-03-14 19:03:19] Production.INFO: ProcessCDR(1,14680849,1,1,2) [2025-03-14 19:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680849,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:03:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680849,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680849', 'tblTempUsageDetail_20' ) start [2025-03-14 19:03:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680849', 'tblTempUsageDetail_20' ) end [2025-03-14 19:03:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 19:03:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 19:03:24] Production.INFO: ==12244== Releasing lock... [2025-03-14 19:03:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 19:03:24] Production.INFO: 54 MB #Memory Used# [2025-03-14 19:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 16:04:05 [end_date_ymd] => 2025-03-14 19:04:05 [RateCDR] => 1 ) [2025-03-14 19:04: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-03-14 16:04:05' and `end` < '2025-03-14 19:04: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-03-14 19:04:18] Production.INFO: count ==3472 [2025-03-14 19:04:19] Production.ERROR: pbx CDR StartTime 2025-03-14 16:04:05 - End Time 2025-03-14 19:04:05 [2025-03-14 19:04:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680854', 'tblTempUsageDetail_20' ) start [2025-03-14 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680854', 'tblTempUsageDetail_20' ) end [2025-03-14 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680854', 'tblTempVendorCDR_20' ) start [2025-03-14 19:04:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680854', 'tblTempVendorCDR_20' ) end [2025-03-14 19:04:19] Production.INFO: ProcessCDR(1,14680854,1,1,2) [2025-03-14 19:04:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:04:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680854,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:04:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:04:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680854,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680854', 'tblTempUsageDetail_20' ) start [2025-03-14 19:04:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680854', 'tblTempUsageDetail_20' ) end [2025-03-14 19:04:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 19:04:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 19:04:24] Production.INFO: ==12331== Releasing lock... [2025-03-14 19:04:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 19:04:24] Production.INFO: 54.5 MB #Memory Used# [2025-03-14 19:05:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 16:05:04 [end_date_ymd] => 2025-03-14 19:05:04 [RateCDR] => 1 ) [2025-03-14 19:05: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-03-14 16:05:04' and `end` < '2025-03-14 19:05: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-03-14 19:05:17] Production.INFO: count ==3464 [2025-03-14 19:05:18] Production.ERROR: pbx CDR StartTime 2025-03-14 16:05:04 - End Time 2025-03-14 19:05:04 [2025-03-14 19:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680859', 'tblTempUsageDetail_20' ) start [2025-03-14 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680859', 'tblTempUsageDetail_20' ) end [2025-03-14 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680859', 'tblTempVendorCDR_20' ) start [2025-03-14 19:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680859', 'tblTempVendorCDR_20' ) end [2025-03-14 19:05:18] Production.INFO: ProcessCDR(1,14680859,1,1,2) [2025-03-14 19:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680859', 'tblTempUsageDetail_20' ) start [2025-03-14 19:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680859', 'tblTempUsageDetail_20' ) end [2025-03-14 19:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 19:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 19:05:22] Production.INFO: ==12489== Releasing lock... [2025-03-14 19:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 19:05:22] Production.INFO: 54.75 MB #Memory Used# [2025-03-14 19:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 16:06:05 [end_date_ymd] => 2025-03-14 19:06:05 [RateCDR] => 1 ) [2025-03-14 19:06: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-03-14 16:06:05' and `end` < '2025-03-14 19:06: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-03-14 19:06:18] Production.INFO: count ==3438 [2025-03-14 19:06:19] Production.ERROR: pbx CDR StartTime 2025-03-14 16:06:05 - End Time 2025-03-14 19:06:05 [2025-03-14 19:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680864', 'tblTempUsageDetail_20' ) start [2025-03-14 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680864', 'tblTempUsageDetail_20' ) end [2025-03-14 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680864', 'tblTempVendorCDR_20' ) start [2025-03-14 19:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680864', 'tblTempVendorCDR_20' ) end [2025-03-14 19:06:19] Production.INFO: ProcessCDR(1,14680864,1,1,2) [2025-03-14 19:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680864', 'tblTempUsageDetail_20' ) start [2025-03-14 19:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680864', 'tblTempUsageDetail_20' ) end [2025-03-14 19:06:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 19:06:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 19:06:23] Production.INFO: ==12566== Releasing lock... [2025-03-14 19:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 19:06:23] Production.INFO: 54.75 MB #Memory Used# [2025-03-14 19:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 16:07:05 [end_date_ymd] => 2025-03-14 19:07:05 [RateCDR] => 1 ) [2025-03-14 19:07: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-03-14 16:07:05' and `end` < '2025-03-14 19:07: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-03-14 19:07:18] Production.INFO: count ==3411 [2025-03-14 19:07:19] Production.ERROR: pbx CDR StartTime 2025-03-14 16:07:05 - End Time 2025-03-14 19:07:05 [2025-03-14 19:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680869', 'tblTempUsageDetail_20' ) start [2025-03-14 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680869', 'tblTempUsageDetail_20' ) end [2025-03-14 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680869', 'tblTempVendorCDR_20' ) start [2025-03-14 19:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680869', 'tblTempVendorCDR_20' ) end [2025-03-14 19:07:19] Production.INFO: ProcessCDR(1,14680869,1,1,2) [2025-03-14 19:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680869', 'tblTempUsageDetail_20' ) start [2025-03-14 19:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680869', 'tblTempUsageDetail_20' ) end [2025-03-14 19:07:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 19:07:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 19:07:23] Production.INFO: ==12648== Releasing lock... [2025-03-14 19:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 19:07:23] Production.INFO: 53.75 MB #Memory Used# [2025-03-14 19:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 16:08:06 [end_date_ymd] => 2025-03-14 19:08:06 [RateCDR] => 1 ) [2025-03-14 19:08: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-03-14 16:08:06' and `end` < '2025-03-14 19:08: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-03-14 19:08:18] Production.INFO: count ==3404 [2025-03-14 19:08:19] Production.ERROR: pbx CDR StartTime 2025-03-14 16:08:06 - End Time 2025-03-14 19:08:06 [2025-03-14 19:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680874', 'tblTempUsageDetail_20' ) start [2025-03-14 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680874', 'tblTempUsageDetail_20' ) end [2025-03-14 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680874', 'tblTempVendorCDR_20' ) start [2025-03-14 19:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680874', 'tblTempVendorCDR_20' ) end [2025-03-14 19:08:19] Production.INFO: ProcessCDR(1,14680874,1,1,2) [2025-03-14 19:08:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680874', 'tblTempUsageDetail_20' ) start [2025-03-14 19:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680874', 'tblTempUsageDetail_20' ) end [2025-03-14 19:08:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 19:08:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 19:08:23] Production.INFO: ==12768== Releasing lock... [2025-03-14 19:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 19:08:23] Production.INFO: 53.5 MB #Memory Used# [2025-03-14 19:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 16:09:06 [end_date_ymd] => 2025-03-14 19:09:06 [RateCDR] => 1 ) [2025-03-14 19:09: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-03-14 16:09:06' and `end` < '2025-03-14 19:09: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-03-14 19:09:19] Production.INFO: count ==3381 [2025-03-14 19:09:20] Production.ERROR: pbx CDR StartTime 2025-03-14 16:09:06 - End Time 2025-03-14 19:09:06 [2025-03-14 19:09:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680879', 'tblTempUsageDetail_20' ) start [2025-03-14 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680879', 'tblTempUsageDetail_20' ) end [2025-03-14 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680879', 'tblTempVendorCDR_20' ) start [2025-03-14 19:09:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680879', 'tblTempVendorCDR_20' ) end [2025-03-14 19:09:20] Production.INFO: ProcessCDR(1,14680879,1,1,2) [2025-03-14 19:09:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:09:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:09:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:09:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680879', 'tblTempUsageDetail_20' ) start [2025-03-14 19:09:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680879', 'tblTempUsageDetail_20' ) end [2025-03-14 19:09:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 19:09:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 19:09:25] Production.INFO: ==12888== Releasing lock... [2025-03-14 19:09:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 19:09:25] Production.INFO: 54 MB #Memory Used# [2025-03-14 19:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 16:10:06 [end_date_ymd] => 2025-03-14 19:10:06 [RateCDR] => 1 ) [2025-03-14 19:10: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-03-14 16:10:06' and `end` < '2025-03-14 19:10: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-03-14 19:10:19] Production.INFO: count ==3359 [2025-03-14 19:10:20] Production.ERROR: pbx CDR StartTime 2025-03-14 16:10:06 - End Time 2025-03-14 19:10:06 [2025-03-14 19:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680884', 'tblTempUsageDetail_20' ) start [2025-03-14 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680884', 'tblTempUsageDetail_20' ) end [2025-03-14 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680884', 'tblTempVendorCDR_20' ) start [2025-03-14 19:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680884', 'tblTempVendorCDR_20' ) end [2025-03-14 19:10:20] Production.INFO: ProcessCDR(1,14680884,1,1,2) [2025-03-14 19:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680884', 'tblTempUsageDetail_20' ) start [2025-03-14 19:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680884', 'tblTempUsageDetail_20' ) end [2025-03-14 19:10:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 19:10:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 19:10:24] Production.INFO: ==12975== Releasing lock... [2025-03-14 19:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 19:10:24] Production.INFO: 53.5 MB #Memory Used# [2025-03-14 19:11:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 16:11:04 [end_date_ymd] => 2025-03-14 19:11:04 [RateCDR] => 1 ) [2025-03-14 19:11: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-03-14 16:11:04' and `end` < '2025-03-14 19:11: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-03-14 19:11:17] Production.INFO: count ==3344 [2025-03-14 19:11:18] Production.ERROR: pbx CDR StartTime 2025-03-14 16:11:04 - End Time 2025-03-14 19:11:04 [2025-03-14 19:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 19:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680890', 'tblTempUsageDetail_20' ) start [2025-03-14 19:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680890', 'tblTempUsageDetail_20' ) end [2025-03-14 19:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680890', 'tblTempVendorCDR_20' ) start [2025-03-14 19:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680890', 'tblTempVendorCDR_20' ) end [2025-03-14 19:11:18] Production.INFO: ProcessCDR(1,14680890,1,1,2) [2025-03-14 19:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680890,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680890,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680890', 'tblTempUsageDetail_20' ) start [2025-03-14 19:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680890', 'tblTempUsageDetail_20' ) end [2025-03-14 19:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 19:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 19:11:22] Production.INFO: ==13102== Releasing lock... [2025-03-14 19:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 19:11:22] Production.INFO: 53 MB #Memory Used# [2025-03-14 19:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 16:12:05 [end_date_ymd] => 2025-03-14 19:12:05 [RateCDR] => 1 ) [2025-03-14 19:12: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-03-14 16:12:05' and `end` < '2025-03-14 19:12: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-03-14 19:12:18] Production.INFO: count ==3345 [2025-03-14 19:12:19] Production.ERROR: pbx CDR StartTime 2025-03-14 16:12:05 - End Time 2025-03-14 19:12:05 [2025-03-14 19:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680895', 'tblTempUsageDetail_20' ) start [2025-03-14 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680895', 'tblTempUsageDetail_20' ) end [2025-03-14 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680895', 'tblTempVendorCDR_20' ) start [2025-03-14 19:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680895', 'tblTempVendorCDR_20' ) end [2025-03-14 19:12:19] Production.INFO: ProcessCDR(1,14680895,1,1,2) [2025-03-14 19:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:12:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680895,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:12:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:12:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680895,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680895', 'tblTempUsageDetail_20' ) start [2025-03-14 19:12:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680895', 'tblTempUsageDetail_20' ) end [2025-03-14 19:12:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 19:12:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 19:12:24] Production.INFO: ==13264== Releasing lock... [2025-03-14 19:12:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 19:12:24] Production.INFO: 53.5 MB #Memory Used# [2025-03-14 19:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 16:13:05 [end_date_ymd] => 2025-03-14 19:13:05 [RateCDR] => 1 ) [2025-03-14 19:13: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-03-14 16:13:05' and `end` < '2025-03-14 19:13: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-03-14 19:13:18] Production.INFO: count ==3338 [2025-03-14 19:13:19] Production.ERROR: pbx CDR StartTime 2025-03-14 16:13:05 - End Time 2025-03-14 19:13:05 [2025-03-14 19:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680900', 'tblTempUsageDetail_20' ) start [2025-03-14 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680900', 'tblTempUsageDetail_20' ) end [2025-03-14 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680900', 'tblTempVendorCDR_20' ) start [2025-03-14 19:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680900', 'tblTempVendorCDR_20' ) end [2025-03-14 19:13:19] Production.INFO: ProcessCDR(1,14680900,1,1,2) [2025-03-14 19:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:13:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680900,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:13:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:13:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680900,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680900', 'tblTempUsageDetail_20' ) start [2025-03-14 19:13:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680900', 'tblTempUsageDetail_20' ) end [2025-03-14 19:13:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 19:13:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 19:13:24] Production.INFO: ==13348== Releasing lock... [2025-03-14 19:13:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 19:13:24] Production.INFO: 53.75 MB #Memory Used# [2025-03-14 19:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 16:14:05 [end_date_ymd] => 2025-03-14 19:14:05 [RateCDR] => 1 ) [2025-03-14 19:14: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-03-14 16:14:05' and `end` < '2025-03-14 19:14: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-03-14 19:14:18] Production.INFO: count ==3314 [2025-03-14 19:14:19] Production.ERROR: pbx CDR StartTime 2025-03-14 16:14:05 - End Time 2025-03-14 19:14:05 [2025-03-14 19:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680905', 'tblTempUsageDetail_20' ) start [2025-03-14 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680905', 'tblTempUsageDetail_20' ) end [2025-03-14 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680905', 'tblTempVendorCDR_20' ) start [2025-03-14 19:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680905', 'tblTempVendorCDR_20' ) end [2025-03-14 19:14:19] Production.INFO: ProcessCDR(1,14680905,1,1,2) [2025-03-14 19:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680905,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680905,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680905', 'tblTempUsageDetail_20' ) start [2025-03-14 19:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680905', 'tblTempUsageDetail_20' ) end [2025-03-14 19:14:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 19:14:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 19:14:24] Production.INFO: ==13427== Releasing lock... [2025-03-14 19:14:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 19:14:24] Production.INFO: 53.5 MB #Memory Used# [2025-03-14 19:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 16:15:06 [end_date_ymd] => 2025-03-14 19:15:06 [RateCDR] => 1 ) [2025-03-14 19:15: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-03-14 16:15:06' and `end` < '2025-03-14 19:15: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-03-14 19:15:18] Production.INFO: count ==3304 [2025-03-14 19:15:19] Production.ERROR: pbx CDR StartTime 2025-03-14 16:15:06 - End Time 2025-03-14 19:15:06 [2025-03-14 19:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680910', 'tblTempUsageDetail_20' ) start [2025-03-14 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680910', 'tblTempUsageDetail_20' ) end [2025-03-14 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680910', 'tblTempVendorCDR_20' ) start [2025-03-14 19:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680910', 'tblTempVendorCDR_20' ) end [2025-03-14 19:15:19] Production.INFO: ProcessCDR(1,14680910,1,1,2) [2025-03-14 19:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:15:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:15:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:15:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680910', 'tblTempUsageDetail_20' ) start [2025-03-14 19:15:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680910', 'tblTempUsageDetail_20' ) end [2025-03-14 19:15:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 19:15:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 19:15:23] Production.INFO: ==13596== Releasing lock... [2025-03-14 19:15:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 19:15:23] Production.INFO: 52.75 MB #Memory Used# [2025-03-14 19:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 16:16:05 [end_date_ymd] => 2025-03-14 19:16:05 [RateCDR] => 1 ) [2025-03-14 19:16: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-03-14 16:16:05' and `end` < '2025-03-14 19:16: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-03-14 19:16:17] Production.INFO: count ==3299 [2025-03-14 19:16:18] Production.ERROR: pbx CDR StartTime 2025-03-14 16:16:05 - End Time 2025-03-14 19:16:05 [2025-03-14 19:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 19:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680915', 'tblTempUsageDetail_20' ) start [2025-03-14 19:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680915', 'tblTempUsageDetail_20' ) end [2025-03-14 19:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680915', 'tblTempVendorCDR_20' ) start [2025-03-14 19:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680915', 'tblTempVendorCDR_20' ) end [2025-03-14 19:16:18] Production.INFO: ProcessCDR(1,14680915,1,1,2) [2025-03-14 19:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:16:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680915', 'tblTempUsageDetail_20' ) start [2025-03-14 19:16:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680915', 'tblTempUsageDetail_20' ) end [2025-03-14 19:16:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 19:16:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 19:16:22] Production.INFO: ==13676== Releasing lock... [2025-03-14 19:16:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 19:16:22] Production.INFO: 52.5 MB #Memory Used# [2025-03-14 19:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 16:17:05 [end_date_ymd] => 2025-03-14 19:17:05 [RateCDR] => 1 ) [2025-03-14 19:17: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-03-14 16:17:05' and `end` < '2025-03-14 19:17: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-03-14 19:17:18] Production.INFO: count ==3286 [2025-03-14 19:17:18] Production.ERROR: pbx CDR StartTime 2025-03-14 16:17:05 - End Time 2025-03-14 19:17:05 [2025-03-14 19:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 19:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680920', 'tblTempUsageDetail_20' ) start [2025-03-14 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680920', 'tblTempUsageDetail_20' ) end [2025-03-14 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680920', 'tblTempVendorCDR_20' ) start [2025-03-14 19:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680920', 'tblTempVendorCDR_20' ) end [2025-03-14 19:17:19] Production.INFO: ProcessCDR(1,14680920,1,1,2) [2025-03-14 19:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:17:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:17:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:17:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680920', 'tblTempUsageDetail_20' ) start [2025-03-14 19:17:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680920', 'tblTempUsageDetail_20' ) end [2025-03-14 19:17:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 19:17:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 19:17:22] Production.INFO: ==13760== Releasing lock... [2025-03-14 19:17:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 19:17:22] Production.INFO: 53.5 MB #Memory Used# [2025-03-14 19:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 16:18:05 [end_date_ymd] => 2025-03-14 19:18:05 [RateCDR] => 1 ) [2025-03-14 19:18: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-03-14 16:18:05' and `end` < '2025-03-14 19:18: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-03-14 19:18:17] Production.INFO: count ==3275 [2025-03-14 19:18:18] Production.ERROR: pbx CDR StartTime 2025-03-14 16:18:05 - End Time 2025-03-14 19:18:05 [2025-03-14 19:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 19:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680925', 'tblTempUsageDetail_20' ) start [2025-03-14 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680925', 'tblTempUsageDetail_20' ) end [2025-03-14 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680925', 'tblTempVendorCDR_20' ) start [2025-03-14 19:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680925', 'tblTempVendorCDR_20' ) end [2025-03-14 19:18:19] Production.INFO: ProcessCDR(1,14680925,1,1,2) [2025-03-14 19:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:18:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680925', 'tblTempUsageDetail_20' ) start [2025-03-14 19:18:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680925', 'tblTempUsageDetail_20' ) end [2025-03-14 19:18:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 19:18:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 19:18:22] Production.INFO: ==13837== Releasing lock... [2025-03-14 19:18:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 19:18:22] Production.INFO: 53 MB #Memory Used# [2025-03-14 19:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 16:19:05 [end_date_ymd] => 2025-03-14 19:19:05 [RateCDR] => 1 ) [2025-03-14 19:19: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-03-14 16:19:05' and `end` < '2025-03-14 19:19: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-03-14 19:19:18] Production.INFO: count ==3251 [2025-03-14 19:19:19] Production.ERROR: pbx CDR StartTime 2025-03-14 16:19:05 - End Time 2025-03-14 19:19:05 [2025-03-14 19:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680930', 'tblTempUsageDetail_20' ) start [2025-03-14 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680930', 'tblTempUsageDetail_20' ) end [2025-03-14 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680930', 'tblTempVendorCDR_20' ) start [2025-03-14 19:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680930', 'tblTempVendorCDR_20' ) end [2025-03-14 19:19:19] Production.INFO: ProcessCDR(1,14680930,1,1,2) [2025-03-14 19:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680930', 'tblTempUsageDetail_20' ) start [2025-03-14 19:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680930', 'tblTempUsageDetail_20' ) end [2025-03-14 19:19:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 19:19:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 19:19:24] Production.INFO: ==13917== Releasing lock... [2025-03-14 19:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 19:19:24] Production.INFO: 52.5 MB #Memory Used# [2025-03-14 19:20:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 16:20:05 [end_date_ymd] => 2025-03-14 19:20:05 [RateCDR] => 1 ) [2025-03-14 19:20: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-03-14 16:20:05' and `end` < '2025-03-14 19:20: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-03-14 19:20:18] Production.INFO: count ==3258 [2025-03-14 19:20:19] Production.ERROR: pbx CDR StartTime 2025-03-14 16:20:05 - End Time 2025-03-14 19:20:05 [2025-03-14 19:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680936', 'tblTempUsageDetail_20' ) start [2025-03-14 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680936', 'tblTempUsageDetail_20' ) end [2025-03-14 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680936', 'tblTempVendorCDR_20' ) start [2025-03-14 19:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680936', 'tblTempVendorCDR_20' ) end [2025-03-14 19:20:19] Production.INFO: ProcessCDR(1,14680936,1,1,2) [2025-03-14 19:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680936,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680936,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680936', 'tblTempUsageDetail_20' ) start [2025-03-14 19:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680936', 'tblTempUsageDetail_20' ) end [2025-03-14 19:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 19:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 19:20:22] Production.INFO: ==13997== Releasing lock... [2025-03-14 19:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 19:20:22] Production.INFO: 52.25 MB #Memory Used# [2025-03-14 19:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 16:21:05 [end_date_ymd] => 2025-03-14 19:21:05 [RateCDR] => 1 ) [2025-03-14 19:21: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-03-14 16:21:05' and `end` < '2025-03-14 19:21: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-03-14 19:21:18] Production.INFO: count ==3235 [2025-03-14 19:21:19] Production.ERROR: pbx CDR StartTime 2025-03-14 16:21:05 - End Time 2025-03-14 19:21:05 [2025-03-14 19:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680941', 'tblTempUsageDetail_20' ) start [2025-03-14 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680941', 'tblTempUsageDetail_20' ) end [2025-03-14 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680941', 'tblTempVendorCDR_20' ) start [2025-03-14 19:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680941', 'tblTempVendorCDR_20' ) end [2025-03-14 19:21:19] Production.INFO: ProcessCDR(1,14680941,1,1,2) [2025-03-14 19:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:21:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680941,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:21:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680941,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680941', 'tblTempUsageDetail_20' ) start [2025-03-14 19:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680941', 'tblTempUsageDetail_20' ) end [2025-03-14 19:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 19:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 19:21:22] Production.INFO: ==14075== Releasing lock... [2025-03-14 19:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 19:21:22] Production.INFO: 53 MB #Memory Used# [2025-03-14 19:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 16:22:06 [end_date_ymd] => 2025-03-14 19:22:06 [RateCDR] => 1 ) [2025-03-14 19:22: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-03-14 16:22:06' and `end` < '2025-03-14 19:22: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-03-14 19:22:18] Production.INFO: count ==3222 [2025-03-14 19:22:19] Production.ERROR: pbx CDR StartTime 2025-03-14 16:22:06 - End Time 2025-03-14 19:22:06 [2025-03-14 19:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680946', 'tblTempUsageDetail_20' ) start [2025-03-14 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680946', 'tblTempUsageDetail_20' ) end [2025-03-14 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680946', 'tblTempVendorCDR_20' ) start [2025-03-14 19:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680946', 'tblTempVendorCDR_20' ) end [2025-03-14 19:22:19] Production.INFO: ProcessCDR(1,14680946,1,1,2) [2025-03-14 19:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680946,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680946,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680946', 'tblTempUsageDetail_20' ) start [2025-03-14 19:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680946', 'tblTempUsageDetail_20' ) end [2025-03-14 19:22:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 19:22:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 19:22:23] Production.INFO: ==14156== Releasing lock... [2025-03-14 19:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 19:22:23] Production.INFO: 52.25 MB #Memory Used# [2025-03-14 19:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 16:23:05 [end_date_ymd] => 2025-03-14 19:23:05 [RateCDR] => 1 ) [2025-03-14 19:23: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-03-14 16:23:05' and `end` < '2025-03-14 19:23: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-03-14 19:23:17] Production.INFO: count ==3224 [2025-03-14 19:23:18] Production.ERROR: pbx CDR StartTime 2025-03-14 16:23:05 - End Time 2025-03-14 19:23:05 [2025-03-14 19:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 19:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680951', 'tblTempUsageDetail_20' ) start [2025-03-14 19:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680951', 'tblTempUsageDetail_20' ) end [2025-03-14 19:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680951', 'tblTempVendorCDR_20' ) start [2025-03-14 19:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680951', 'tblTempVendorCDR_20' ) end [2025-03-14 19:23:18] Production.INFO: ProcessCDR(1,14680951,1,1,2) [2025-03-14 19:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680951,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680951,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680951', 'tblTempUsageDetail_20' ) start [2025-03-14 19:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680951', 'tblTempUsageDetail_20' ) end [2025-03-14 19:23:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 19:23:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 19:23:23] Production.INFO: ==14232== Releasing lock... [2025-03-14 19:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 19:23:23] Production.INFO: 52.5 MB #Memory Used# [2025-03-14 19:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 16:24:06 [end_date_ymd] => 2025-03-14 19:24:06 [RateCDR] => 1 ) [2025-03-14 19:24: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-03-14 16:24:06' and `end` < '2025-03-14 19:24: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-03-14 19:24:19] Production.INFO: count ==3207 [2025-03-14 19:24:19] Production.ERROR: pbx CDR StartTime 2025-03-14 16:24:06 - End Time 2025-03-14 19:24:06 [2025-03-14 19:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680956', 'tblTempUsageDetail_20' ) start [2025-03-14 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680956', 'tblTempUsageDetail_20' ) end [2025-03-14 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680956', 'tblTempVendorCDR_20' ) start [2025-03-14 19:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680956', 'tblTempVendorCDR_20' ) end [2025-03-14 19:24:19] Production.INFO: ProcessCDR(1,14680956,1,1,2) [2025-03-14 19:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680956', 'tblTempUsageDetail_20' ) start [2025-03-14 19:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680956', 'tblTempUsageDetail_20' ) end [2025-03-14 19:24:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 19:24:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 19:24:25] Production.INFO: ==14311== Releasing lock... [2025-03-14 19:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 19:24:25] Production.INFO: 52.25 MB #Memory Used# [2025-03-14 19:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 16:25:05 [end_date_ymd] => 2025-03-14 19:25:05 [RateCDR] => 1 ) [2025-03-14 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-03-14 16:25:05' and `end` < '2025-03-14 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-03-14 19:25:18] Production.INFO: count ==3200 [2025-03-14 19:25:19] Production.ERROR: pbx CDR StartTime 2025-03-14 16:25:05 - End Time 2025-03-14 19:25:05 [2025-03-14 19:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680961', 'tblTempUsageDetail_20' ) start [2025-03-14 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680961', 'tblTempUsageDetail_20' ) end [2025-03-14 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680961', 'tblTempVendorCDR_20' ) start [2025-03-14 19:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680961', 'tblTempVendorCDR_20' ) end [2025-03-14 19:25:19] Production.INFO: ProcessCDR(1,14680961,1,1,2) [2025-03-14 19:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680961', 'tblTempUsageDetail_20' ) start [2025-03-14 19:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680961', 'tblTempUsageDetail_20' ) end [2025-03-14 19:25:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 19:25:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 19:25:22] Production.INFO: ==14407== Releasing lock... [2025-03-14 19:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 19:25:22] Production.INFO: 52 MB #Memory Used# [2025-03-14 19:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 16:26:05 [end_date_ymd] => 2025-03-14 19:26:05 [RateCDR] => 1 ) [2025-03-14 19:26: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-03-14 16:26:05' and `end` < '2025-03-14 19:26: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-03-14 19:26:18] Production.INFO: count ==3189 [2025-03-14 19:26:19] Production.ERROR: pbx CDR StartTime 2025-03-14 16:26:05 - End Time 2025-03-14 19:26:05 [2025-03-14 19:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680966', 'tblTempUsageDetail_20' ) start [2025-03-14 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680966', 'tblTempUsageDetail_20' ) end [2025-03-14 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680966', 'tblTempVendorCDR_20' ) start [2025-03-14 19:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680966', 'tblTempVendorCDR_20' ) end [2025-03-14 19:26:19] Production.INFO: ProcessCDR(1,14680966,1,1,2) [2025-03-14 19:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680966', 'tblTempUsageDetail_20' ) start [2025-03-14 19:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680966', 'tblTempUsageDetail_20' ) end [2025-03-14 19:26:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 19:26:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 19:26:23] Production.INFO: ==14535== Releasing lock... [2025-03-14 19:26:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 19:26:23] Production.INFO: 52.75 MB #Memory Used# [2025-03-14 19:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 16:27:05 [end_date_ymd] => 2025-03-14 19:27:05 [RateCDR] => 1 ) [2025-03-14 19:27: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-03-14 16:27:05' and `end` < '2025-03-14 19:27: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-03-14 19:27:17] Production.INFO: count ==3174 [2025-03-14 19:27:18] Production.ERROR: pbx CDR StartTime 2025-03-14 16:27:05 - End Time 2025-03-14 19:27:05 [2025-03-14 19:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680971', 'tblTempUsageDetail_20' ) start [2025-03-14 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680971', 'tblTempUsageDetail_20' ) end [2025-03-14 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680971', 'tblTempVendorCDR_20' ) start [2025-03-14 19:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680971', 'tblTempVendorCDR_20' ) end [2025-03-14 19:27:18] Production.INFO: ProcessCDR(1,14680971,1,1,2) [2025-03-14 19:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:27:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680971', 'tblTempUsageDetail_20' ) start [2025-03-14 19:27:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680971', 'tblTempUsageDetail_20' ) end [2025-03-14 19:27:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 19:27:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 19:27:23] Production.INFO: ==14626== Releasing lock... [2025-03-14 19:27:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 19:27:23] Production.INFO: 52 MB #Memory Used# [2025-03-14 19:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 16:28:05 [end_date_ymd] => 2025-03-14 19:28:05 [RateCDR] => 1 ) [2025-03-14 19:28: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-03-14 16:28:05' and `end` < '2025-03-14 19:28: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-03-14 19:28:18] Production.INFO: count ==3161 [2025-03-14 19:28:19] Production.ERROR: pbx CDR StartTime 2025-03-14 16:28:05 - End Time 2025-03-14 19:28:05 [2025-03-14 19:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680976', 'tblTempUsageDetail_20' ) start [2025-03-14 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680976', 'tblTempUsageDetail_20' ) end [2025-03-14 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680976', 'tblTempVendorCDR_20' ) start [2025-03-14 19:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680976', 'tblTempVendorCDR_20' ) end [2025-03-14 19:28:19] Production.INFO: ProcessCDR(1,14680976,1,1,2) [2025-03-14 19:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680976', 'tblTempUsageDetail_20' ) start [2025-03-14 19:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680976', 'tblTempUsageDetail_20' ) end [2025-03-14 19:28:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 19:28:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 19:28:24] Production.INFO: ==14728== Releasing lock... [2025-03-14 19:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 19:28:24] Production.INFO: 51.75 MB #Memory Used# [2025-03-14 19:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 16:29:05 [end_date_ymd] => 2025-03-14 19:29:05 [RateCDR] => 1 ) [2025-03-14 19:29: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-03-14 16:29:05' and `end` < '2025-03-14 19:29: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-03-14 19:29:18] Production.INFO: count ==3148 [2025-03-14 19:29:19] Production.ERROR: pbx CDR StartTime 2025-03-14 16:29:05 - End Time 2025-03-14 19:29:05 [2025-03-14 19:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680981', 'tblTempUsageDetail_20' ) start [2025-03-14 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680981', 'tblTempUsageDetail_20' ) end [2025-03-14 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680981', 'tblTempVendorCDR_20' ) start [2025-03-14 19:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680981', 'tblTempVendorCDR_20' ) end [2025-03-14 19:29:19] Production.INFO: ProcessCDR(1,14680981,1,1,2) [2025-03-14 19:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680981', 'tblTempUsageDetail_20' ) start [2025-03-14 19:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680981', 'tblTempUsageDetail_20' ) end [2025-03-14 19:29:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 19:29:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 19:29:24] Production.INFO: ==14822== Releasing lock... [2025-03-14 19:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 19:29:24] Production.INFO: 51.5 MB #Memory Used# [2025-03-14 19:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 16:30:06 [end_date_ymd] => 2025-03-14 19:30:06 [RateCDR] => 1 ) [2025-03-14 19:30: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-03-14 16:30:06' and `end` < '2025-03-14 19:30: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-03-14 19:30:19] Production.INFO: count ==3143 [2025-03-14 19:30:20] Production.ERROR: pbx CDR StartTime 2025-03-14 16:30:06 - End Time 2025-03-14 19:30:06 [2025-03-14 19:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680987', 'tblTempUsageDetail_20' ) start [2025-03-14 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680987', 'tblTempUsageDetail_20' ) end [2025-03-14 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680987', 'tblTempVendorCDR_20' ) start [2025-03-14 19:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680987', 'tblTempVendorCDR_20' ) end [2025-03-14 19:30:20] Production.INFO: ProcessCDR(1,14680987,1,1,2) [2025-03-14 19:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:30:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680987,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:30:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:30:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680987,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680987', 'tblTempUsageDetail_20' ) start [2025-03-14 19:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680987', 'tblTempUsageDetail_20' ) end [2025-03-14 19:30:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 19:30:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 19:30:23] Production.INFO: ==14929== Releasing lock... [2025-03-14 19:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 19:30:23] Production.INFO: 51.5 MB #Memory Used# [2025-03-14 19:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 16:31:05 [end_date_ymd] => 2025-03-14 19:31:05 [RateCDR] => 1 ) [2025-03-14 19:31: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-03-14 16:31:05' and `end` < '2025-03-14 19:31: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-03-14 19:31:17] Production.INFO: count ==3116 [2025-03-14 19:31:18] Production.ERROR: pbx CDR StartTime 2025-03-14 16:31:05 - End Time 2025-03-14 19:31:05 [2025-03-14 19:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680992', 'tblTempUsageDetail_20' ) start [2025-03-14 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680992', 'tblTempUsageDetail_20' ) end [2025-03-14 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680992', 'tblTempVendorCDR_20' ) start [2025-03-14 19:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680992', 'tblTempVendorCDR_20' ) end [2025-03-14 19:31:18] Production.INFO: ProcessCDR(1,14680992,1,1,2) [2025-03-14 19:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680992,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680992,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680992', 'tblTempUsageDetail_20' ) start [2025-03-14 19:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680992', 'tblTempUsageDetail_20' ) end [2025-03-14 19:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 19:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 19:31:22] Production.INFO: ==15023== Releasing lock... [2025-03-14 19:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 19:31:22] Production.INFO: 51.75 MB #Memory Used# [2025-03-14 19:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 16:32:06 [end_date_ymd] => 2025-03-14 19:32:06 [RateCDR] => 1 ) [2025-03-14 19:32: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-03-14 16:32:06' and `end` < '2025-03-14 19:32: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-03-14 19:32:18] Production.INFO: count ==3090 [2025-03-14 19:32:19] Production.ERROR: pbx CDR StartTime 2025-03-14 16:32:06 - End Time 2025-03-14 19:32:06 [2025-03-14 19:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680997', 'tblTempUsageDetail_20' ) start [2025-03-14 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14680997', 'tblTempUsageDetail_20' ) end [2025-03-14 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680997', 'tblTempVendorCDR_20' ) start [2025-03-14 19:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14680997', 'tblTempVendorCDR_20' ) end [2025-03-14 19:32:19] Production.INFO: ProcessCDR(1,14680997,1,1,2) [2025-03-14 19:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14680997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14680997,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14680997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14680997,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680997', 'tblTempUsageDetail_20' ) start [2025-03-14 19:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14680997', 'tblTempUsageDetail_20' ) end [2025-03-14 19:32:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 19:32:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 19:32:23] Production.INFO: ==15118== Releasing lock... [2025-03-14 19:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 19:32:23] Production.INFO: 51 MB #Memory Used# [2025-03-14 19:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 16:33:05 [end_date_ymd] => 2025-03-14 19:33:05 [RateCDR] => 1 ) [2025-03-14 19:33: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-03-14 16:33:05' and `end` < '2025-03-14 19:33: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-03-14 19:33:18] Production.INFO: count ==3090 [2025-03-14 19:33:18] Production.ERROR: pbx CDR StartTime 2025-03-14 16:33:05 - End Time 2025-03-14 19:33:05 [2025-03-14 19:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681002', 'tblTempUsageDetail_20' ) start [2025-03-14 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681002', 'tblTempUsageDetail_20' ) end [2025-03-14 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681002', 'tblTempVendorCDR_20' ) start [2025-03-14 19:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681002', 'tblTempVendorCDR_20' ) end [2025-03-14 19:33:18] Production.INFO: ProcessCDR(1,14681002,1,1,2) [2025-03-14 19:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:33:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681002,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:33:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681002,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681002', 'tblTempUsageDetail_20' ) start [2025-03-14 19:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681002', 'tblTempUsageDetail_20' ) end [2025-03-14 19:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 19:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 19:33:22] Production.INFO: ==15213== Releasing lock... [2025-03-14 19:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 19:33:22] Production.INFO: 52 MB #Memory Used# [2025-03-14 19:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 16:34:05 [end_date_ymd] => 2025-03-14 19:34:05 [RateCDR] => 1 ) [2025-03-14 19:34: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-03-14 16:34:05' and `end` < '2025-03-14 19:34: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-03-14 19:34:18] Production.INFO: count ==3051 [2025-03-14 19:34:19] Production.ERROR: pbx CDR StartTime 2025-03-14 16:34:05 - End Time 2025-03-14 19:34:05 [2025-03-14 19:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681007', 'tblTempUsageDetail_20' ) start [2025-03-14 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681007', 'tblTempUsageDetail_20' ) end [2025-03-14 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681007', 'tblTempVendorCDR_20' ) start [2025-03-14 19:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681007', 'tblTempVendorCDR_20' ) end [2025-03-14 19:34:19] Production.INFO: ProcessCDR(1,14681007,1,1,2) [2025-03-14 19:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681007,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:34:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681007,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681007', 'tblTempUsageDetail_20' ) start [2025-03-14 19:34:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681007', 'tblTempUsageDetail_20' ) end [2025-03-14 19:34:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 19:34:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 19:34:22] Production.INFO: ==15304== Releasing lock... [2025-03-14 19:34:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 19:34:22] Production.INFO: 50.75 MB #Memory Used# [2025-03-14 19:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 16:35:05 [end_date_ymd] => 2025-03-14 19:35:05 [RateCDR] => 1 ) [2025-03-14 19:35: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-03-14 16:35:05' and `end` < '2025-03-14 19:35: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-03-14 19:35:17] Production.INFO: count ==3036 [2025-03-14 19:35:18] Production.ERROR: pbx CDR StartTime 2025-03-14 16:35:05 - End Time 2025-03-14 19:35:05 [2025-03-14 19:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681012', 'tblTempUsageDetail_20' ) start [2025-03-14 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681012', 'tblTempUsageDetail_20' ) end [2025-03-14 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681012', 'tblTempVendorCDR_20' ) start [2025-03-14 19:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681012', 'tblTempVendorCDR_20' ) end [2025-03-14 19:35:18] Production.INFO: ProcessCDR(1,14681012,1,1,2) [2025-03-14 19:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681012', 'tblTempUsageDetail_20' ) start [2025-03-14 19:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681012', 'tblTempUsageDetail_20' ) end [2025-03-14 19:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 19:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 19:35:22] Production.INFO: ==15399== Releasing lock... [2025-03-14 19:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 19:35:22] Production.INFO: 50.5 MB #Memory Used# [2025-03-14 19:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 16:36:05 [end_date_ymd] => 2025-03-14 19:36:05 [RateCDR] => 1 ) [2025-03-14 19:36: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-03-14 16:36:05' and `end` < '2025-03-14 19:36: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-03-14 19:36:18] Production.INFO: count ==3033 [2025-03-14 19:36:19] Production.ERROR: pbx CDR StartTime 2025-03-14 16:36:05 - End Time 2025-03-14 19:36:05 [2025-03-14 19:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681017', 'tblTempUsageDetail_20' ) start [2025-03-14 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681017', 'tblTempUsageDetail_20' ) end [2025-03-14 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681017', 'tblTempVendorCDR_20' ) start [2025-03-14 19:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681017', 'tblTempVendorCDR_20' ) end [2025-03-14 19:36:19] Production.INFO: ProcessCDR(1,14681017,1,1,2) [2025-03-14 19:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681017', 'tblTempUsageDetail_20' ) start [2025-03-14 19:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681017', 'tblTempUsageDetail_20' ) end [2025-03-14 19:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 19:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 19:36:22] Production.INFO: ==15470== Releasing lock... [2025-03-14 19:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 19:36:22] Production.INFO: 50.5 MB #Memory Used# [2025-03-14 19:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 16:37:06 [end_date_ymd] => 2025-03-14 19:37:06 [RateCDR] => 1 ) [2025-03-14 19:37: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-03-14 16:37:06' and `end` < '2025-03-14 19:37: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-03-14 19:37:18] Production.INFO: count ==3028 [2025-03-14 19:37:19] Production.ERROR: pbx CDR StartTime 2025-03-14 16:37:06 - End Time 2025-03-14 19:37:06 [2025-03-14 19:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681022', 'tblTempUsageDetail_20' ) start [2025-03-14 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681022', 'tblTempUsageDetail_20' ) end [2025-03-14 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681022', 'tblTempVendorCDR_20' ) start [2025-03-14 19:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681022', 'tblTempVendorCDR_20' ) end [2025-03-14 19:37:19] Production.INFO: ProcessCDR(1,14681022,1,1,2) [2025-03-14 19:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:37:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:37:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681022', 'tblTempUsageDetail_20' ) start [2025-03-14 19:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681022', 'tblTempUsageDetail_20' ) end [2025-03-14 19:37:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 19:37:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 19:37:24] Production.INFO: ==15550== Releasing lock... [2025-03-14 19:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 19:37:24] Production.INFO: 50.5 MB #Memory Used# [2025-03-14 19:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 16:38:05 [end_date_ymd] => 2025-03-14 19:38:05 [RateCDR] => 1 ) [2025-03-14 19:38: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-03-14 16:38:05' and `end` < '2025-03-14 19:38: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-03-14 19:38:18] Production.INFO: count ==3014 [2025-03-14 19:38:19] Production.ERROR: pbx CDR StartTime 2025-03-14 16:38:05 - End Time 2025-03-14 19:38:05 [2025-03-14 19:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681027', 'tblTempUsageDetail_20' ) start [2025-03-14 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681027', 'tblTempUsageDetail_20' ) end [2025-03-14 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681027', 'tblTempVendorCDR_20' ) start [2025-03-14 19:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681027', 'tblTempVendorCDR_20' ) end [2025-03-14 19:38:19] Production.INFO: ProcessCDR(1,14681027,1,1,2) [2025-03-14 19:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681027', 'tblTempUsageDetail_20' ) start [2025-03-14 19:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681027', 'tblTempUsageDetail_20' ) end [2025-03-14 19:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 19:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 19:38:22] Production.INFO: ==15630== Releasing lock... [2025-03-14 19:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 19:38:22] Production.INFO: 50.5 MB #Memory Used# [2025-03-14 19:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 16:39:05 [end_date_ymd] => 2025-03-14 19:39:05 [RateCDR] => 1 ) [2025-03-14 19:39: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-03-14 16:39:05' and `end` < '2025-03-14 19:39: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-03-14 19:39:18] Production.INFO: count ==2999 [2025-03-14 19:39:19] Production.ERROR: pbx CDR StartTime 2025-03-14 16:39:05 - End Time 2025-03-14 19:39:05 [2025-03-14 19:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681032', 'tblTempUsageDetail_20' ) start [2025-03-14 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681032', 'tblTempUsageDetail_20' ) end [2025-03-14 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681032', 'tblTempVendorCDR_20' ) start [2025-03-14 19:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681032', 'tblTempVendorCDR_20' ) end [2025-03-14 19:39:19] Production.INFO: ProcessCDR(1,14681032,1,1,2) [2025-03-14 19:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:39:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:39:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:39:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:39:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681032', 'tblTempUsageDetail_20' ) start [2025-03-14 19:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681032', 'tblTempUsageDetail_20' ) end [2025-03-14 19:39:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 19:39:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 19:39:24] Production.INFO: ==15709== Releasing lock... [2025-03-14 19:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 19:39:24] Production.INFO: 50.75 MB #Memory Used# [2025-03-14 19:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 16:40:06 [end_date_ymd] => 2025-03-14 19:40:06 [RateCDR] => 1 ) [2025-03-14 19:40: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-03-14 16:40:06' and `end` < '2025-03-14 19:40: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-03-14 19:40:19] Production.INFO: count ==2976 [2025-03-14 19:40:19] Production.ERROR: pbx CDR StartTime 2025-03-14 16:40:06 - End Time 2025-03-14 19:40:06 [2025-03-14 19:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681038', 'tblTempUsageDetail_20' ) start [2025-03-14 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681038', 'tblTempUsageDetail_20' ) end [2025-03-14 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681038', 'tblTempVendorCDR_20' ) start [2025-03-14 19:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681038', 'tblTempVendorCDR_20' ) end [2025-03-14 19:40:19] Production.INFO: ProcessCDR(1,14681038,1,1,2) [2025-03-14 19:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:40:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681038,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:40:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681038,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681038', 'tblTempUsageDetail_20' ) start [2025-03-14 19:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681038', 'tblTempUsageDetail_20' ) end [2025-03-14 19:40:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 19:40:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 19:40:24] Production.INFO: ==15789== Releasing lock... [2025-03-14 19:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 19:40:24] Production.INFO: 50 MB #Memory Used# [2025-03-14 19:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 16:41:05 [end_date_ymd] => 2025-03-14 19:41:05 [RateCDR] => 1 ) [2025-03-14 19:41: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-03-14 16:41:05' and `end` < '2025-03-14 19:41: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-03-14 19:41:18] Production.INFO: count ==2868 [2025-03-14 19:41:19] Production.ERROR: pbx CDR StartTime 2025-03-14 16:41:05 - End Time 2025-03-14 19:41:05 [2025-03-14 19:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681043', 'tblTempUsageDetail_20' ) start [2025-03-14 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681043', 'tblTempUsageDetail_20' ) end [2025-03-14 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681043', 'tblTempVendorCDR_20' ) start [2025-03-14 19:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681043', 'tblTempVendorCDR_20' ) end [2025-03-14 19:41:19] Production.INFO: ProcessCDR(1,14681043,1,1,2) [2025-03-14 19:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681043,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681043,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681043', 'tblTempUsageDetail_20' ) start [2025-03-14 19:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681043', 'tblTempUsageDetail_20' ) end [2025-03-14 19:41:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 19:41:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 19:41:24] Production.INFO: ==15895== Releasing lock... [2025-03-14 19:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 19:41:24] Production.INFO: 49.5 MB #Memory Used# [2025-03-14 19:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 16:42:05 [end_date_ymd] => 2025-03-14 19:42:05 [RateCDR] => 1 ) [2025-03-14 19:42: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-03-14 16:42:05' and `end` < '2025-03-14 19:42: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-03-14 19:42:18] Production.INFO: count ==2851 [2025-03-14 19:42:18] Production.ERROR: pbx CDR StartTime 2025-03-14 16:42:05 - End Time 2025-03-14 19:42:05 [2025-03-14 19:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681048', 'tblTempUsageDetail_20' ) start [2025-03-14 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681048', 'tblTempUsageDetail_20' ) end [2025-03-14 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681048', 'tblTempVendorCDR_20' ) start [2025-03-14 19:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681048', 'tblTempVendorCDR_20' ) end [2025-03-14 19:42:18] Production.INFO: ProcessCDR(1,14681048,1,1,2) [2025-03-14 19:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681048,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681048,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681048', 'tblTempUsageDetail_20' ) start [2025-03-14 19:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681048', 'tblTempUsageDetail_20' ) end [2025-03-14 19:42:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 19:42:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 19:42:23] Production.INFO: ==15994== Releasing lock... [2025-03-14 19:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 19:42:23] Production.INFO: 49.5 MB #Memory Used# [2025-03-14 19:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 16:43:05 [end_date_ymd] => 2025-03-14 19:43:05 [RateCDR] => 1 ) [2025-03-14 19:43: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-03-14 16:43:05' and `end` < '2025-03-14 19:43: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-03-14 19:43:18] Production.INFO: count ==2833 [2025-03-14 19:43:18] Production.ERROR: pbx CDR StartTime 2025-03-14 16:43:05 - End Time 2025-03-14 19:43:05 [2025-03-14 19:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681053', 'tblTempUsageDetail_20' ) start [2025-03-14 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681053', 'tblTempUsageDetail_20' ) end [2025-03-14 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681053', 'tblTempVendorCDR_20' ) start [2025-03-14 19:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681053', 'tblTempVendorCDR_20' ) end [2025-03-14 19:43:18] Production.INFO: ProcessCDR(1,14681053,1,1,2) [2025-03-14 19:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681053,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681053,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681053', 'tblTempUsageDetail_20' ) start [2025-03-14 19:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681053', 'tblTempUsageDetail_20' ) end [2025-03-14 19:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 19:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 19:43:22] Production.INFO: ==16067== Releasing lock... [2025-03-14 19:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 19:43:22] Production.INFO: 49.25 MB #Memory Used# [2025-03-14 19:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 16:44:05 [end_date_ymd] => 2025-03-14 19:44:05 [RateCDR] => 1 ) [2025-03-14 19:44: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-03-14 16:44:05' and `end` < '2025-03-14 19:44: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-03-14 19:44:18] Production.INFO: count ==2830 [2025-03-14 19:44:18] Production.ERROR: pbx CDR StartTime 2025-03-14 16:44:05 - End Time 2025-03-14 19:44:05 [2025-03-14 19:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681058', 'tblTempUsageDetail_20' ) start [2025-03-14 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681058', 'tblTempUsageDetail_20' ) end [2025-03-14 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681058', 'tblTempVendorCDR_20' ) start [2025-03-14 19:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681058', 'tblTempVendorCDR_20' ) end [2025-03-14 19:44:18] Production.INFO: ProcessCDR(1,14681058,1,1,2) [2025-03-14 19:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681058,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:44:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681058,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681058', 'tblTempUsageDetail_20' ) start [2025-03-14 19:44:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681058', 'tblTempUsageDetail_20' ) end [2025-03-14 19:44:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 19:44:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 19:44:23] Production.INFO: ==16156== Releasing lock... [2025-03-14 19:44:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 19:44:23] Production.INFO: 49.25 MB #Memory Used# [2025-03-14 19:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 16:45:05 [end_date_ymd] => 2025-03-14 19:45:05 [RateCDR] => 1 ) [2025-03-14 19:45: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-03-14 16:45:05' and `end` < '2025-03-14 19:45: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-03-14 19:45:18] Production.INFO: count ==2807 [2025-03-14 19:45:19] Production.ERROR: pbx CDR StartTime 2025-03-14 16:45:05 - End Time 2025-03-14 19:45:05 [2025-03-14 19:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681063', 'tblTempUsageDetail_20' ) start [2025-03-14 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681063', 'tblTempUsageDetail_20' ) end [2025-03-14 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681063', 'tblTempVendorCDR_20' ) start [2025-03-14 19:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681063', 'tblTempVendorCDR_20' ) end [2025-03-14 19:45:19] Production.INFO: ProcessCDR(1,14681063,1,1,2) [2025-03-14 19:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681063', 'tblTempUsageDetail_20' ) start [2025-03-14 19:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681063', 'tblTempUsageDetail_20' ) end [2025-03-14 19:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 19:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 19:45:22] Production.INFO: ==16243== Releasing lock... [2025-03-14 19:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 19:45:22] Production.INFO: 49.25 MB #Memory Used# [2025-03-14 19:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 16:46:05 [end_date_ymd] => 2025-03-14 19:46:05 [RateCDR] => 1 ) [2025-03-14 19:46: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-03-14 16:46:05' and `end` < '2025-03-14 19:46: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-03-14 19:46:17] Production.INFO: count ==2796 [2025-03-14 19:46:18] Production.ERROR: pbx CDR StartTime 2025-03-14 16:46:05 - End Time 2025-03-14 19:46:05 [2025-03-14 19:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681068', 'tblTempUsageDetail_20' ) start [2025-03-14 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681068', 'tblTempUsageDetail_20' ) end [2025-03-14 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681068', 'tblTempVendorCDR_20' ) start [2025-03-14 19:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681068', 'tblTempVendorCDR_20' ) end [2025-03-14 19:46:18] Production.INFO: ProcessCDR(1,14681068,1,1,2) [2025-03-14 19:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:46:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681068', 'tblTempUsageDetail_20' ) start [2025-03-14 19:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681068', 'tblTempUsageDetail_20' ) end [2025-03-14 19:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 19:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 19:46:22] Production.INFO: ==16321== Releasing lock... [2025-03-14 19:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 19:46:22] Production.INFO: 50 MB #Memory Used# [2025-03-14 19:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 16:47:05 [end_date_ymd] => 2025-03-14 19:47:05 [RateCDR] => 1 ) [2025-03-14 19:47: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-03-14 16:47:05' and `end` < '2025-03-14 19:47: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-03-14 19:47:18] Production.INFO: count ==2782 [2025-03-14 19:47:19] Production.ERROR: pbx CDR StartTime 2025-03-14 16:47:05 - End Time 2025-03-14 19:47:05 [2025-03-14 19:47:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681073', 'tblTempUsageDetail_20' ) start [2025-03-14 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681073', 'tblTempUsageDetail_20' ) end [2025-03-14 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681073', 'tblTempVendorCDR_20' ) start [2025-03-14 19:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681073', 'tblTempVendorCDR_20' ) end [2025-03-14 19:47:19] Production.INFO: ProcessCDR(1,14681073,1,1,2) [2025-03-14 19:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:47:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681073', 'tblTempUsageDetail_20' ) start [2025-03-14 19:47:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681073', 'tblTempUsageDetail_20' ) end [2025-03-14 19:47:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 19:47:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 19:47:22] Production.INFO: ==16404== Releasing lock... [2025-03-14 19:47:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 19:47:22] Production.INFO: 49 MB #Memory Used# [2025-03-14 19:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 16:48:05 [end_date_ymd] => 2025-03-14 19:48:05 [RateCDR] => 1 ) [2025-03-14 19:48: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-03-14 16:48:05' and `end` < '2025-03-14 19:48: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-03-14 19:48:18] Production.INFO: count ==2768 [2025-03-14 19:48:19] Production.ERROR: pbx CDR StartTime 2025-03-14 16:48:05 - End Time 2025-03-14 19:48:05 [2025-03-14 19:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681078', 'tblTempUsageDetail_20' ) start [2025-03-14 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681078', 'tblTempUsageDetail_20' ) end [2025-03-14 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681078', 'tblTempVendorCDR_20' ) start [2025-03-14 19:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681078', 'tblTempVendorCDR_20' ) end [2025-03-14 19:48:19] Production.INFO: ProcessCDR(1,14681078,1,1,2) [2025-03-14 19:48:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:48:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:48:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681078', 'tblTempUsageDetail_20' ) start [2025-03-14 19:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681078', 'tblTempUsageDetail_20' ) end [2025-03-14 19:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 19:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 19:48:22] Production.INFO: ==16493== Releasing lock... [2025-03-14 19:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 19:48:22] Production.INFO: 48.75 MB #Memory Used# [2025-03-14 19:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 16:49:05 [end_date_ymd] => 2025-03-14 19:49:05 [RateCDR] => 1 ) [2025-03-14 19:49: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-03-14 16:49:05' and `end` < '2025-03-14 19:49: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-03-14 19:49:18] Production.INFO: count ==2758 [2025-03-14 19:49:18] Production.ERROR: pbx CDR StartTime 2025-03-14 16:49:05 - End Time 2025-03-14 19:49:05 [2025-03-14 19:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681083', 'tblTempUsageDetail_20' ) start [2025-03-14 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681083', 'tblTempUsageDetail_20' ) end [2025-03-14 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681083', 'tblTempVendorCDR_20' ) start [2025-03-14 19:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681083', 'tblTempVendorCDR_20' ) end [2025-03-14 19:49:18] Production.INFO: ProcessCDR(1,14681083,1,1,2) [2025-03-14 19:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681083', 'tblTempUsageDetail_20' ) start [2025-03-14 19:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681083', 'tblTempUsageDetail_20' ) end [2025-03-14 19:49:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 19:49:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 19:49:23] Production.INFO: ==16579== Releasing lock... [2025-03-14 19:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 19:49:23] Production.INFO: 48.75 MB #Memory Used# [2025-03-14 19:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 16:50:06 [end_date_ymd] => 2025-03-14 19:50:06 [RateCDR] => 1 ) [2025-03-14 19:50: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-03-14 16:50:06' and `end` < '2025-03-14 19:50: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-03-14 19:50:18] Production.INFO: count ==2741 [2025-03-14 19:50:19] Production.ERROR: pbx CDR StartTime 2025-03-14 16:50:06 - End Time 2025-03-14 19:50:06 [2025-03-14 19:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681089', 'tblTempUsageDetail_20' ) start [2025-03-14 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681089', 'tblTempUsageDetail_20' ) end [2025-03-14 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681089', 'tblTempVendorCDR_20' ) start [2025-03-14 19:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681089', 'tblTempVendorCDR_20' ) end [2025-03-14 19:50:19] Production.INFO: ProcessCDR(1,14681089,1,1,2) [2025-03-14 19:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681089,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681089,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681089', 'tblTempUsageDetail_20' ) start [2025-03-14 19:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681089', 'tblTempUsageDetail_20' ) end [2025-03-14 19:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 19:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 19:50:22] Production.INFO: ==16679== Releasing lock... [2025-03-14 19:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 19:50:22] Production.INFO: 48.5 MB #Memory Used# [2025-03-14 19:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 16:51:05 [end_date_ymd] => 2025-03-14 19:51:05 [RateCDR] => 1 ) [2025-03-14 19:51: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-03-14 16:51:05' and `end` < '2025-03-14 19:51: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-03-14 19:51:18] Production.INFO: count ==2684 [2025-03-14 19:51:18] Production.ERROR: pbx CDR StartTime 2025-03-14 16:51:05 - End Time 2025-03-14 19:51:05 [2025-03-14 19:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681094', 'tblTempUsageDetail_20' ) start [2025-03-14 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681094', 'tblTempUsageDetail_20' ) end [2025-03-14 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681094', 'tblTempVendorCDR_20' ) start [2025-03-14 19:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681094', 'tblTempVendorCDR_20' ) end [2025-03-14 19:51:18] Production.INFO: ProcessCDR(1,14681094,1,1,2) [2025-03-14 19:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681094,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681094,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681094', 'tblTempUsageDetail_20' ) start [2025-03-14 19:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681094', 'tblTempUsageDetail_20' ) end [2025-03-14 19:51:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 19:51:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 19:51:23] Production.INFO: ==16780== Releasing lock... [2025-03-14 19:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 19:51:23] Production.INFO: 48.25 MB #Memory Used# [2025-03-14 19:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 16:52:05 [end_date_ymd] => 2025-03-14 19:52:05 [RateCDR] => 1 ) [2025-03-14 19:52: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-03-14 16:52:05' and `end` < '2025-03-14 19:52: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-03-14 19:52:18] Production.INFO: count ==2668 [2025-03-14 19:52:18] Production.ERROR: pbx CDR StartTime 2025-03-14 16:52:05 - End Time 2025-03-14 19:52:05 [2025-03-14 19:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 19:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681099', 'tblTempUsageDetail_20' ) start [2025-03-14 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681099', 'tblTempUsageDetail_20' ) end [2025-03-14 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681099', 'tblTempVendorCDR_20' ) start [2025-03-14 19:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681099', 'tblTempVendorCDR_20' ) end [2025-03-14 19:52:19] Production.INFO: ProcessCDR(1,14681099,1,1,2) [2025-03-14 19:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681099,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681099,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681099', 'tblTempUsageDetail_20' ) start [2025-03-14 19:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681099', 'tblTempUsageDetail_20' ) end [2025-03-14 19:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 19:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 19:52:22] Production.INFO: ==16868== Releasing lock... [2025-03-14 19:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 19:52:22] Production.INFO: 48 MB #Memory Used# [2025-03-14 19:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 16:53:06 [end_date_ymd] => 2025-03-14 19:53:06 [RateCDR] => 1 ) [2025-03-14 19:53: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-03-14 16:53:06' and `end` < '2025-03-14 19:53: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-03-14 19:53:19] Production.INFO: count ==2664 [2025-03-14 19:53:20] Production.ERROR: pbx CDR StartTime 2025-03-14 16:53:06 - End Time 2025-03-14 19:53:06 [2025-03-14 19:53:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 19:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681104', 'tblTempUsageDetail_20' ) start [2025-03-14 19:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681104', 'tblTempUsageDetail_20' ) end [2025-03-14 19:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681104', 'tblTempVendorCDR_20' ) start [2025-03-14 19:53:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681104', 'tblTempVendorCDR_20' ) end [2025-03-14 19:53:20] Production.INFO: ProcessCDR(1,14681104,1,1,2) [2025-03-14 19:53:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681104,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681104,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681104', 'tblTempUsageDetail_20' ) start [2025-03-14 19:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681104', 'tblTempUsageDetail_20' ) end [2025-03-14 19:53:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 19:53:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 19:53:23] Production.INFO: ==16964== Releasing lock... [2025-03-14 19:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 19:53:23] Production.INFO: 48 MB #Memory Used# [2025-03-14 19:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 16:54:05 [end_date_ymd] => 2025-03-14 19:54:05 [RateCDR] => 1 ) [2025-03-14 19:54: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-03-14 16:54:05' and `end` < '2025-03-14 19:54: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-03-14 19:54:18] Production.INFO: count ==2661 [2025-03-14 19:54:19] Production.ERROR: pbx CDR StartTime 2025-03-14 16:54:05 - End Time 2025-03-14 19:54:05 [2025-03-14 19:54:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681109', 'tblTempUsageDetail_20' ) start [2025-03-14 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681109', 'tblTempUsageDetail_20' ) end [2025-03-14 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681109', 'tblTempVendorCDR_20' ) start [2025-03-14 19:54:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681109', 'tblTempVendorCDR_20' ) end [2025-03-14 19:54:19] Production.INFO: ProcessCDR(1,14681109,1,1,2) [2025-03-14 19:54:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:54:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:54:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681109', 'tblTempUsageDetail_20' ) start [2025-03-14 19:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681109', 'tblTempUsageDetail_20' ) end [2025-03-14 19:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 19:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 19:54:22] Production.INFO: ==17046== Releasing lock... [2025-03-14 19:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 19:54:22] Production.INFO: 48 MB #Memory Used# [2025-03-14 19:55:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 16:55:06 [end_date_ymd] => 2025-03-14 19:55:06 [RateCDR] => 1 ) [2025-03-14 19:55: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-03-14 16:55:06' and `end` < '2025-03-14 19:55: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-03-14 19:55:19] Production.INFO: count ==2658 [2025-03-14 19:55:19] Production.ERROR: pbx CDR StartTime 2025-03-14 16:55:06 - End Time 2025-03-14 19:55:06 [2025-03-14 19:55:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681114', 'tblTempUsageDetail_20' ) start [2025-03-14 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681114', 'tblTempUsageDetail_20' ) end [2025-03-14 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681114', 'tblTempVendorCDR_20' ) start [2025-03-14 19:55:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681114', 'tblTempVendorCDR_20' ) end [2025-03-14 19:55:19] Production.INFO: ProcessCDR(1,14681114,1,1,2) [2025-03-14 19:55:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:55:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:55:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:55:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681114', 'tblTempUsageDetail_20' ) start [2025-03-14 19:55:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681114', 'tblTempUsageDetail_20' ) end [2025-03-14 19:55:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 19:55:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 19:55:24] Production.INFO: ==17127== Releasing lock... [2025-03-14 19:55:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 19:55:24] Production.INFO: 48.25 MB #Memory Used# [2025-03-14 19:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 16:56:05 [end_date_ymd] => 2025-03-14 19:56:05 [RateCDR] => 1 ) [2025-03-14 19:56: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-03-14 16:56:05' and `end` < '2025-03-14 19:56: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-03-14 19:56:18] Production.INFO: count ==2635 [2025-03-14 19:56:18] Production.ERROR: pbx CDR StartTime 2025-03-14 16:56:05 - End Time 2025-03-14 19:56:05 [2025-03-14 19:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681119', 'tblTempUsageDetail_20' ) start [2025-03-14 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681119', 'tblTempUsageDetail_20' ) end [2025-03-14 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681119', 'tblTempVendorCDR_20' ) start [2025-03-14 19:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681119', 'tblTempVendorCDR_20' ) end [2025-03-14 19:56:18] Production.INFO: ProcessCDR(1,14681119,1,1,2) [2025-03-14 19:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681119', 'tblTempUsageDetail_20' ) start [2025-03-14 19:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681119', 'tblTempUsageDetail_20' ) end [2025-03-14 19:56:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 19:56:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 19:56:23] Production.INFO: ==17205== Releasing lock... [2025-03-14 19:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 19:56:23] Production.INFO: 47.75 MB #Memory Used# [2025-03-14 19:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 16:57:06 [end_date_ymd] => 2025-03-14 19:57:06 [RateCDR] => 1 ) [2025-03-14 19:57: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-03-14 16:57:06' and `end` < '2025-03-14 19:57: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-03-14 19:57:18] Production.INFO: count ==2635 [2025-03-14 19:57:19] Production.ERROR: pbx CDR StartTime 2025-03-14 16:57:06 - End Time 2025-03-14 19:57:06 [2025-03-14 19:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681124', 'tblTempUsageDetail_20' ) start [2025-03-14 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681124', 'tblTempUsageDetail_20' ) end [2025-03-14 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681124', 'tblTempVendorCDR_20' ) start [2025-03-14 19:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681124', 'tblTempVendorCDR_20' ) end [2025-03-14 19:57:19] Production.INFO: ProcessCDR(1,14681124,1,1,2) [2025-03-14 19:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:57:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:57:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681124', 'tblTempUsageDetail_20' ) start [2025-03-14 19:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681124', 'tblTempUsageDetail_20' ) end [2025-03-14 19:57:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 19:57:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 19:57:24] Production.INFO: ==17320== Releasing lock... [2025-03-14 19:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 19:57:24] Production.INFO: 47.75 MB #Memory Used# [2025-03-14 19:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 16:58:05 [end_date_ymd] => 2025-03-14 19:58:05 [RateCDR] => 1 ) [2025-03-14 19:58: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-03-14 16:58:05' and `end` < '2025-03-14 19:58: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-03-14 19:58:18] Production.INFO: count ==2624 [2025-03-14 19:58:19] Production.ERROR: pbx CDR StartTime 2025-03-14 16:58:05 - End Time 2025-03-14 19:58:05 [2025-03-14 19:58:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681129', 'tblTempUsageDetail_20' ) start [2025-03-14 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681129', 'tblTempUsageDetail_20' ) end [2025-03-14 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681129', 'tblTempVendorCDR_20' ) start [2025-03-14 19:58:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681129', 'tblTempVendorCDR_20' ) end [2025-03-14 19:58:19] Production.INFO: ProcessCDR(1,14681129,1,1,2) [2025-03-14 19:58:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:58:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:58:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681129', 'tblTempUsageDetail_20' ) start [2025-03-14 19:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681129', 'tblTempUsageDetail_20' ) end [2025-03-14 19:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 19:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 19:58:22] Production.INFO: ==17399== Releasing lock... [2025-03-14 19:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 19:58:22] Production.INFO: 47.75 MB #Memory Used# [2025-03-14 19:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 16:59:05 [end_date_ymd] => 2025-03-14 19:59:05 [RateCDR] => 1 ) [2025-03-14 19:59: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-03-14 16:59:05' and `end` < '2025-03-14 19:59: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-03-14 19:59:18] Production.INFO: count ==2621 [2025-03-14 19:59:19] Production.ERROR: pbx CDR StartTime 2025-03-14 16:59:05 - End Time 2025-03-14 19:59:05 [2025-03-14 19:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681134', 'tblTempUsageDetail_20' ) start [2025-03-14 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681134', 'tblTempUsageDetail_20' ) end [2025-03-14 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681134', 'tblTempVendorCDR_20' ) start [2025-03-14 19:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681134', 'tblTempVendorCDR_20' ) end [2025-03-14 19:59:19] Production.INFO: ProcessCDR(1,14681134,1,1,2) [2025-03-14 19:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 19:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:59:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 19:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681134', 'tblTempUsageDetail_20' ) start [2025-03-14 19:59:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681134', 'tblTempUsageDetail_20' ) end [2025-03-14 19:59:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 19:59:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 19:59:22] Production.INFO: ==17475== Releasing lock... [2025-03-14 19:59:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 19:59:22] Production.INFO: 47.75 MB #Memory Used# [2025-03-14 20:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 17:00:06 [end_date_ymd] => 2025-03-14 20:00:06 [RateCDR] => 1 ) [2025-03-14 20:00: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-03-14 17:00:06' and `end` < '2025-03-14 20:00: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-03-14 20:00:19] Production.INFO: count ==2610 [2025-03-14 20:00:20] Production.ERROR: pbx CDR StartTime 2025-03-14 17:00:06 - End Time 2025-03-14 20:00:06 [2025-03-14 20:00:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681140', 'tblTempUsageDetail_20' ) start [2025-03-14 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681140', 'tblTempUsageDetail_20' ) end [2025-03-14 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681140', 'tblTempVendorCDR_20' ) start [2025-03-14 20:00:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681140', 'tblTempVendorCDR_20' ) end [2025-03-14 20:00:20] Production.INFO: ProcessCDR(1,14681140,1,1,2) [2025-03-14 20:00:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681140,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681140,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681140', 'tblTempUsageDetail_20' ) start [2025-03-14 20:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681140', 'tblTempUsageDetail_20' ) end [2025-03-14 20:00:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 20:00:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 20:00:24] Production.INFO: ==17553== Releasing lock... [2025-03-14 20:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 20:00:24] Production.INFO: 47.75 MB #Memory Used# [2025-03-14 20:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 17:01:06 [end_date_ymd] => 2025-03-14 20:01:06 [RateCDR] => 1 ) [2025-03-14 20:01: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-03-14 17:01:06' and `end` < '2025-03-14 20:01: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-03-14 20:01:18] Production.INFO: count ==2570 [2025-03-14 20:01:19] Production.ERROR: pbx CDR StartTime 2025-03-14 17:01:06 - End Time 2025-03-14 20:01:06 [2025-03-14 20:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681145', 'tblTempUsageDetail_20' ) start [2025-03-14 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681145', 'tblTempUsageDetail_20' ) end [2025-03-14 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681145', 'tblTempVendorCDR_20' ) start [2025-03-14 20:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681145', 'tblTempVendorCDR_20' ) end [2025-03-14 20:01:19] Production.INFO: ProcessCDR(1,14681145,1,1,2) [2025-03-14 20:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681145,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681145,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681145', 'tblTempUsageDetail_20' ) start [2025-03-14 20:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681145', 'tblTempUsageDetail_20' ) end [2025-03-14 20:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 20:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 20:01:22] Production.INFO: ==17682== Releasing lock... [2025-03-14 20:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 20:01:22] Production.INFO: 47.25 MB #Memory Used# [2025-03-14 20:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 17:02:05 [end_date_ymd] => 2025-03-14 20:02:05 [RateCDR] => 1 ) [2025-03-14 20:02: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-03-14 17:02:05' and `end` < '2025-03-14 20:02: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-03-14 20:02:18] Production.INFO: count ==2578 [2025-03-14 20:02:19] Production.ERROR: pbx CDR StartTime 2025-03-14 17:02:05 - End Time 2025-03-14 20:02:05 [2025-03-14 20:02:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681150', 'tblTempUsageDetail_20' ) start [2025-03-14 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681150', 'tblTempUsageDetail_20' ) end [2025-03-14 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681150', 'tblTempVendorCDR_20' ) start [2025-03-14 20:02:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681150', 'tblTempVendorCDR_20' ) end [2025-03-14 20:02:19] Production.INFO: ProcessCDR(1,14681150,1,1,2) [2025-03-14 20:02:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681150,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681150,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681150', 'tblTempUsageDetail_20' ) start [2025-03-14 20:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681150', 'tblTempUsageDetail_20' ) end [2025-03-14 20:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 20:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 20:02:22] Production.INFO: ==17758== Releasing lock... [2025-03-14 20:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 20:02:22] Production.INFO: 47.5 MB #Memory Used# [2025-03-14 20:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 17:03:05 [end_date_ymd] => 2025-03-14 20:03:05 [RateCDR] => 1 ) [2025-03-14 20:03: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-03-14 17:03:05' and `end` < '2025-03-14 20:03: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-03-14 20:03:18] Production.INFO: count ==2583 [2025-03-14 20:03:19] Production.ERROR: pbx CDR StartTime 2025-03-14 17:03:05 - End Time 2025-03-14 20:03:05 [2025-03-14 20:03:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681155', 'tblTempUsageDetail_20' ) start [2025-03-14 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681155', 'tblTempUsageDetail_20' ) end [2025-03-14 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681155', 'tblTempVendorCDR_20' ) start [2025-03-14 20:03:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681155', 'tblTempVendorCDR_20' ) end [2025-03-14 20:03:19] Production.INFO: ProcessCDR(1,14681155,1,1,2) [2025-03-14 20:03:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681155,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681155,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681155', 'tblTempUsageDetail_20' ) start [2025-03-14 20:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681155', 'tblTempUsageDetail_20' ) end [2025-03-14 20:03:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 20:03:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 20:03:22] Production.INFO: ==17837== Releasing lock... [2025-03-14 20:03:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 20:03:22] Production.INFO: 47.25 MB #Memory Used# [2025-03-14 20:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 17:04:05 [end_date_ymd] => 2025-03-14 20:04:05 [RateCDR] => 1 ) [2025-03-14 20:04: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-03-14 17:04:05' and `end` < '2025-03-14 20:04: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-03-14 20:04:18] Production.INFO: count ==2575 [2025-03-14 20:04:18] Production.ERROR: pbx CDR StartTime 2025-03-14 17:04:05 - End Time 2025-03-14 20:04:05 [2025-03-14 20:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681160', 'tblTempUsageDetail_20' ) start [2025-03-14 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681160', 'tblTempUsageDetail_20' ) end [2025-03-14 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681160', 'tblTempVendorCDR_20' ) start [2025-03-14 20:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681160', 'tblTempVendorCDR_20' ) end [2025-03-14 20:04:18] Production.INFO: ProcessCDR(1,14681160,1,1,2) [2025-03-14 20:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681160,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681160,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681160', 'tblTempUsageDetail_20' ) start [2025-03-14 20:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681160', 'tblTempUsageDetail_20' ) end [2025-03-14 20:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 20:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 20:04:22] Production.INFO: ==17917== Releasing lock... [2025-03-14 20:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 20:04:22] Production.INFO: 47.25 MB #Memory Used# [2025-03-14 20:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 17:05:06 [end_date_ymd] => 2025-03-14 20:05:06 [RateCDR] => 1 ) [2025-03-14 20:05: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-03-14 17:05:06' and `end` < '2025-03-14 20:05: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-03-14 20:05:18] Production.INFO: count ==2564 [2025-03-14 20:05:19] Production.ERROR: pbx CDR StartTime 2025-03-14 17:05:06 - End Time 2025-03-14 20:05:06 [2025-03-14 20:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681165', 'tblTempUsageDetail_20' ) start [2025-03-14 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681165', 'tblTempUsageDetail_20' ) end [2025-03-14 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681165', 'tblTempVendorCDR_20' ) start [2025-03-14 20:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681165', 'tblTempVendorCDR_20' ) end [2025-03-14 20:05:19] Production.INFO: ProcessCDR(1,14681165,1,1,2) [2025-03-14 20:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:05:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:05:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:05:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681165', 'tblTempUsageDetail_20' ) start [2025-03-14 20:05:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681165', 'tblTempUsageDetail_20' ) end [2025-03-14 20:05:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 20:05:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 20:05:25] Production.INFO: ==17993== Releasing lock... [2025-03-14 20:05:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 20:05:25] Production.INFO: 47.25 MB #Memory Used# [2025-03-14 20:06:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 17:06:06 [end_date_ymd] => 2025-03-14 20:06:06 [RateCDR] => 1 ) [2025-03-14 20:06: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-03-14 17:06:06' and `end` < '2025-03-14 20:06: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-03-14 20:06:18] Production.INFO: count ==2550 [2025-03-14 20:06:19] Production.ERROR: pbx CDR StartTime 2025-03-14 17:06:06 - End Time 2025-03-14 20:06:06 [2025-03-14 20:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681170', 'tblTempUsageDetail_20' ) start [2025-03-14 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681170', 'tblTempUsageDetail_20' ) end [2025-03-14 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681170', 'tblTempVendorCDR_20' ) start [2025-03-14 20:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681170', 'tblTempVendorCDR_20' ) end [2025-03-14 20:06:19] Production.INFO: ProcessCDR(1,14681170,1,1,2) [2025-03-14 20:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:06:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:06:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:06:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681170', 'tblTempUsageDetail_20' ) start [2025-03-14 20:06:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681170', 'tblTempUsageDetail_20' ) end [2025-03-14 20:06:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 20:06:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 20:06:25] Production.INFO: ==18070== Releasing lock... [2025-03-14 20:06:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 20:06:25] Production.INFO: 47.25 MB #Memory Used# [2025-03-14 20:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 17:07:06 [end_date_ymd] => 2025-03-14 20:07:06 [RateCDR] => 1 ) [2025-03-14 20:07: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-03-14 17:07:06' and `end` < '2025-03-14 20:07: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-03-14 20:07:19] Production.INFO: count ==2547 [2025-03-14 20:07:19] Production.ERROR: pbx CDR StartTime 2025-03-14 17:07:06 - End Time 2025-03-14 20:07:06 [2025-03-14 20:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 20:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681175', 'tblTempUsageDetail_20' ) start [2025-03-14 20:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681175', 'tblTempUsageDetail_20' ) end [2025-03-14 20:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681175', 'tblTempVendorCDR_20' ) start [2025-03-14 20:07:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681175', 'tblTempVendorCDR_20' ) end [2025-03-14 20:07:20] Production.INFO: ProcessCDR(1,14681175,1,1,2) [2025-03-14 20:07:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:07:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681175', 'tblTempUsageDetail_20' ) start [2025-03-14 20:07:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681175', 'tblTempUsageDetail_20' ) end [2025-03-14 20:07:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 20:07:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 20:07:25] Production.INFO: ==18150== Releasing lock... [2025-03-14 20:07:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 20:07:25] Production.INFO: 47.25 MB #Memory Used# [2025-03-14 20:08:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 17:08:06 [end_date_ymd] => 2025-03-14 20:08:06 [RateCDR] => 1 ) [2025-03-14 20:08: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-03-14 17:08:06' and `end` < '2025-03-14 20:08: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-03-14 20:08:19] Production.INFO: count ==2541 [2025-03-14 20:08:19] Production.ERROR: pbx CDR StartTime 2025-03-14 17:08:06 - End Time 2025-03-14 20:08:06 [2025-03-14 20:08:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 20:08:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681180', 'tblTempUsageDetail_20' ) start [2025-03-14 20:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681180', 'tblTempUsageDetail_20' ) end [2025-03-14 20:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681180', 'tblTempVendorCDR_20' ) start [2025-03-14 20:08:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681180', 'tblTempVendorCDR_20' ) end [2025-03-14 20:08:20] Production.INFO: ProcessCDR(1,14681180,1,1,2) [2025-03-14 20:08:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:08:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:08:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:08:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681180', 'tblTempUsageDetail_20' ) start [2025-03-14 20:08:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681180', 'tblTempUsageDetail_20' ) end [2025-03-14 20:08:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 20:08:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 20:08:23] Production.INFO: ==18229== Releasing lock... [2025-03-14 20:08:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 20:08:23] Production.INFO: 47 MB #Memory Used# [2025-03-14 20:09:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 17:09:06 [end_date_ymd] => 2025-03-14 20:09:06 [RateCDR] => 1 ) [2025-03-14 20:09: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-03-14 17:09:06' and `end` < '2025-03-14 20:09: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-03-14 20:09:19] Production.INFO: count ==2535 [2025-03-14 20:09:19] Production.ERROR: pbx CDR StartTime 2025-03-14 17:09:06 - End Time 2025-03-14 20:09:06 [2025-03-14 20:09:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681185', 'tblTempUsageDetail_20' ) start [2025-03-14 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681185', 'tblTempUsageDetail_20' ) end [2025-03-14 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681185', 'tblTempVendorCDR_20' ) start [2025-03-14 20:09:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681185', 'tblTempVendorCDR_20' ) end [2025-03-14 20:09:19] Production.INFO: ProcessCDR(1,14681185,1,1,2) [2025-03-14 20:09:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:09:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681185', 'tblTempUsageDetail_20' ) start [2025-03-14 20:09:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681185', 'tblTempUsageDetail_20' ) end [2025-03-14 20:09:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 20:09:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 20:09:23] Production.INFO: ==18311== Releasing lock... [2025-03-14 20:09:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 20:09:23] Production.INFO: 47 MB #Memory Used# [2025-03-14 20:10:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 17:10:07 [end_date_ymd] => 2025-03-14 20:10:07 [RateCDR] => 1 ) [2025-03-14 20:10:07] 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-03-14 17:10:07' and `end` < '2025-03-14 20:10:07' 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-03-14 20:10:20] Production.INFO: count ==2524 [2025-03-14 20:10:21] Production.ERROR: pbx CDR StartTime 2025-03-14 17:10:07 - End Time 2025-03-14 20:10:07 [2025-03-14 20:10:21] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 20:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681191', 'tblTempUsageDetail_20' ) start [2025-03-14 20:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681191', 'tblTempUsageDetail_20' ) end [2025-03-14 20:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681191', 'tblTempVendorCDR_20' ) start [2025-03-14 20:10:21] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681191', 'tblTempVendorCDR_20' ) end [2025-03-14 20:10:21] Production.INFO: ProcessCDR(1,14681191,1,1,2) [2025-03-14 20:10:21] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:10:24] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681191,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:10:24] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:10:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681191,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681191', 'tblTempUsageDetail_20' ) start [2025-03-14 20:10:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681191', 'tblTempUsageDetail_20' ) end [2025-03-14 20:10:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 20:10:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 20:10:26] Production.INFO: ==18388== Releasing lock... [2025-03-14 20:10:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 20:10:26] Production.INFO: 47 MB #Memory Used# [2025-03-14 20:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 17:11:05 [end_date_ymd] => 2025-03-14 20:11:05 [RateCDR] => 1 ) [2025-03-14 20:11: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-03-14 17:11:05' and `end` < '2025-03-14 20:11: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-03-14 20:11:18] Production.INFO: count ==2473 [2025-03-14 20:11:18] Production.ERROR: pbx CDR StartTime 2025-03-14 17:11:05 - End Time 2025-03-14 20:11:05 [2025-03-14 20:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681196', 'tblTempUsageDetail_20' ) start [2025-03-14 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681196', 'tblTempUsageDetail_20' ) end [2025-03-14 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681196', 'tblTempVendorCDR_20' ) start [2025-03-14 20:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681196', 'tblTempVendorCDR_20' ) end [2025-03-14 20:11:18] Production.INFO: ProcessCDR(1,14681196,1,1,2) [2025-03-14 20:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:11:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681196,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:11:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:11:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681196,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681196', 'tblTempUsageDetail_20' ) start [2025-03-14 20:11:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681196', 'tblTempUsageDetail_20' ) end [2025-03-14 20:11:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 20:11:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 20:11:24] Production.INFO: ==18469== Releasing lock... [2025-03-14 20:11:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 20:11:24] Production.INFO: 46.5 MB #Memory Used# [2025-03-14 20:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 17:12:06 [end_date_ymd] => 2025-03-14 20:12:06 [RateCDR] => 1 ) [2025-03-14 20:12: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-03-14 17:12:06' and `end` < '2025-03-14 20:12: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-03-14 20:12:19] Production.INFO: count ==2475 [2025-03-14 20:12:19] Production.ERROR: pbx CDR StartTime 2025-03-14 17:12:06 - End Time 2025-03-14 20:12:06 [2025-03-14 20:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681201', 'tblTempUsageDetail_20' ) start [2025-03-14 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681201', 'tblTempUsageDetail_20' ) end [2025-03-14 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681201', 'tblTempVendorCDR_20' ) start [2025-03-14 20:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681201', 'tblTempVendorCDR_20' ) end [2025-03-14 20:12:19] Production.INFO: ProcessCDR(1,14681201,1,1,2) [2025-03-14 20:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681201,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681201,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681201', 'tblTempUsageDetail_20' ) start [2025-03-14 20:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681201', 'tblTempUsageDetail_20' ) end [2025-03-14 20:12:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 20:12:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 20:12:23] Production.INFO: ==18588== Releasing lock... [2025-03-14 20:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 20:12:23] Production.INFO: 46.5 MB #Memory Used# [2025-03-14 20:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 17:13:05 [end_date_ymd] => 2025-03-14 20:13:05 [RateCDR] => 1 ) [2025-03-14 20:13: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-03-14 17:13:05' and `end` < '2025-03-14 20:13: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-03-14 20:13:17] Production.INFO: count ==2465 [2025-03-14 20:13:18] Production.ERROR: pbx CDR StartTime 2025-03-14 17:13:05 - End Time 2025-03-14 20:13:05 [2025-03-14 20:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681206', 'tblTempUsageDetail_20' ) start [2025-03-14 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681206', 'tblTempUsageDetail_20' ) end [2025-03-14 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681206', 'tblTempVendorCDR_20' ) start [2025-03-14 20:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681206', 'tblTempVendorCDR_20' ) end [2025-03-14 20:13:18] Production.INFO: ProcessCDR(1,14681206,1,1,2) [2025-03-14 20:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681206,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:13:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681206,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681206', 'tblTempUsageDetail_20' ) start [2025-03-14 20:13:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681206', 'tblTempUsageDetail_20' ) end [2025-03-14 20:13:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 20:13:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 20:13:22] Production.INFO: ==18663== Releasing lock... [2025-03-14 20:13:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 20:13:22] Production.INFO: 46.5 MB #Memory Used# [2025-03-14 20:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 17:14:06 [end_date_ymd] => 2025-03-14 20:14:06 [RateCDR] => 1 ) [2025-03-14 20:14: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-03-14 17:14:06' and `end` < '2025-03-14 20:14: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-03-14 20:14:18] Production.INFO: count ==2463 [2025-03-14 20:14:19] Production.ERROR: pbx CDR StartTime 2025-03-14 17:14:06 - End Time 2025-03-14 20:14:06 [2025-03-14 20:14:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681211', 'tblTempUsageDetail_20' ) start [2025-03-14 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681211', 'tblTempUsageDetail_20' ) end [2025-03-14 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681211', 'tblTempVendorCDR_20' ) start [2025-03-14 20:14:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681211', 'tblTempVendorCDR_20' ) end [2025-03-14 20:14:19] Production.INFO: ProcessCDR(1,14681211,1,1,2) [2025-03-14 20:14:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:14:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:14:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:14:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681211', 'tblTempUsageDetail_20' ) start [2025-03-14 20:14:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681211', 'tblTempUsageDetail_20' ) end [2025-03-14 20:14:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 20:14:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 20:14:25] Production.INFO: ==18739== Releasing lock... [2025-03-14 20:14:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 20:14:25] Production.INFO: 46.75 MB #Memory Used# [2025-03-14 20:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 17:15:05 [end_date_ymd] => 2025-03-14 20:15:05 [RateCDR] => 1 ) [2025-03-14 20:15: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-03-14 17:15:05' and `end` < '2025-03-14 20:15: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-03-14 20:15:18] Production.INFO: count ==2453 [2025-03-14 20:15:18] Production.ERROR: pbx CDR StartTime 2025-03-14 17:15:05 - End Time 2025-03-14 20:15:05 [2025-03-14 20:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681216', 'tblTempUsageDetail_20' ) start [2025-03-14 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681216', 'tblTempUsageDetail_20' ) end [2025-03-14 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681216', 'tblTempVendorCDR_20' ) start [2025-03-14 20:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681216', 'tblTempVendorCDR_20' ) end [2025-03-14 20:15:18] Production.INFO: ProcessCDR(1,14681216,1,1,2) [2025-03-14 20:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:15:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:15:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681216', 'tblTempUsageDetail_20' ) start [2025-03-14 20:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681216', 'tblTempUsageDetail_20' ) end [2025-03-14 20:15:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 20:15:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 20:15:24] Production.INFO: ==18817== Releasing lock... [2025-03-14 20:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 20:15:24] Production.INFO: 46.5 MB #Memory Used# [2025-03-14 20:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 17:16:06 [end_date_ymd] => 2025-03-14 20:16:06 [RateCDR] => 1 ) [2025-03-14 20:16: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-03-14 17:16:06' and `end` < '2025-03-14 20:16: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-03-14 20:16:18] Production.INFO: count ==2460 [2025-03-14 20:16:19] Production.ERROR: pbx CDR StartTime 2025-03-14 17:16:06 - End Time 2025-03-14 20:16:06 [2025-03-14 20:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681221', 'tblTempUsageDetail_20' ) start [2025-03-14 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681221', 'tblTempUsageDetail_20' ) end [2025-03-14 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681221', 'tblTempVendorCDR_20' ) start [2025-03-14 20:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681221', 'tblTempVendorCDR_20' ) end [2025-03-14 20:16:19] Production.INFO: ProcessCDR(1,14681221,1,1,2) [2025-03-14 20:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:16:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:16:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:16:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681221', 'tblTempUsageDetail_20' ) start [2025-03-14 20:16:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681221', 'tblTempUsageDetail_20' ) end [2025-03-14 20:16:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 20:16:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 20:16:25] Production.INFO: ==18889== Releasing lock... [2025-03-14 20:16:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 20:16:25] Production.INFO: 46.5 MB #Memory Used# [2025-03-14 20:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 17:17:05 [end_date_ymd] => 2025-03-14 20:17:05 [RateCDR] => 1 ) [2025-03-14 20:17: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-03-14 17:17:05' and `end` < '2025-03-14 20:17: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-03-14 20:17:18] Production.INFO: count ==2451 [2025-03-14 20:17:18] Production.ERROR: pbx CDR StartTime 2025-03-14 17:17:05 - End Time 2025-03-14 20:17:05 [2025-03-14 20:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681226', 'tblTempUsageDetail_20' ) start [2025-03-14 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681226', 'tblTempUsageDetail_20' ) end [2025-03-14 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681226', 'tblTempVendorCDR_20' ) start [2025-03-14 20:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681226', 'tblTempVendorCDR_20' ) end [2025-03-14 20:17:18] Production.INFO: ProcessCDR(1,14681226,1,1,2) [2025-03-14 20:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:17:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:17:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:17:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681226', 'tblTempUsageDetail_20' ) start [2025-03-14 20:17:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681226', 'tblTempUsageDetail_20' ) end [2025-03-14 20:17:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 20:17:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 20:17:24] Production.INFO: ==18964== Releasing lock... [2025-03-14 20:17:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 20:17:24] Production.INFO: 46.5 MB #Memory Used# [2025-03-14 20:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 17:18:06 [end_date_ymd] => 2025-03-14 20:18:06 [RateCDR] => 1 ) [2025-03-14 20:18: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-03-14 17:18:06' and `end` < '2025-03-14 20:18: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-03-14 20:18:18] Production.INFO: count ==2455 [2025-03-14 20:18:19] Production.ERROR: pbx CDR StartTime 2025-03-14 17:18:06 - End Time 2025-03-14 20:18:06 [2025-03-14 20:18:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681231', 'tblTempUsageDetail_20' ) start [2025-03-14 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681231', 'tblTempUsageDetail_20' ) end [2025-03-14 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681231', 'tblTempVendorCDR_20' ) start [2025-03-14 20:18:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681231', 'tblTempVendorCDR_20' ) end [2025-03-14 20:18:19] Production.INFO: ProcessCDR(1,14681231,1,1,2) [2025-03-14 20:18:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681231', 'tblTempUsageDetail_20' ) start [2025-03-14 20:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681231', 'tblTempUsageDetail_20' ) end [2025-03-14 20:18:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 20:18:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 20:18:23] Production.INFO: ==19044== Releasing lock... [2025-03-14 20:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 20:18:23] Production.INFO: 46.5 MB #Memory Used# [2025-03-14 20:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 17:19:05 [end_date_ymd] => 2025-03-14 20:19:05 [RateCDR] => 1 ) [2025-03-14 20:19: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-03-14 17:19:05' and `end` < '2025-03-14 20:19: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-03-14 20:19:17] Production.INFO: count ==2448 [2025-03-14 20:19:18] Production.ERROR: pbx CDR StartTime 2025-03-14 17:19:05 - End Time 2025-03-14 20:19:05 [2025-03-14 20:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681236', 'tblTempUsageDetail_20' ) start [2025-03-14 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681236', 'tblTempUsageDetail_20' ) end [2025-03-14 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681236', 'tblTempVendorCDR_20' ) start [2025-03-14 20:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681236', 'tblTempVendorCDR_20' ) end [2025-03-14 20:19:18] Production.INFO: ProcessCDR(1,14681236,1,1,2) [2025-03-14 20:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:19:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681236', 'tblTempUsageDetail_20' ) start [2025-03-14 20:19:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681236', 'tblTempUsageDetail_20' ) end [2025-03-14 20:19:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 20:19:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 20:19:24] Production.INFO: ==19126== Releasing lock... [2025-03-14 20:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 20:19:24] Production.INFO: 46.5 MB #Memory Used# [2025-03-14 20:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 17:20:06 [end_date_ymd] => 2025-03-14 20:20:06 [RateCDR] => 1 ) [2025-03-14 20:20: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-03-14 17:20:06' and `end` < '2025-03-14 20:20: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-03-14 20:20:19] Production.INFO: count ==2441 [2025-03-14 20:20:19] Production.ERROR: pbx CDR StartTime 2025-03-14 17:20:06 - End Time 2025-03-14 20:20:06 [2025-03-14 20:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 20:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681241', 'tblTempUsageDetail_20' ) start [2025-03-14 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681241', 'tblTempUsageDetail_20' ) end [2025-03-14 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681241', 'tblTempVendorCDR_20' ) start [2025-03-14 20:20:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681241', 'tblTempVendorCDR_20' ) end [2025-03-14 20:20:20] Production.INFO: ProcessCDR(1,14681241,1,1,2) [2025-03-14 20:20:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:20:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:20:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:20:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681241', 'tblTempUsageDetail_20' ) start [2025-03-14 20:20:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681241', 'tblTempUsageDetail_20' ) end [2025-03-14 20:20:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 20:20:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 20:20:25] Production.INFO: ==19203== Releasing lock... [2025-03-14 20:20:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 20:20:25] Production.INFO: 46.25 MB #Memory Used# [2025-03-14 20:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 17:21:05 [end_date_ymd] => 2025-03-14 20:21:05 [RateCDR] => 1 ) [2025-03-14 20:21: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-03-14 17:21:05' and `end` < '2025-03-14 20:21: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-03-14 20:21:17] Production.INFO: count ==2385 [2025-03-14 20:21:18] Production.ERROR: pbx CDR StartTime 2025-03-14 17:21:05 - End Time 2025-03-14 20:21:05 [2025-03-14 20:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681247', 'tblTempUsageDetail_20' ) start [2025-03-14 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681247', 'tblTempUsageDetail_20' ) end [2025-03-14 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681247', 'tblTempVendorCDR_20' ) start [2025-03-14 20:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681247', 'tblTempVendorCDR_20' ) end [2025-03-14 20:21:18] Production.INFO: ProcessCDR(1,14681247,1,1,2) [2025-03-14 20:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681247,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:21:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681247,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681247', 'tblTempUsageDetail_20' ) start [2025-03-14 20:21:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681247', 'tblTempUsageDetail_20' ) end [2025-03-14 20:21:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 20:21:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 20:21:22] Production.INFO: ==19287== Releasing lock... [2025-03-14 20:21:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 20:21:22] Production.INFO: 46 MB #Memory Used# [2025-03-14 20:22:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 17:22:06 [end_date_ymd] => 2025-03-14 20:22:06 [RateCDR] => 1 ) [2025-03-14 20:22: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-03-14 17:22:06' and `end` < '2025-03-14 20:22: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-03-14 20:22:18] Production.INFO: count ==2378 [2025-03-14 20:22:19] Production.ERROR: pbx CDR StartTime 2025-03-14 17:22:06 - End Time 2025-03-14 20:22:06 [2025-03-14 20:22:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681252', 'tblTempUsageDetail_20' ) start [2025-03-14 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681252', 'tblTempUsageDetail_20' ) end [2025-03-14 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681252', 'tblTempVendorCDR_20' ) start [2025-03-14 20:22:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681252', 'tblTempVendorCDR_20' ) end [2025-03-14 20:22:19] Production.INFO: ProcessCDR(1,14681252,1,1,2) [2025-03-14 20:22:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681252,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681252,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681252', 'tblTempUsageDetail_20' ) start [2025-03-14 20:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681252', 'tblTempUsageDetail_20' ) end [2025-03-14 20:22:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 20:22:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 20:22:23] Production.INFO: ==19362== Releasing lock... [2025-03-14 20:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 20:22:23] Production.INFO: 46 MB #Memory Used# [2025-03-14 20:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 17:23:05 [end_date_ymd] => 2025-03-14 20:23:05 [RateCDR] => 1 ) [2025-03-14 20:23: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-03-14 17:23:05' and `end` < '2025-03-14 20:23: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-03-14 20:23:17] Production.INFO: count ==2382 [2025-03-14 20:23:18] Production.ERROR: pbx CDR StartTime 2025-03-14 17:23:05 - End Time 2025-03-14 20:23:05 [2025-03-14 20:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681257', 'tblTempUsageDetail_20' ) start [2025-03-14 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681257', 'tblTempUsageDetail_20' ) end [2025-03-14 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681257', 'tblTempVendorCDR_20' ) start [2025-03-14 20:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681257', 'tblTempVendorCDR_20' ) end [2025-03-14 20:23:18] Production.INFO: ProcessCDR(1,14681257,1,1,2) [2025-03-14 20:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681257,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681257,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681257', 'tblTempUsageDetail_20' ) start [2025-03-14 20:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681257', 'tblTempUsageDetail_20' ) end [2025-03-14 20:23:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 20:23:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 20:23:23] Production.INFO: ==19435== Releasing lock... [2025-03-14 20:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 20:23:23] Production.INFO: 46 MB #Memory Used# [2025-03-14 20:24:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 17:24:06 [end_date_ymd] => 2025-03-14 20:24:06 [RateCDR] => 1 ) [2025-03-14 20:24: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-03-14 17:24:06' and `end` < '2025-03-14 20:24: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-03-14 20:24:18] Production.INFO: count ==2392 [2025-03-14 20:24:19] Production.ERROR: pbx CDR StartTime 2025-03-14 17:24:06 - End Time 2025-03-14 20:24:06 [2025-03-14 20:24:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681262', 'tblTempUsageDetail_20' ) start [2025-03-14 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681262', 'tblTempUsageDetail_20' ) end [2025-03-14 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681262', 'tblTempVendorCDR_20' ) start [2025-03-14 20:24:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681262', 'tblTempVendorCDR_20' ) end [2025-03-14 20:24:19] Production.INFO: ProcessCDR(1,14681262,1,1,2) [2025-03-14 20:24:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:24:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:24:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:24:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:24:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681262', 'tblTempUsageDetail_20' ) start [2025-03-14 20:24:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681262', 'tblTempUsageDetail_20' ) end [2025-03-14 20:24:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 20:24:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 20:24:25] Production.INFO: ==19510== Releasing lock... [2025-03-14 20:24:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 20:24:25] Production.INFO: 46 MB #Memory Used# [2025-03-14 20:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 17:25:06 [end_date_ymd] => 2025-03-14 20:25:06 [RateCDR] => 1 ) [2025-03-14 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-03-14 17:25:06' and `end` < '2025-03-14 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-03-14 20:25:18] Production.INFO: count ==2390 [2025-03-14 20:25:19] Production.ERROR: pbx CDR StartTime 2025-03-14 17:25:06 - End Time 2025-03-14 20:25:06 [2025-03-14 20:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681267', 'tblTempUsageDetail_20' ) start [2025-03-14 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681267', 'tblTempUsageDetail_20' ) end [2025-03-14 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681267', 'tblTempVendorCDR_20' ) start [2025-03-14 20:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681267', 'tblTempVendorCDR_20' ) end [2025-03-14 20:25:19] Production.INFO: ProcessCDR(1,14681267,1,1,2) [2025-03-14 20:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:25:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:25:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:25:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681267', 'tblTempUsageDetail_20' ) start [2025-03-14 20:25:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681267', 'tblTempUsageDetail_20' ) end [2025-03-14 20:25:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 20:25:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 20:25:25] Production.INFO: ==19587== Releasing lock... [2025-03-14 20:25:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 20:25:25] Production.INFO: 46 MB #Memory Used# [2025-03-14 20:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 17:26:05 [end_date_ymd] => 2025-03-14 20:26:05 [RateCDR] => 1 ) [2025-03-14 20:26: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-03-14 17:26:05' and `end` < '2025-03-14 20:26: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-03-14 20:26:18] Production.INFO: count ==2381 [2025-03-14 20:26:19] Production.ERROR: pbx CDR StartTime 2025-03-14 17:26:05 - End Time 2025-03-14 20:26:05 [2025-03-14 20:26:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681272', 'tblTempUsageDetail_20' ) start [2025-03-14 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681272', 'tblTempUsageDetail_20' ) end [2025-03-14 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681272', 'tblTempVendorCDR_20' ) start [2025-03-14 20:26:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681272', 'tblTempVendorCDR_20' ) end [2025-03-14 20:26:19] Production.INFO: ProcessCDR(1,14681272,1,1,2) [2025-03-14 20:26:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:26:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:26:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:26:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681272', 'tblTempUsageDetail_20' ) start [2025-03-14 20:26:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681272', 'tblTempUsageDetail_20' ) end [2025-03-14 20:26:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 20:26:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 20:26:24] Production.INFO: ==19662== Releasing lock... [2025-03-14 20:26:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 20:26:24] Production.INFO: 46 MB #Memory Used# [2025-03-14 20:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 17:27:05 [end_date_ymd] => 2025-03-14 20:27:05 [RateCDR] => 1 ) [2025-03-14 20:27: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-03-14 17:27:05' and `end` < '2025-03-14 20:27: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-03-14 20:27:18] Production.INFO: count ==2385 [2025-03-14 20:27:18] Production.ERROR: pbx CDR StartTime 2025-03-14 17:27:05 - End Time 2025-03-14 20:27:05 [2025-03-14 20:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681277', 'tblTempUsageDetail_20' ) start [2025-03-14 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681277', 'tblTempUsageDetail_20' ) end [2025-03-14 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681277', 'tblTempVendorCDR_20' ) start [2025-03-14 20:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681277', 'tblTempVendorCDR_20' ) end [2025-03-14 20:27:18] Production.INFO: ProcessCDR(1,14681277,1,1,2) [2025-03-14 20:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:27:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:27:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:27:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681277', 'tblTempUsageDetail_20' ) start [2025-03-14 20:27:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681277', 'tblTempUsageDetail_20' ) end [2025-03-14 20:27:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 20:27:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 20:27:24] Production.INFO: ==19736== Releasing lock... [2025-03-14 20:27:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 20:27:24] Production.INFO: 46 MB #Memory Used# [2025-03-14 20:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 17:28:06 [end_date_ymd] => 2025-03-14 20:28:06 [RateCDR] => 1 ) [2025-03-14 20:28: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-03-14 17:28:06' and `end` < '2025-03-14 20:28: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-03-14 20:28:18] Production.INFO: count ==2375 [2025-03-14 20:28:19] Production.ERROR: pbx CDR StartTime 2025-03-14 17:28:06 - End Time 2025-03-14 20:28:06 [2025-03-14 20:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681282', 'tblTempUsageDetail_20' ) start [2025-03-14 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681282', 'tblTempUsageDetail_20' ) end [2025-03-14 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681282', 'tblTempVendorCDR_20' ) start [2025-03-14 20:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681282', 'tblTempVendorCDR_20' ) end [2025-03-14 20:28:19] Production.INFO: ProcessCDR(1,14681282,1,1,2) [2025-03-14 20:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:28:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:28:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:28:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681282', 'tblTempUsageDetail_20' ) start [2025-03-14 20:28:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681282', 'tblTempUsageDetail_20' ) end [2025-03-14 20:28:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 20:28:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 20:28:25] Production.INFO: ==19849== Releasing lock... [2025-03-14 20:28:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 20:28:25] Production.INFO: 45.75 MB #Memory Used# [2025-03-14 20:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 17:29:05 [end_date_ymd] => 2025-03-14 20:29:05 [RateCDR] => 1 ) [2025-03-14 20:29: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-03-14 17:29:05' and `end` < '2025-03-14 20:29: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-03-14 20:29:18] Production.INFO: count ==2377 [2025-03-14 20:29:18] Production.ERROR: pbx CDR StartTime 2025-03-14 17:29:05 - End Time 2025-03-14 20:29:05 [2025-03-14 20:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681287', 'tblTempUsageDetail_20' ) start [2025-03-14 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681287', 'tblTempUsageDetail_20' ) end [2025-03-14 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681287', 'tblTempVendorCDR_20' ) start [2025-03-14 20:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681287', 'tblTempVendorCDR_20' ) end [2025-03-14 20:29:18] Production.INFO: ProcessCDR(1,14681287,1,1,2) [2025-03-14 20:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:29:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:29:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:29:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681287', 'tblTempUsageDetail_20' ) start [2025-03-14 20:29:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681287', 'tblTempUsageDetail_20' ) end [2025-03-14 20:29:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 20:29:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 20:29:24] Production.INFO: ==19929== Releasing lock... [2025-03-14 20:29:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 20:29:24] Production.INFO: 46 MB #Memory Used# [2025-03-14 20:30:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 17:30:07 [end_date_ymd] => 2025-03-14 20:30:07 [RateCDR] => 1 ) [2025-03-14 20:30:07] 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-03-14 17:30:07' and `end` < '2025-03-14 20:30:07' 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-03-14 20:30:19] Production.INFO: count ==2377 [2025-03-14 20:30:20] Production.ERROR: pbx CDR StartTime 2025-03-14 17:30:07 - End Time 2025-03-14 20:30:07 [2025-03-14 20:30:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681293', 'tblTempUsageDetail_20' ) start [2025-03-14 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681293', 'tblTempUsageDetail_20' ) end [2025-03-14 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681293', 'tblTempVendorCDR_20' ) start [2025-03-14 20:30:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681293', 'tblTempVendorCDR_20' ) end [2025-03-14 20:30:20] Production.INFO: ProcessCDR(1,14681293,1,1,2) [2025-03-14 20:30:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:30:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681293,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:30:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:30:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681293,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681293', 'tblTempUsageDetail_20' ) start [2025-03-14 20:30:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681293', 'tblTempUsageDetail_20' ) end [2025-03-14 20:30:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 20:30:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 20:30:25] Production.INFO: ==20007== Releasing lock... [2025-03-14 20:30:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 20:30:25] Production.INFO: 46 MB #Memory Used# [2025-03-14 20:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 17:31:05 [end_date_ymd] => 2025-03-14 20:31:05 [RateCDR] => 1 ) [2025-03-14 20:31: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-03-14 17:31:05' and `end` < '2025-03-14 20:31: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-03-14 20:31:18] Production.INFO: count ==2376 [2025-03-14 20:31:18] Production.ERROR: pbx CDR StartTime 2025-03-14 17:31:05 - End Time 2025-03-14 20:31:05 [2025-03-14 20:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681298', 'tblTempUsageDetail_20' ) start [2025-03-14 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681298', 'tblTempUsageDetail_20' ) end [2025-03-14 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681298', 'tblTempVendorCDR_20' ) start [2025-03-14 20:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681298', 'tblTempVendorCDR_20' ) end [2025-03-14 20:31:18] Production.INFO: ProcessCDR(1,14681298,1,1,2) [2025-03-14 20:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:31:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681298,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:31:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681298,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681298', 'tblTempUsageDetail_20' ) start [2025-03-14 20:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681298', 'tblTempUsageDetail_20' ) end [2025-03-14 20:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 20:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 20:31:22] Production.INFO: ==20080== Releasing lock... [2025-03-14 20:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 20:31:22] Production.INFO: 46 MB #Memory Used# [2025-03-14 20:32:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 17:32:06 [end_date_ymd] => 2025-03-14 20:32:06 [RateCDR] => 1 ) [2025-03-14 20:32: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-03-14 17:32:06' and `end` < '2025-03-14 20:32: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-03-14 20:32:18] Production.INFO: count ==2376 [2025-03-14 20:32:19] Production.ERROR: pbx CDR StartTime 2025-03-14 17:32:06 - End Time 2025-03-14 20:32:06 [2025-03-14 20:32:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681303', 'tblTempUsageDetail_20' ) start [2025-03-14 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681303', 'tblTempUsageDetail_20' ) end [2025-03-14 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681303', 'tblTempVendorCDR_20' ) start [2025-03-14 20:32:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681303', 'tblTempVendorCDR_20' ) end [2025-03-14 20:32:19] Production.INFO: ProcessCDR(1,14681303,1,1,2) [2025-03-14 20:32:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:32:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681303,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:32:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:32:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681303,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681303', 'tblTempUsageDetail_20' ) start [2025-03-14 20:32:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681303', 'tblTempUsageDetail_20' ) end [2025-03-14 20:32:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 20:32:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 20:32:23] Production.INFO: ==20152== Releasing lock... [2025-03-14 20:32:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 20:32:23] Production.INFO: 46 MB #Memory Used# [2025-03-14 20:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 17:33:05 [end_date_ymd] => 2025-03-14 20:33:05 [RateCDR] => 1 ) [2025-03-14 20:33: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-03-14 17:33:05' and `end` < '2025-03-14 20:33: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-03-14 20:33:17] Production.INFO: count ==2379 [2025-03-14 20:33:18] Production.ERROR: pbx CDR StartTime 2025-03-14 17:33:05 - End Time 2025-03-14 20:33:05 [2025-03-14 20:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681308', 'tblTempUsageDetail_20' ) start [2025-03-14 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681308', 'tblTempUsageDetail_20' ) end [2025-03-14 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681308', 'tblTempVendorCDR_20' ) start [2025-03-14 20:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681308', 'tblTempVendorCDR_20' ) end [2025-03-14 20:33:18] Production.INFO: ProcessCDR(1,14681308,1,1,2) [2025-03-14 20:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681308,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681308,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681308', 'tblTempUsageDetail_20' ) start [2025-03-14 20:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681308', 'tblTempUsageDetail_20' ) end [2025-03-14 20:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 20:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 20:33:22] Production.INFO: ==20227== Releasing lock... [2025-03-14 20:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 20:33:22] Production.INFO: 46 MB #Memory Used# [2025-03-14 20:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 17:34:06 [end_date_ymd] => 2025-03-14 20:34:06 [RateCDR] => 1 ) [2025-03-14 20:34: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-03-14 17:34:06' and `end` < '2025-03-14 20:34: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-03-14 20:34:19] Production.INFO: count ==2366 [2025-03-14 20:34:19] Production.ERROR: pbx CDR StartTime 2025-03-14 17:34:06 - End Time 2025-03-14 20:34:06 [2025-03-14 20:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681313', 'tblTempUsageDetail_20' ) start [2025-03-14 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681313', 'tblTempUsageDetail_20' ) end [2025-03-14 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681313', 'tblTempVendorCDR_20' ) start [2025-03-14 20:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681313', 'tblTempVendorCDR_20' ) end [2025-03-14 20:34:19] Production.INFO: ProcessCDR(1,14681313,1,1,2) [2025-03-14 20:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681313', 'tblTempUsageDetail_20' ) start [2025-03-14 20:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681313', 'tblTempUsageDetail_20' ) end [2025-03-14 20:34:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 20:34:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 20:34:23] Production.INFO: ==20303== Releasing lock... [2025-03-14 20:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 20:34:23] Production.INFO: 45.75 MB #Memory Used# [2025-03-14 20:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 17:35:05 [end_date_ymd] => 2025-03-14 20:35:05 [RateCDR] => 1 ) [2025-03-14 20:35: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-03-14 17:35:05' and `end` < '2025-03-14 20:35: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-03-14 20:35:18] Production.INFO: count ==2369 [2025-03-14 20:35:18] Production.ERROR: pbx CDR StartTime 2025-03-14 17:35:05 - End Time 2025-03-14 20:35:05 [2025-03-14 20:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681318', 'tblTempUsageDetail_20' ) start [2025-03-14 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681318', 'tblTempUsageDetail_20' ) end [2025-03-14 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681318', 'tblTempVendorCDR_20' ) start [2025-03-14 20:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681318', 'tblTempVendorCDR_20' ) end [2025-03-14 20:35:18] Production.INFO: ProcessCDR(1,14681318,1,1,2) [2025-03-14 20:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:35:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:35:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:35:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681318', 'tblTempUsageDetail_20' ) start [2025-03-14 20:35:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681318', 'tblTempUsageDetail_20' ) end [2025-03-14 20:35:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 20:35:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 20:35:24] Production.INFO: ==20372== Releasing lock... [2025-03-14 20:35:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 20:35:24] Production.INFO: 45.75 MB #Memory Used# [2025-03-14 20:36:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 17:36:06 [end_date_ymd] => 2025-03-14 20:36:06 [RateCDR] => 1 ) [2025-03-14 20:36: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-03-14 17:36:06' and `end` < '2025-03-14 20:36: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-03-14 20:36:18] Production.INFO: count ==2366 [2025-03-14 20:36:19] Production.ERROR: pbx CDR StartTime 2025-03-14 17:36:06 - End Time 2025-03-14 20:36:06 [2025-03-14 20:36:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681323', 'tblTempUsageDetail_20' ) start [2025-03-14 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681323', 'tblTempUsageDetail_20' ) end [2025-03-14 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681323', 'tblTempVendorCDR_20' ) start [2025-03-14 20:36:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681323', 'tblTempVendorCDR_20' ) end [2025-03-14 20:36:19] Production.INFO: ProcessCDR(1,14681323,1,1,2) [2025-03-14 20:36:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:36:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:36:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:36:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681323', 'tblTempUsageDetail_20' ) start [2025-03-14 20:36:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681323', 'tblTempUsageDetail_20' ) end [2025-03-14 20:36:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 20:36:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 20:36:23] Production.INFO: ==20448== Releasing lock... [2025-03-14 20:36:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 20:36:23] Production.INFO: 45.75 MB #Memory Used# [2025-03-14 20:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 17:37:06 [end_date_ymd] => 2025-03-14 20:37:06 [RateCDR] => 1 ) [2025-03-14 20:37: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-03-14 17:37:06' and `end` < '2025-03-14 20:37: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-03-14 20:37:18] Production.INFO: count ==2370 [2025-03-14 20:37:19] Production.ERROR: pbx CDR StartTime 2025-03-14 17:37:06 - End Time 2025-03-14 20:37:06 [2025-03-14 20:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681328', 'tblTempUsageDetail_20' ) start [2025-03-14 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681328', 'tblTempUsageDetail_20' ) end [2025-03-14 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681328', 'tblTempVendorCDR_20' ) start [2025-03-14 20:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681328', 'tblTempVendorCDR_20' ) end [2025-03-14 20:37:19] Production.INFO: ProcessCDR(1,14681328,1,1,2) [2025-03-14 20:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:37:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:37:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:37:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681328', 'tblTempUsageDetail_20' ) start [2025-03-14 20:37:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681328', 'tblTempUsageDetail_20' ) end [2025-03-14 20:37:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 20:37:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 20:37:24] Production.INFO: ==20523== Releasing lock... [2025-03-14 20:37:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 20:37:24] Production.INFO: 45.75 MB #Memory Used# [2025-03-14 20:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 17:38:06 [end_date_ymd] => 2025-03-14 20:38:06 [RateCDR] => 1 ) [2025-03-14 20:38: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-03-14 17:38:06' and `end` < '2025-03-14 20:38: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-03-14 20:38:18] Production.INFO: count ==2379 [2025-03-14 20:38:19] Production.ERROR: pbx CDR StartTime 2025-03-14 17:38:06 - End Time 2025-03-14 20:38:06 [2025-03-14 20:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681333', 'tblTempUsageDetail_20' ) start [2025-03-14 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681333', 'tblTempUsageDetail_20' ) end [2025-03-14 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681333', 'tblTempVendorCDR_20' ) start [2025-03-14 20:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681333', 'tblTempVendorCDR_20' ) end [2025-03-14 20:38:19] Production.INFO: ProcessCDR(1,14681333,1,1,2) [2025-03-14 20:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:38:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:38:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:38:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681333', 'tblTempUsageDetail_20' ) start [2025-03-14 20:38:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681333', 'tblTempUsageDetail_20' ) end [2025-03-14 20:38:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 20:38:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 20:38:25] Production.INFO: ==20594== Releasing lock... [2025-03-14 20:38:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 20:38:25] Production.INFO: 46 MB #Memory Used# [2025-03-14 20:39:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 17:39:06 [end_date_ymd] => 2025-03-14 20:39:06 [RateCDR] => 1 ) [2025-03-14 20:39: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-03-14 17:39:06' and `end` < '2025-03-14 20:39: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-03-14 20:39:18] Production.INFO: count ==2366 [2025-03-14 20:39:19] Production.ERROR: pbx CDR StartTime 2025-03-14 17:39:06 - End Time 2025-03-14 20:39:06 [2025-03-14 20:39:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681338', 'tblTempUsageDetail_20' ) start [2025-03-14 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681338', 'tblTempUsageDetail_20' ) end [2025-03-14 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681338', 'tblTempVendorCDR_20' ) start [2025-03-14 20:39:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681338', 'tblTempVendorCDR_20' ) end [2025-03-14 20:39:19] Production.INFO: ProcessCDR(1,14681338,1,1,2) [2025-03-14 20:39:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:39:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:39:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:39:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681338', 'tblTempUsageDetail_20' ) start [2025-03-14 20:39:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681338', 'tblTempUsageDetail_20' ) end [2025-03-14 20:39:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 20:39:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 20:39:24] Production.INFO: ==20668== Releasing lock... [2025-03-14 20:39:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 20:39:24] Production.INFO: 45.75 MB #Memory Used# [2025-03-14 20:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 17:40:07 [end_date_ymd] => 2025-03-14 20:40:07 [RateCDR] => 1 ) [2025-03-14 20:40:07] 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-03-14 17:40:07' and `end` < '2025-03-14 20:40:07' 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-03-14 20:40:19] Production.INFO: count ==2371 [2025-03-14 20:40:20] Production.ERROR: pbx CDR StartTime 2025-03-14 17:40:07 - End Time 2025-03-14 20:40:07 [2025-03-14 20:40:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681344', 'tblTempUsageDetail_20' ) start [2025-03-14 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681344', 'tblTempUsageDetail_20' ) end [2025-03-14 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681344', 'tblTempVendorCDR_20' ) start [2025-03-14 20:40:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681344', 'tblTempVendorCDR_20' ) end [2025-03-14 20:40:20] Production.INFO: ProcessCDR(1,14681344,1,1,2) [2025-03-14 20:40:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681344,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:40:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681344,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681344', 'tblTempUsageDetail_20' ) start [2025-03-14 20:40:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681344', 'tblTempUsageDetail_20' ) end [2025-03-14 20:40:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 20:40:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 20:40:24] Production.INFO: ==20744== Releasing lock... [2025-03-14 20:40:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 20:40:24] Production.INFO: 46 MB #Memory Used# [2025-03-14 20:41:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 17:41:06 [end_date_ymd] => 2025-03-14 20:41:06 [RateCDR] => 1 ) [2025-03-14 20:41: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-03-14 17:41:06' and `end` < '2025-03-14 20:41: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-03-14 20:41:18] Production.INFO: count ==2335 [2025-03-14 20:41:19] Production.ERROR: pbx CDR StartTime 2025-03-14 17:41:06 - End Time 2025-03-14 20:41:06 [2025-03-14 20:41:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681349', 'tblTempUsageDetail_20' ) start [2025-03-14 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681349', 'tblTempUsageDetail_20' ) end [2025-03-14 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681349', 'tblTempVendorCDR_20' ) start [2025-03-14 20:41:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681349', 'tblTempVendorCDR_20' ) end [2025-03-14 20:41:19] Production.INFO: ProcessCDR(1,14681349,1,1,2) [2025-03-14 20:41:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:41:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681349,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:41:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:41:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681349,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681349', 'tblTempUsageDetail_20' ) start [2025-03-14 20:41:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681349', 'tblTempUsageDetail_20' ) end [2025-03-14 20:41:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 20:41:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 20:41:24] Production.INFO: ==20818== Releasing lock... [2025-03-14 20:41:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 20:41:24] Production.INFO: 45.5 MB #Memory Used# [2025-03-14 20:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 17:42:05 [end_date_ymd] => 2025-03-14 20:42:05 [RateCDR] => 1 ) [2025-03-14 20:42: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-03-14 17:42:05' and `end` < '2025-03-14 20:42: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-03-14 20:42:18] Production.INFO: count ==2334 [2025-03-14 20:42:19] Production.ERROR: pbx CDR StartTime 2025-03-14 17:42:05 - End Time 2025-03-14 20:42:05 [2025-03-14 20:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681354', 'tblTempUsageDetail_20' ) start [2025-03-14 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681354', 'tblTempUsageDetail_20' ) end [2025-03-14 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681354', 'tblTempVendorCDR_20' ) start [2025-03-14 20:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681354', 'tblTempVendorCDR_20' ) end [2025-03-14 20:42:19] Production.INFO: ProcessCDR(1,14681354,1,1,2) [2025-03-14 20:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:42:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681354,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:42:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:42:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681354,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681354', 'tblTempUsageDetail_20' ) start [2025-03-14 20:42:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681354', 'tblTempUsageDetail_20' ) end [2025-03-14 20:42:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 20:42:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 20:42:24] Production.INFO: ==20891== Releasing lock... [2025-03-14 20:42:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 20:42:24] Production.INFO: 45.5 MB #Memory Used# [2025-03-14 20:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 17:43:05 [end_date_ymd] => 2025-03-14 20:43:05 [RateCDR] => 1 ) [2025-03-14 20:43: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-03-14 17:43:05' and `end` < '2025-03-14 20:43: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-03-14 20:43:18] Production.INFO: count ==2328 [2025-03-14 20:43:18] Production.ERROR: pbx CDR StartTime 2025-03-14 17:43:05 - End Time 2025-03-14 20:43:05 [2025-03-14 20:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 20:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681359', 'tblTempUsageDetail_20' ) start [2025-03-14 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681359', 'tblTempUsageDetail_20' ) end [2025-03-14 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681359', 'tblTempVendorCDR_20' ) start [2025-03-14 20:43:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681359', 'tblTempVendorCDR_20' ) end [2025-03-14 20:43:19] Production.INFO: ProcessCDR(1,14681359,1,1,2) [2025-03-14 20:43:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681359,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681359,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681359', 'tblTempUsageDetail_20' ) start [2025-03-14 20:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681359', 'tblTempUsageDetail_20' ) end [2025-03-14 20:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 20:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 20:43:22] Production.INFO: ==21001== Releasing lock... [2025-03-14 20:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 20:43:22] Production.INFO: 45.5 MB #Memory Used# [2025-03-14 20:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 17:44:05 [end_date_ymd] => 2025-03-14 20:44:05 [RateCDR] => 1 ) [2025-03-14 20:44: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-03-14 17:44:05' and `end` < '2025-03-14 20:44: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-03-14 20:44:18] Production.INFO: count ==2334 [2025-03-14 20:44:18] Production.ERROR: pbx CDR StartTime 2025-03-14 17:44:05 - End Time 2025-03-14 20:44:05 [2025-03-14 20:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681364', 'tblTempUsageDetail_20' ) start [2025-03-14 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681364', 'tblTempUsageDetail_20' ) end [2025-03-14 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681364', 'tblTempVendorCDR_20' ) start [2025-03-14 20:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681364', 'tblTempVendorCDR_20' ) end [2025-03-14 20:44:18] Production.INFO: ProcessCDR(1,14681364,1,1,2) [2025-03-14 20:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:44:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681364,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:44:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:44:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681364,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681364', 'tblTempUsageDetail_20' ) start [2025-03-14 20:44:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681364', 'tblTempUsageDetail_20' ) end [2025-03-14 20:44:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 20:44:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 20:44:24] Production.INFO: ==21071== Releasing lock... [2025-03-14 20:44:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 20:44:24] Production.INFO: 45.5 MB #Memory Used# [2025-03-14 20:45:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 17:45:06 [end_date_ymd] => 2025-03-14 20:45:06 [RateCDR] => 1 ) [2025-03-14 20:45: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-03-14 17:45:06' and `end` < '2025-03-14 20:45: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-03-14 20:45:18] Production.INFO: count ==2333 [2025-03-14 20:45:19] Production.ERROR: pbx CDR StartTime 2025-03-14 17:45:06 - End Time 2025-03-14 20:45:06 [2025-03-14 20:45:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681369', 'tblTempUsageDetail_20' ) start [2025-03-14 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681369', 'tblTempUsageDetail_20' ) end [2025-03-14 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681369', 'tblTempVendorCDR_20' ) start [2025-03-14 20:45:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681369', 'tblTempVendorCDR_20' ) end [2025-03-14 20:45:19] Production.INFO: ProcessCDR(1,14681369,1,1,2) [2025-03-14 20:45:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:45:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681369,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:45:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:45:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681369,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681369', 'tblTempUsageDetail_20' ) start [2025-03-14 20:45:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681369', 'tblTempUsageDetail_20' ) end [2025-03-14 20:45:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 20:45:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 20:45:24] Production.INFO: ==21145== Releasing lock... [2025-03-14 20:45:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 20:45:24] Production.INFO: 45.5 MB #Memory Used# [2025-03-14 20:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 17:46:06 [end_date_ymd] => 2025-03-14 20:46:06 [RateCDR] => 1 ) [2025-03-14 20:46: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-03-14 17:46:06' and `end` < '2025-03-14 20:46: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-03-14 20:46:19] Production.INFO: count ==2334 [2025-03-14 20:46:19] Production.ERROR: pbx CDR StartTime 2025-03-14 17:46:06 - End Time 2025-03-14 20:46:06 [2025-03-14 20:46:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681374', 'tblTempUsageDetail_20' ) start [2025-03-14 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681374', 'tblTempUsageDetail_20' ) end [2025-03-14 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681374', 'tblTempVendorCDR_20' ) start [2025-03-14 20:46:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681374', 'tblTempVendorCDR_20' ) end [2025-03-14 20:46:19] Production.INFO: ProcessCDR(1,14681374,1,1,2) [2025-03-14 20:46:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:46:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681374,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:46:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:46:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681374,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681374', 'tblTempUsageDetail_20' ) start [2025-03-14 20:46:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681374', 'tblTempUsageDetail_20' ) end [2025-03-14 20:46:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 20:46:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 20:46:23] Production.INFO: ==21218== Releasing lock... [2025-03-14 20:46:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 20:46:23] Production.INFO: 45.5 MB #Memory Used# [2025-03-14 20:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 17:47:05 [end_date_ymd] => 2025-03-14 20:47:05 [RateCDR] => 1 ) [2025-03-14 20:47: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-03-14 17:47:05' and `end` < '2025-03-14 20:47: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-03-14 20:47:18] Production.INFO: count ==2343 [2025-03-14 20:47:18] Production.ERROR: pbx CDR StartTime 2025-03-14 17:47:05 - End Time 2025-03-14 20:47:05 [2025-03-14 20:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 20:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681379', 'tblTempUsageDetail_20' ) start [2025-03-14 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681379', 'tblTempUsageDetail_20' ) end [2025-03-14 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681379', 'tblTempVendorCDR_20' ) start [2025-03-14 20:47:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681379', 'tblTempVendorCDR_20' ) end [2025-03-14 20:47:19] Production.INFO: ProcessCDR(1,14681379,1,1,2) [2025-03-14 20:47:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:47:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681379,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:47:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:47:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681379,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681379', 'tblTempUsageDetail_20' ) start [2025-03-14 20:47:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681379', 'tblTempUsageDetail_20' ) end [2025-03-14 20:47:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 20:47:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 20:47:24] Production.INFO: ==21292== Releasing lock... [2025-03-14 20:47:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 20:47:24] Production.INFO: 46 MB #Memory Used# [2025-03-14 20:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 17:48:06 [end_date_ymd] => 2025-03-14 20:48:06 [RateCDR] => 1 ) [2025-03-14 20:48: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-03-14 17:48:06' and `end` < '2025-03-14 20:48: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-03-14 20:48:19] Production.INFO: count ==2341 [2025-03-14 20:48:19] Production.ERROR: pbx CDR StartTime 2025-03-14 17:48:06 - End Time 2025-03-14 20:48:06 [2025-03-14 20:48:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 20:48:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681384', 'tblTempUsageDetail_20' ) start [2025-03-14 20:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681384', 'tblTempUsageDetail_20' ) end [2025-03-14 20:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681384', 'tblTempVendorCDR_20' ) start [2025-03-14 20:48:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681384', 'tblTempVendorCDR_20' ) end [2025-03-14 20:48:20] Production.INFO: ProcessCDR(1,14681384,1,1,2) [2025-03-14 20:48:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681384,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681384,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681384', 'tblTempUsageDetail_20' ) start [2025-03-14 20:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681384', 'tblTempUsageDetail_20' ) end [2025-03-14 20:48:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 20:48:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 20:48:23] Production.INFO: ==21375== Releasing lock... [2025-03-14 20:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 20:48:23] Production.INFO: 45.5 MB #Memory Used# [2025-03-14 20:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 17:49:05 [end_date_ymd] => 2025-03-14 20:49:05 [RateCDR] => 1 ) [2025-03-14 20:49: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-03-14 17:49:05' and `end` < '2025-03-14 20:49: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-03-14 20:49:17] Production.INFO: count ==2338 [2025-03-14 20:49:18] Production.ERROR: pbx CDR StartTime 2025-03-14 17:49:05 - End Time 2025-03-14 20:49:05 [2025-03-14 20:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681389', 'tblTempUsageDetail_20' ) start [2025-03-14 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681389', 'tblTempUsageDetail_20' ) end [2025-03-14 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681389', 'tblTempVendorCDR_20' ) start [2025-03-14 20:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681389', 'tblTempVendorCDR_20' ) end [2025-03-14 20:49:18] Production.INFO: ProcessCDR(1,14681389,1,1,2) [2025-03-14 20:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681389,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:49:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681389,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681389', 'tblTempUsageDetail_20' ) start [2025-03-14 20:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681389', 'tblTempUsageDetail_20' ) end [2025-03-14 20:49:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 20:49:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 20:49:24] Production.INFO: ==21448== Releasing lock... [2025-03-14 20:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 20:49:24] Production.INFO: 45.5 MB #Memory Used# [2025-03-14 20:50:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 17:50:07 [end_date_ymd] => 2025-03-14 20:50:07 [RateCDR] => 1 ) [2025-03-14 20:50:07] 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-03-14 17:50:07' and `end` < '2025-03-14 20:50:07' 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-03-14 20:50:19] Production.INFO: count ==2324 [2025-03-14 20:50:20] Production.ERROR: pbx CDR StartTime 2025-03-14 17:50:07 - End Time 2025-03-14 20:50:07 [2025-03-14 20:50:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681395', 'tblTempUsageDetail_20' ) start [2025-03-14 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681395', 'tblTempUsageDetail_20' ) end [2025-03-14 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681395', 'tblTempVendorCDR_20' ) start [2025-03-14 20:50:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681395', 'tblTempVendorCDR_20' ) end [2025-03-14 20:50:20] Production.INFO: ProcessCDR(1,14681395,1,1,2) [2025-03-14 20:50:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:50:23] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681395,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:50:23] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:50:26] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681395,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681395', 'tblTempUsageDetail_20' ) start [2025-03-14 20:50:26] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681395', 'tblTempUsageDetail_20' ) end [2025-03-14 20:50:26] Production.ERROR: pbx prc_insertCDR start [2025-03-14 20:50:26] Production.ERROR: pbx prc_insertCDR end [2025-03-14 20:50:26] Production.INFO: ==21523== Releasing lock... [2025-03-14 20:50:26] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 20:50:26] Production.INFO: 45.5 MB #Memory Used# [2025-03-14 20:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 17:51:05 [end_date_ymd] => 2025-03-14 20:51:05 [RateCDR] => 1 ) [2025-03-14 20:51: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-03-14 17:51:05' and `end` < '2025-03-14 20:51: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-03-14 20:51:18] Production.INFO: count ==2270 [2025-03-14 20:51:19] Production.ERROR: pbx CDR StartTime 2025-03-14 17:51:05 - End Time 2025-03-14 20:51:05 [2025-03-14 20:51:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681400', 'tblTempUsageDetail_20' ) start [2025-03-14 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681400', 'tblTempUsageDetail_20' ) end [2025-03-14 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681400', 'tblTempVendorCDR_20' ) start [2025-03-14 20:51:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681400', 'tblTempVendorCDR_20' ) end [2025-03-14 20:51:19] Production.INFO: ProcessCDR(1,14681400,1,1,2) [2025-03-14 20:51:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:51:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681400,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:51:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681400,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681400', 'tblTempUsageDetail_20' ) start [2025-03-14 20:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681400', 'tblTempUsageDetail_20' ) end [2025-03-14 20:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 20:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 20:51:23] Production.INFO: ==21596== Releasing lock... [2025-03-14 20:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 20:51:23] Production.INFO: 45 MB #Memory Used# [2025-03-14 20:52:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 17:52:06 [end_date_ymd] => 2025-03-14 20:52:06 [RateCDR] => 1 ) [2025-03-14 20:52: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-03-14 17:52:06' and `end` < '2025-03-14 20:52: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-03-14 20:52:18] Production.INFO: count ==2267 [2025-03-14 20:52:19] Production.ERROR: pbx CDR StartTime 2025-03-14 17:52:06 - End Time 2025-03-14 20:52:06 [2025-03-14 20:52:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681405', 'tblTempUsageDetail_20' ) start [2025-03-14 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681405', 'tblTempUsageDetail_20' ) end [2025-03-14 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681405', 'tblTempVendorCDR_20' ) start [2025-03-14 20:52:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681405', 'tblTempVendorCDR_20' ) end [2025-03-14 20:52:19] Production.INFO: ProcessCDR(1,14681405,1,1,2) [2025-03-14 20:52:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:52:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681405,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:52:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:52:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681405,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681405', 'tblTempUsageDetail_20' ) start [2025-03-14 20:52:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681405', 'tblTempUsageDetail_20' ) end [2025-03-14 20:52:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 20:52:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 20:52:24] Production.INFO: ==21669== Releasing lock... [2025-03-14 20:52:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 20:52:24] Production.INFO: 45 MB #Memory Used# [2025-03-14 20:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 17:53:05 [end_date_ymd] => 2025-03-14 20:53:05 [RateCDR] => 1 ) [2025-03-14 20:53: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-03-14 17:53:05' and `end` < '2025-03-14 20:53: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-03-14 20:53:18] Production.INFO: count ==2265 [2025-03-14 20:53:18] Production.ERROR: pbx CDR StartTime 2025-03-14 17:53:05 - End Time 2025-03-14 20:53:05 [2025-03-14 20:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681410', 'tblTempUsageDetail_20' ) start [2025-03-14 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681410', 'tblTempUsageDetail_20' ) end [2025-03-14 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681410', 'tblTempVendorCDR_20' ) start [2025-03-14 20:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681410', 'tblTempVendorCDR_20' ) end [2025-03-14 20:53:18] Production.INFO: ProcessCDR(1,14681410,1,1,2) [2025-03-14 20:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681410,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:53:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681410,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681410', 'tblTempUsageDetail_20' ) start [2025-03-14 20:53:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681410', 'tblTempUsageDetail_20' ) end [2025-03-14 20:53:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 20:53:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 20:53:24] Production.INFO: ==21742== Releasing lock... [2025-03-14 20:53:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 20:53:24] Production.INFO: 45 MB #Memory Used# [2025-03-14 20:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 17:54:05 [end_date_ymd] => 2025-03-14 20:54:05 [RateCDR] => 1 ) [2025-03-14 20:54: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-03-14 17:54:05' and `end` < '2025-03-14 20:54: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-03-14 20:54:18] Production.INFO: count ==2263 [2025-03-14 20:54:18] Production.ERROR: pbx CDR StartTime 2025-03-14 17:54:05 - End Time 2025-03-14 20:54:05 [2025-03-14 20:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681415', 'tblTempUsageDetail_20' ) start [2025-03-14 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681415', 'tblTempUsageDetail_20' ) end [2025-03-14 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681415', 'tblTempVendorCDR_20' ) start [2025-03-14 20:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681415', 'tblTempVendorCDR_20' ) end [2025-03-14 20:54:18] Production.INFO: ProcessCDR(1,14681415,1,1,2) [2025-03-14 20:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681415,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:54:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681415,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681415', 'tblTempUsageDetail_20' ) start [2025-03-14 20:54:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681415', 'tblTempUsageDetail_20' ) end [2025-03-14 20:54:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 20:54:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 20:54:22] Production.INFO: ==21814== Releasing lock... [2025-03-14 20:54:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 20:54:22] Production.INFO: 45 MB #Memory Used# [2025-03-14 20:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 17:55:05 [end_date_ymd] => 2025-03-14 20:55:05 [RateCDR] => 1 ) [2025-03-14 20:55: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-03-14 17:55:05' and `end` < '2025-03-14 20:55: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-03-14 20:55:17] Production.INFO: count ==2261 [2025-03-14 20:55:18] Production.ERROR: pbx CDR StartTime 2025-03-14 17:55:05 - End Time 2025-03-14 20:55:05 [2025-03-14 20:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681420', 'tblTempUsageDetail_20' ) start [2025-03-14 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681420', 'tblTempUsageDetail_20' ) end [2025-03-14 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681420', 'tblTempVendorCDR_20' ) start [2025-03-14 20:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681420', 'tblTempVendorCDR_20' ) end [2025-03-14 20:55:18] Production.INFO: ProcessCDR(1,14681420,1,1,2) [2025-03-14 20:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681420,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681420,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681420', 'tblTempUsageDetail_20' ) start [2025-03-14 20:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681420', 'tblTempUsageDetail_20' ) end [2025-03-14 20:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 20:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 20:55:22] Production.INFO: ==21892== Releasing lock... [2025-03-14 20:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 20:55:22] Production.INFO: 44.75 MB #Memory Used# [2025-03-14 20:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 17:56:06 [end_date_ymd] => 2025-03-14 20:56:06 [RateCDR] => 1 ) [2025-03-14 20:56: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-03-14 17:56:06' and `end` < '2025-03-14 20:56: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-03-14 20:56:19] Production.INFO: count ==2242 [2025-03-14 20:56:19] Production.ERROR: pbx CDR StartTime 2025-03-14 17:56:06 - End Time 2025-03-14 20:56:06 [2025-03-14 20:56:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 20:56:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681425', 'tblTempUsageDetail_20' ) start [2025-03-14 20:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681425', 'tblTempUsageDetail_20' ) end [2025-03-14 20:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681425', 'tblTempVendorCDR_20' ) start [2025-03-14 20:56:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681425', 'tblTempVendorCDR_20' ) end [2025-03-14 20:56:20] Production.INFO: ProcessCDR(1,14681425,1,1,2) [2025-03-14 20:56:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:56:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681425,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:56:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:56:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681425,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681425', 'tblTempUsageDetail_20' ) start [2025-03-14 20:56:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681425', 'tblTempUsageDetail_20' ) end [2025-03-14 20:56:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 20:56:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 20:56:25] Production.INFO: ==21963== Releasing lock... [2025-03-14 20:56:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 20:56:25] Production.INFO: 45 MB #Memory Used# [2025-03-14 20:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 17:57:05 [end_date_ymd] => 2025-03-14 20:57:05 [RateCDR] => 1 ) [2025-03-14 20:57: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-03-14 17:57:05' and `end` < '2025-03-14 20:57: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-03-14 20:57:18] Production.INFO: count ==2233 [2025-03-14 20:57:19] Production.ERROR: pbx CDR StartTime 2025-03-14 17:57:05 - End Time 2025-03-14 20:57:05 [2025-03-14 20:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681430', 'tblTempUsageDetail_20' ) start [2025-03-14 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681430', 'tblTempUsageDetail_20' ) end [2025-03-14 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681430', 'tblTempVendorCDR_20' ) start [2025-03-14 20:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681430', 'tblTempVendorCDR_20' ) end [2025-03-14 20:57:19] Production.INFO: ProcessCDR(1,14681430,1,1,2) [2025-03-14 20:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:57:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681430,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:57:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:57:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681430,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681430', 'tblTempUsageDetail_20' ) start [2025-03-14 20:57:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681430', 'tblTempUsageDetail_20' ) end [2025-03-14 20:57:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 20:57:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 20:57:22] Production.INFO: ==22034== Releasing lock... [2025-03-14 20:57:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 20:57:22] Production.INFO: 44.5 MB #Memory Used# [2025-03-14 20:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 17:58:05 [end_date_ymd] => 2025-03-14 20:58:05 [RateCDR] => 1 ) [2025-03-14 20:58: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-03-14 17:58:05' and `end` < '2025-03-14 20:58: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-03-14 20:58:17] Production.INFO: count ==2221 [2025-03-14 20:58:18] Production.ERROR: pbx CDR StartTime 2025-03-14 17:58:05 - End Time 2025-03-14 20:58:05 [2025-03-14 20:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681435', 'tblTempUsageDetail_20' ) start [2025-03-14 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681435', 'tblTempUsageDetail_20' ) end [2025-03-14 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681435', 'tblTempVendorCDR_20' ) start [2025-03-14 20:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681435', 'tblTempVendorCDR_20' ) end [2025-03-14 20:58:18] Production.INFO: ProcessCDR(1,14681435,1,1,2) [2025-03-14 20:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681435,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:58:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681435,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681435', 'tblTempUsageDetail_20' ) start [2025-03-14 20:58:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681435', 'tblTempUsageDetail_20' ) end [2025-03-14 20:58:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 20:58:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 20:58:22] Production.INFO: ==22106== Releasing lock... [2025-03-14 20:58:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 20:58:22] Production.INFO: 44.75 MB #Memory Used# [2025-03-14 20:59:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 17:59:06 [end_date_ymd] => 2025-03-14 20:59:06 [RateCDR] => 1 ) [2025-03-14 20:59: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-03-14 17:59:06' and `end` < '2025-03-14 20:59: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-03-14 20:59:18] Production.INFO: count ==2213 [2025-03-14 20:59:19] Production.ERROR: pbx CDR StartTime 2025-03-14 17:59:06 - End Time 2025-03-14 20:59:06 [2025-03-14 20:59:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681440', 'tblTempUsageDetail_20' ) start [2025-03-14 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681440', 'tblTempUsageDetail_20' ) end [2025-03-14 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681440', 'tblTempVendorCDR_20' ) start [2025-03-14 20:59:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681440', 'tblTempVendorCDR_20' ) end [2025-03-14 20:59:19] Production.INFO: ProcessCDR(1,14681440,1,1,2) [2025-03-14 20:59:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:59:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681440,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 20:59:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:59:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681440,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 20:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681440', 'tblTempUsageDetail_20' ) start [2025-03-14 20:59:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681440', 'tblTempUsageDetail_20' ) end [2025-03-14 20:59:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 20:59:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 20:59:24] Production.INFO: ==22218== Releasing lock... [2025-03-14 20:59:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 20:59:24] Production.INFO: 44.75 MB #Memory Used# [2025-03-14 21:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 18:00:06 [end_date_ymd] => 2025-03-14 21:00:06 [RateCDR] => 1 ) [2025-03-14 21:00: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-03-14 18:00:06' and `end` < '2025-03-14 21:00: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-03-14 21:00:18] Production.INFO: count ==2200 [2025-03-14 21:00:19] Production.ERROR: pbx CDR StartTime 2025-03-14 18:00:06 - End Time 2025-03-14 21:00:06 [2025-03-14 21:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681446', 'tblTempUsageDetail_20' ) start [2025-03-14 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681446', 'tblTempUsageDetail_20' ) end [2025-03-14 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681446', 'tblTempVendorCDR_20' ) start [2025-03-14 21:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681446', 'tblTempVendorCDR_20' ) end [2025-03-14 21:00:19] Production.INFO: ProcessCDR(1,14681446,1,1,2) [2025-03-14 21:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:00:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681446,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:00:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:00:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681446,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681446', 'tblTempUsageDetail_20' ) start [2025-03-14 21:00:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681446', 'tblTempUsageDetail_20' ) end [2025-03-14 21:00:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 21:00:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 21:00:24] Production.INFO: ==22296== Releasing lock... [2025-03-14 21:00:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 21:00:24] Production.INFO: 44.25 MB #Memory Used# [2025-03-14 21:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 18:01:05 [end_date_ymd] => 2025-03-14 21:01:05 [RateCDR] => 1 ) [2025-03-14 21:01: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-03-14 18:01:05' and `end` < '2025-03-14 21:01: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-03-14 21:01:18] Production.INFO: count ==2101 [2025-03-14 21:01:18] Production.ERROR: pbx CDR StartTime 2025-03-14 18:01:05 - End Time 2025-03-14 21:01:05 [2025-03-14 21:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681451', 'tblTempUsageDetail_20' ) start [2025-03-14 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681451', 'tblTempUsageDetail_20' ) end [2025-03-14 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681451', 'tblTempVendorCDR_20' ) start [2025-03-14 21:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681451', 'tblTempVendorCDR_20' ) end [2025-03-14 21:01:18] Production.INFO: ProcessCDR(1,14681451,1,1,2) [2025-03-14 21:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681451,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681451,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681451', 'tblTempUsageDetail_20' ) start [2025-03-14 21:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681451', 'tblTempUsageDetail_20' ) end [2025-03-14 21:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 21:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 21:01:22] Production.INFO: ==22383== Releasing lock... [2025-03-14 21:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 21:01:22] Production.INFO: 43.5 MB #Memory Used# [2025-03-14 21:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 18:02:05 [end_date_ymd] => 2025-03-14 21:02:05 [RateCDR] => 1 ) [2025-03-14 21:02: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-03-14 18:02:05' and `end` < '2025-03-14 21:02: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-03-14 21:02:18] Production.INFO: count ==2075 [2025-03-14 21:02:18] Production.ERROR: pbx CDR StartTime 2025-03-14 18:02:05 - End Time 2025-03-14 21:02:05 [2025-03-14 21:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681456', 'tblTempUsageDetail_20' ) start [2025-03-14 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681456', 'tblTempUsageDetail_20' ) end [2025-03-14 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681456', 'tblTempVendorCDR_20' ) start [2025-03-14 21:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681456', 'tblTempVendorCDR_20' ) end [2025-03-14 21:02:18] Production.INFO: ProcessCDR(1,14681456,1,1,2) [2025-03-14 21:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681456,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681456,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681456', 'tblTempUsageDetail_20' ) start [2025-03-14 21:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681456', 'tblTempUsageDetail_20' ) end [2025-03-14 21:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 21:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 21:02:22] Production.INFO: ==22458== Releasing lock... [2025-03-14 21:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 21:02:22] Production.INFO: 43.75 MB #Memory Used# [2025-03-14 21:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 18:03:05 [end_date_ymd] => 2025-03-14 21:03:05 [RateCDR] => 1 ) [2025-03-14 21:03: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-03-14 18:03:05' and `end` < '2025-03-14 21:03: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-03-14 21:03:18] Production.INFO: count ==2071 [2025-03-14 21:03:18] Production.ERROR: pbx CDR StartTime 2025-03-14 18:03:05 - End Time 2025-03-14 21:03:05 [2025-03-14 21:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681461', 'tblTempUsageDetail_20' ) start [2025-03-14 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681461', 'tblTempUsageDetail_20' ) end [2025-03-14 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681461', 'tblTempVendorCDR_20' ) start [2025-03-14 21:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681461', 'tblTempVendorCDR_20' ) end [2025-03-14 21:03:18] Production.INFO: ProcessCDR(1,14681461,1,1,2) [2025-03-14 21:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681461,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:03:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681461,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:03:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681461', 'tblTempUsageDetail_20' ) start [2025-03-14 21:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681461', 'tblTempUsageDetail_20' ) end [2025-03-14 21:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 21:03:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 21:03:23] Production.INFO: ==22536== Releasing lock... [2025-03-14 21:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 21:03:23] Production.INFO: 43.25 MB #Memory Used# [2025-03-14 21:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 18:04:05 [end_date_ymd] => 2025-03-14 21:04:05 [RateCDR] => 1 ) [2025-03-14 21:04: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-03-14 18:04:05' and `end` < '2025-03-14 21:04: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-03-14 21:04:17] Production.INFO: count ==2082 [2025-03-14 21:04:18] Production.ERROR: pbx CDR StartTime 2025-03-14 18:04:05 - End Time 2025-03-14 21:04:05 [2025-03-14 21:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681466', 'tblTempUsageDetail_20' ) start [2025-03-14 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681466', 'tblTempUsageDetail_20' ) end [2025-03-14 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681466', 'tblTempVendorCDR_20' ) start [2025-03-14 21:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681466', 'tblTempVendorCDR_20' ) end [2025-03-14 21:04:18] Production.INFO: ProcessCDR(1,14681466,1,1,2) [2025-03-14 21:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681466,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681466,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681466', 'tblTempUsageDetail_20' ) start [2025-03-14 21:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681466', 'tblTempUsageDetail_20' ) end [2025-03-14 21:04:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 21:04:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 21:04:22] Production.INFO: ==22612== Releasing lock... [2025-03-14 21:04:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 21:04:22] Production.INFO: 43.75 MB #Memory Used# [2025-03-14 21:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 18:05:06 [end_date_ymd] => 2025-03-14 21:05:06 [RateCDR] => 1 ) [2025-03-14 21:05: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-03-14 18:05:06' and `end` < '2025-03-14 21:05: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-03-14 21:05:18] Production.INFO: count ==2094 [2025-03-14 21:05:19] Production.ERROR: pbx CDR StartTime 2025-03-14 18:05:06 - End Time 2025-03-14 21:05:06 [2025-03-14 21:05:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681471', 'tblTempUsageDetail_20' ) start [2025-03-14 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681471', 'tblTempUsageDetail_20' ) end [2025-03-14 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681471', 'tblTempVendorCDR_20' ) start [2025-03-14 21:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681471', 'tblTempVendorCDR_20' ) end [2025-03-14 21:05:19] Production.INFO: ProcessCDR(1,14681471,1,1,2) [2025-03-14 21:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:05:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681471,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:05:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:05:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681471,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681471', 'tblTempUsageDetail_20' ) start [2025-03-14 21:05:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681471', 'tblTempUsageDetail_20' ) end [2025-03-14 21:05:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 21:05:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 21:05:24] Production.INFO: ==22684== Releasing lock... [2025-03-14 21:05:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 21:05:24] Production.INFO: 43.75 MB #Memory Used# [2025-03-14 21:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 18:06:05 [end_date_ymd] => 2025-03-14 21:06:05 [RateCDR] => 1 ) [2025-03-14 21:06: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-03-14 18:06:05' and `end` < '2025-03-14 21:06: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-03-14 21:06:18] Production.INFO: count ==2099 [2025-03-14 21:06:19] Production.ERROR: pbx CDR StartTime 2025-03-14 18:06:05 - End Time 2025-03-14 21:06:05 [2025-03-14 21:06:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681476', 'tblTempUsageDetail_20' ) start [2025-03-14 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681476', 'tblTempUsageDetail_20' ) end [2025-03-14 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681476', 'tblTempVendorCDR_20' ) start [2025-03-14 21:06:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681476', 'tblTempVendorCDR_20' ) end [2025-03-14 21:06:19] Production.INFO: ProcessCDR(1,14681476,1,1,2) [2025-03-14 21:06:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:06:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681476,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:06:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681476,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681476', 'tblTempUsageDetail_20' ) start [2025-03-14 21:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681476', 'tblTempUsageDetail_20' ) end [2025-03-14 21:06:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 21:06:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 21:06:23] Production.INFO: ==22758== Releasing lock... [2025-03-14 21:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 21:06:23] Production.INFO: 43.75 MB #Memory Used# [2025-03-14 21:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 18:07:06 [end_date_ymd] => 2025-03-14 21:07:06 [RateCDR] => 1 ) [2025-03-14 21:07: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-03-14 18:07:06' and `end` < '2025-03-14 21:07: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-03-14 21:07:18] Production.INFO: count ==2118 [2025-03-14 21:07:19] Production.ERROR: pbx CDR StartTime 2025-03-14 18:07:06 - End Time 2025-03-14 21:07:06 [2025-03-14 21:07:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681481', 'tblTempUsageDetail_20' ) start [2025-03-14 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681481', 'tblTempUsageDetail_20' ) end [2025-03-14 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681481', 'tblTempVendorCDR_20' ) start [2025-03-14 21:07:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681481', 'tblTempVendorCDR_20' ) end [2025-03-14 21:07:19] Production.INFO: ProcessCDR(1,14681481,1,1,2) [2025-03-14 21:07:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:07:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681481,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:07:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:07:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681481,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681481', 'tblTempUsageDetail_20' ) start [2025-03-14 21:07:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681481', 'tblTempUsageDetail_20' ) end [2025-03-14 21:07:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 21:07:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 21:07:24] Production.INFO: ==22836== Releasing lock... [2025-03-14 21:07:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 21:07:24] Production.INFO: 44 MB #Memory Used# [2025-03-14 21:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 18:08:05 [end_date_ymd] => 2025-03-14 21:08:05 [RateCDR] => 1 ) [2025-03-14 21:08: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-03-14 18:08:05' and `end` < '2025-03-14 21:08: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-03-14 21:08:18] Production.INFO: count ==2118 [2025-03-14 21:08:18] Production.ERROR: pbx CDR StartTime 2025-03-14 18:08:05 - End Time 2025-03-14 21:08:05 [2025-03-14 21:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681486', 'tblTempUsageDetail_20' ) start [2025-03-14 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681486', 'tblTempUsageDetail_20' ) end [2025-03-14 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681486', 'tblTempVendorCDR_20' ) start [2025-03-14 21:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681486', 'tblTempVendorCDR_20' ) end [2025-03-14 21:08:18] Production.INFO: ProcessCDR(1,14681486,1,1,2) [2025-03-14 21:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:08:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681486,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:08:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681486,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681486', 'tblTempUsageDetail_20' ) start [2025-03-14 21:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681486', 'tblTempUsageDetail_20' ) end [2025-03-14 21:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 21:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 21:08:22] Production.INFO: ==22909== Releasing lock... [2025-03-14 21:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 21:08:22] Production.INFO: 43.75 MB #Memory Used# [2025-03-14 21:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 18:09:05 [end_date_ymd] => 2025-03-14 21:09:05 [RateCDR] => 1 ) [2025-03-14 21:09: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-03-14 18:09:05' and `end` < '2025-03-14 21:09: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-03-14 21:09:18] Production.INFO: count ==2114 [2025-03-14 21:09:18] Production.ERROR: pbx CDR StartTime 2025-03-14 18:09:05 - End Time 2025-03-14 21:09:05 [2025-03-14 21:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681491', 'tblTempUsageDetail_20' ) start [2025-03-14 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681491', 'tblTempUsageDetail_20' ) end [2025-03-14 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681491', 'tblTempVendorCDR_20' ) start [2025-03-14 21:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681491', 'tblTempVendorCDR_20' ) end [2025-03-14 21:09:18] Production.INFO: ProcessCDR(1,14681491,1,1,2) [2025-03-14 21:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:09:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681491,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:09:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:09:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681491,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681491', 'tblTempUsageDetail_20' ) start [2025-03-14 21:09:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681491', 'tblTempUsageDetail_20' ) end [2025-03-14 21:09:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 21:09:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 21:09:22] Production.INFO: ==22982== Releasing lock... [2025-03-14 21:09:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 21:09:22] Production.INFO: 43.75 MB #Memory Used# [2025-03-14 21:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 18:10:06 [end_date_ymd] => 2025-03-14 21:10:06 [RateCDR] => 1 ) [2025-03-14 21:10: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-03-14 18:10:06' and `end` < '2025-03-14 21:10: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-03-14 21:10:19] Production.INFO: count ==2123 [2025-03-14 21:10:20] Production.ERROR: pbx CDR StartTime 2025-03-14 18:10:06 - End Time 2025-03-14 21:10:06 [2025-03-14 21:10:20] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681496', 'tblTempUsageDetail_20' ) start [2025-03-14 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681496', 'tblTempUsageDetail_20' ) end [2025-03-14 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681496', 'tblTempVendorCDR_20' ) start [2025-03-14 21:10:20] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681496', 'tblTempVendorCDR_20' ) end [2025-03-14 21:10:20] Production.INFO: ProcessCDR(1,14681496,1,1,2) [2025-03-14 21:10:20] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681496,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:10:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681496,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681496', 'tblTempUsageDetail_20' ) start [2025-03-14 21:10:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681496', 'tblTempUsageDetail_20' ) end [2025-03-14 21:10:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 21:10:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 21:10:24] Production.INFO: ==23061== Releasing lock... [2025-03-14 21:10:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 21:10:24] Production.INFO: 43.75 MB #Memory Used# [2025-03-14 21:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 18:11:06 [end_date_ymd] => 2025-03-14 21:11:06 [RateCDR] => 1 ) [2025-03-14 21:11: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-03-14 18:11:06' and `end` < '2025-03-14 21:11: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-03-14 21:11:19] Production.INFO: count ==2073 [2025-03-14 21:11:19] Production.ERROR: pbx CDR StartTime 2025-03-14 18:11:06 - End Time 2025-03-14 21:11:06 [2025-03-14 21:11:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681502', 'tblTempUsageDetail_20' ) start [2025-03-14 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681502', 'tblTempUsageDetail_20' ) end [2025-03-14 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681502', 'tblTempVendorCDR_20' ) start [2025-03-14 21:11:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681502', 'tblTempVendorCDR_20' ) end [2025-03-14 21:11:19] Production.INFO: ProcessCDR(1,14681502,1,1,2) [2025-03-14 21:11:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681502,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681502,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681502', 'tblTempUsageDetail_20' ) start [2025-03-14 21:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681502', 'tblTempUsageDetail_20' ) end [2025-03-14 21:11:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 21:11:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 21:11:23] Production.INFO: ==23136== Releasing lock... [2025-03-14 21:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 21:11:23] Production.INFO: 43.25 MB #Memory Used# [2025-03-14 21:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 18:12:05 [end_date_ymd] => 2025-03-14 21:12:05 [RateCDR] => 1 ) [2025-03-14 21:12: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-03-14 18:12:05' and `end` < '2025-03-14 21:12: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-03-14 21:12:18] Production.INFO: count ==2072 [2025-03-14 21:12:19] Production.ERROR: pbx CDR StartTime 2025-03-14 18:12:05 - End Time 2025-03-14 21:12:05 [2025-03-14 21:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681507', 'tblTempUsageDetail_20' ) start [2025-03-14 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681507', 'tblTempUsageDetail_20' ) end [2025-03-14 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681507', 'tblTempVendorCDR_20' ) start [2025-03-14 21:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681507', 'tblTempVendorCDR_20' ) end [2025-03-14 21:12:19] Production.INFO: ProcessCDR(1,14681507,1,1,2) [2025-03-14 21:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681507,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:12:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681507,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681507', 'tblTempUsageDetail_20' ) start [2025-03-14 21:12:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681507', 'tblTempUsageDetail_20' ) end [2025-03-14 21:12:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 21:12:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 21:12:23] Production.INFO: ==23209== Releasing lock... [2025-03-14 21:12:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 21:12:23] Production.INFO: 43.25 MB #Memory Used# [2025-03-14 21:13:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 18:13:06 [end_date_ymd] => 2025-03-14 21:13:06 [RateCDR] => 1 ) [2025-03-14 21:13: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-03-14 18:13:06' and `end` < '2025-03-14 21:13: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-03-14 21:13:18] Production.INFO: count ==2071 [2025-03-14 21:13:19] Production.ERROR: pbx CDR StartTime 2025-03-14 18:13:06 - End Time 2025-03-14 21:13:06 [2025-03-14 21:13:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681512', 'tblTempUsageDetail_20' ) start [2025-03-14 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681512', 'tblTempUsageDetail_20' ) end [2025-03-14 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681512', 'tblTempVendorCDR_20' ) start [2025-03-14 21:13:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681512', 'tblTempVendorCDR_20' ) end [2025-03-14 21:13:19] Production.INFO: ProcessCDR(1,14681512,1,1,2) [2025-03-14 21:13:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:13:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681512,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:13:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681512,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681512', 'tblTempUsageDetail_20' ) start [2025-03-14 21:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681512', 'tblTempUsageDetail_20' ) end [2025-03-14 21:13:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 21:13:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 21:13:23] Production.INFO: ==23290== Releasing lock... [2025-03-14 21:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 21:13:23] Production.INFO: 43 MB #Memory Used# [2025-03-14 21:14:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 18:14:05 [end_date_ymd] => 2025-03-14 21:14:05 [RateCDR] => 1 ) [2025-03-14 21:14: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-03-14 18:14:05' and `end` < '2025-03-14 21:14: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-03-14 21:14:18] Production.INFO: count ==2067 [2025-03-14 21:14:18] Production.ERROR: pbx CDR StartTime 2025-03-14 18:14:05 - End Time 2025-03-14 21:14:05 [2025-03-14 21:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681517', 'tblTempUsageDetail_20' ) start [2025-03-14 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681517', 'tblTempUsageDetail_20' ) end [2025-03-14 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681517', 'tblTempVendorCDR_20' ) start [2025-03-14 21:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681517', 'tblTempVendorCDR_20' ) end [2025-03-14 21:14:18] Production.INFO: ProcessCDR(1,14681517,1,1,2) [2025-03-14 21:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:14:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681517,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:14:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:14:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681517,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681517', 'tblTempUsageDetail_20' ) start [2025-03-14 21:14:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681517', 'tblTempUsageDetail_20' ) end [2025-03-14 21:14:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 21:14:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 21:14:22] Production.INFO: ==23405== Releasing lock... [2025-03-14 21:14:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 21:14:22] Production.INFO: 43.25 MB #Memory Used# [2025-03-14 21:15:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 18:15:06 [end_date_ymd] => 2025-03-14 21:15:06 [RateCDR] => 1 ) [2025-03-14 21:15: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-03-14 18:15:06' and `end` < '2025-03-14 21:15: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-03-14 21:15:18] Production.INFO: count ==2065 [2025-03-14 21:15:19] Production.ERROR: pbx CDR StartTime 2025-03-14 18:15:06 - End Time 2025-03-14 21:15:06 [2025-03-14 21:15:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681522', 'tblTempUsageDetail_20' ) start [2025-03-14 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681522', 'tblTempUsageDetail_20' ) end [2025-03-14 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681522', 'tblTempVendorCDR_20' ) start [2025-03-14 21:15:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681522', 'tblTempVendorCDR_20' ) end [2025-03-14 21:15:19] Production.INFO: ProcessCDR(1,14681522,1,1,2) [2025-03-14 21:15:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:15:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681522,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:15:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:15:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681522,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681522', 'tblTempUsageDetail_20' ) start [2025-03-14 21:15:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681522', 'tblTempUsageDetail_20' ) end [2025-03-14 21:15:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 21:15:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 21:15:24] Production.INFO: ==23500== Releasing lock... [2025-03-14 21:15:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 21:15:24] Production.INFO: 43.5 MB #Memory Used# [2025-03-14 21:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 18:16:06 [end_date_ymd] => 2025-03-14 21:16:06 [RateCDR] => 1 ) [2025-03-14 21:16: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-03-14 18:16:06' and `end` < '2025-03-14 21:16: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-03-14 21:16:18] Production.INFO: count ==2061 [2025-03-14 21:16:19] Production.ERROR: pbx CDR StartTime 2025-03-14 18:16:06 - End Time 2025-03-14 21:16:06 [2025-03-14 21:16:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681527', 'tblTempUsageDetail_20' ) start [2025-03-14 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681527', 'tblTempUsageDetail_20' ) end [2025-03-14 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681527', 'tblTempVendorCDR_20' ) start [2025-03-14 21:16:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681527', 'tblTempVendorCDR_20' ) end [2025-03-14 21:16:19] Production.INFO: ProcessCDR(1,14681527,1,1,2) [2025-03-14 21:16:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:16:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681527,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:16:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681527,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681527', 'tblTempUsageDetail_20' ) start [2025-03-14 21:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681527', 'tblTempUsageDetail_20' ) end [2025-03-14 21:16:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 21:16:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 21:16:23] Production.INFO: ==23598== Releasing lock... [2025-03-14 21:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 21:16:23] Production.INFO: 43.5 MB #Memory Used# [2025-03-14 21:17:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 18:17:06 [end_date_ymd] => 2025-03-14 21:17:06 [RateCDR] => 1 ) [2025-03-14 21:17: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-03-14 18:17:06' and `end` < '2025-03-14 21:17: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-03-14 21:17:19] Production.INFO: count ==2066 [2025-03-14 21:17:19] Production.ERROR: pbx CDR StartTime 2025-03-14 18:17:06 - End Time 2025-03-14 21:17:06 [2025-03-14 21:17:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681532', 'tblTempUsageDetail_20' ) start [2025-03-14 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681532', 'tblTempUsageDetail_20' ) end [2025-03-14 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681532', 'tblTempVendorCDR_20' ) start [2025-03-14 21:17:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681532', 'tblTempVendorCDR_20' ) end [2025-03-14 21:17:19] Production.INFO: ProcessCDR(1,14681532,1,1,2) [2025-03-14 21:17:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:17:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681532,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:17:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:17:25] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681532,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681532', 'tblTempUsageDetail_20' ) start [2025-03-14 21:17:25] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681532', 'tblTempUsageDetail_20' ) end [2025-03-14 21:17:25] Production.ERROR: pbx prc_insertCDR start [2025-03-14 21:17:25] Production.ERROR: pbx prc_insertCDR end [2025-03-14 21:17:25] Production.INFO: ==23693== Releasing lock... [2025-03-14 21:17:25] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 21:17:25] Production.INFO: 43.25 MB #Memory Used# [2025-03-14 21:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 18:18:05 [end_date_ymd] => 2025-03-14 21:18:05 [RateCDR] => 1 ) [2025-03-14 21:18: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-03-14 18:18:05' and `end` < '2025-03-14 21:18: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-03-14 21:18:17] Production.INFO: count ==2062 [2025-03-14 21:18:18] Production.ERROR: pbx CDR StartTime 2025-03-14 18:18:05 - End Time 2025-03-14 21:18:05 [2025-03-14 21:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681537', 'tblTempUsageDetail_20' ) start [2025-03-14 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681537', 'tblTempUsageDetail_20' ) end [2025-03-14 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681537', 'tblTempVendorCDR_20' ) start [2025-03-14 21:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681537', 'tblTempVendorCDR_20' ) end [2025-03-14 21:18:18] Production.INFO: ProcessCDR(1,14681537,1,1,2) [2025-03-14 21:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:18:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681537,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:18:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:18:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681537,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681537', 'tblTempUsageDetail_20' ) start [2025-03-14 21:18:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681537', 'tblTempUsageDetail_20' ) end [2025-03-14 21:18:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 21:18:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 21:18:21] Production.INFO: ==23803== Releasing lock... [2025-03-14 21:18:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 21:18:21] Production.INFO: 43 MB #Memory Used# [2025-03-14 21:19:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 18:19:06 [end_date_ymd] => 2025-03-14 21:19:06 [RateCDR] => 1 ) [2025-03-14 21:19: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-03-14 18:19:06' and `end` < '2025-03-14 21:19: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-03-14 21:19:18] Production.INFO: count ==2070 [2025-03-14 21:19:19] Production.ERROR: pbx CDR StartTime 2025-03-14 18:19:06 - End Time 2025-03-14 21:19:06 [2025-03-14 21:19:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681542', 'tblTempUsageDetail_20' ) start [2025-03-14 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681542', 'tblTempUsageDetail_20' ) end [2025-03-14 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681542', 'tblTempVendorCDR_20' ) start [2025-03-14 21:19:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681542', 'tblTempVendorCDR_20' ) end [2025-03-14 21:19:19] Production.INFO: ProcessCDR(1,14681542,1,1,2) [2025-03-14 21:19:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:19:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681542,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:19:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:19:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681542,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681542', 'tblTempUsageDetail_20' ) start [2025-03-14 21:19:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681542', 'tblTempUsageDetail_20' ) end [2025-03-14 21:19:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 21:19:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 21:19:24] Production.INFO: ==23902== Releasing lock... [2025-03-14 21:19:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 21:19:24] Production.INFO: 43.25 MB #Memory Used# [2025-03-14 21:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 18:20:06 [end_date_ymd] => 2025-03-14 21:20:06 [RateCDR] => 1 ) [2025-03-14 21:20: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-03-14 18:20:06' and `end` < '2025-03-14 21:20: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-03-14 21:20:19] Production.INFO: count ==2070 [2025-03-14 21:20:19] Production.ERROR: pbx CDR StartTime 2025-03-14 18:20:06 - End Time 2025-03-14 21:20:06 [2025-03-14 21:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681548', 'tblTempUsageDetail_20' ) start [2025-03-14 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681548', 'tblTempUsageDetail_20' ) end [2025-03-14 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681548', 'tblTempVendorCDR_20' ) start [2025-03-14 21:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681548', 'tblTempVendorCDR_20' ) end [2025-03-14 21:20:19] Production.INFO: ProcessCDR(1,14681548,1,1,2) [2025-03-14 21:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681548,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681548,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681548', 'tblTempUsageDetail_20' ) start [2025-03-14 21:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681548', 'tblTempUsageDetail_20' ) end [2025-03-14 21:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 21:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 21:20:23] Production.INFO: ==23995== Releasing lock... [2025-03-14 21:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 21:20:23] Production.INFO: 43.25 MB #Memory Used# [2025-03-14 21:21:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 18:21:06 [end_date_ymd] => 2025-03-14 21:21:06 [RateCDR] => 1 ) [2025-03-14 21:21: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-03-14 18:21:06' and `end` < '2025-03-14 21:21: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-03-14 21:21:18] Production.INFO: count ==2011 [2025-03-14 21:21:19] Production.ERROR: pbx CDR StartTime 2025-03-14 18:21:06 - End Time 2025-03-14 21:21:06 [2025-03-14 21:21:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681553', 'tblTempUsageDetail_20' ) start [2025-03-14 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681553', 'tblTempUsageDetail_20' ) end [2025-03-14 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681553', 'tblTempVendorCDR_20' ) start [2025-03-14 21:21:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681553', 'tblTempVendorCDR_20' ) end [2025-03-14 21:21:19] Production.INFO: ProcessCDR(1,14681553,1,1,2) [2025-03-14 21:21:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:21:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681553,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:21:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:21:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681553,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681553', 'tblTempUsageDetail_20' ) start [2025-03-14 21:21:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681553', 'tblTempUsageDetail_20' ) end [2025-03-14 21:21:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 21:21:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 21:21:24] Production.INFO: ==24098== Releasing lock... [2025-03-14 21:21:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 21:21:24] Production.INFO: 43 MB #Memory Used# [2025-03-14 21:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 18:22:05 [end_date_ymd] => 2025-03-14 21:22:05 [RateCDR] => 1 ) [2025-03-14 21:22: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-03-14 18:22:05' and `end` < '2025-03-14 21:22: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-03-14 21:22:17] Production.INFO: count ==2006 [2025-03-14 21:22:18] Production.ERROR: pbx CDR StartTime 2025-03-14 18:22:05 - End Time 2025-03-14 21:22:05 [2025-03-14 21:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681558', 'tblTempUsageDetail_20' ) start [2025-03-14 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681558', 'tblTempUsageDetail_20' ) end [2025-03-14 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681558', 'tblTempVendorCDR_20' ) start [2025-03-14 21:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681558', 'tblTempVendorCDR_20' ) end [2025-03-14 21:22:18] Production.INFO: ProcessCDR(1,14681558,1,1,2) [2025-03-14 21:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:22:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681558,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:22:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:22:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681558,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681558', 'tblTempUsageDetail_20' ) start [2025-03-14 21:22:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681558', 'tblTempUsageDetail_20' ) end [2025-03-14 21:22:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 21:22:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 21:22:23] Production.INFO: ==24195== Releasing lock... [2025-03-14 21:22:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 21:22:23] Production.INFO: 43 MB #Memory Used# [2025-03-14 21:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 18:23:06 [end_date_ymd] => 2025-03-14 21:23:06 [RateCDR] => 1 ) [2025-03-14 21:23: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-03-14 18:23:06' and `end` < '2025-03-14 21:23: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-03-14 21:23:18] Production.INFO: count ==2005 [2025-03-14 21:23:19] Production.ERROR: pbx CDR StartTime 2025-03-14 18:23:06 - End Time 2025-03-14 21:23:06 [2025-03-14 21:23:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681563', 'tblTempUsageDetail_20' ) start [2025-03-14 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681563', 'tblTempUsageDetail_20' ) end [2025-03-14 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681563', 'tblTempVendorCDR_20' ) start [2025-03-14 21:23:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681563', 'tblTempVendorCDR_20' ) end [2025-03-14 21:23:19] Production.INFO: ProcessCDR(1,14681563,1,1,2) [2025-03-14 21:23:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:23:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681563,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:23:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:23:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681563,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681563', 'tblTempUsageDetail_20' ) start [2025-03-14 21:23:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681563', 'tblTempUsageDetail_20' ) end [2025-03-14 21:23:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 21:23:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 21:23:23] Production.INFO: ==24295== Releasing lock... [2025-03-14 21:23:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 21:23:23] Production.INFO: 42.75 MB #Memory Used# [2025-03-14 21:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 18:24:05 [end_date_ymd] => 2025-03-14 21:24:05 [RateCDR] => 1 ) [2025-03-14 21:24: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-03-14 18:24:05' and `end` < '2025-03-14 21:24: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-03-14 21:24:17] Production.INFO: count ==2005 [2025-03-14 21:24:18] Production.ERROR: pbx CDR StartTime 2025-03-14 18:24:05 - End Time 2025-03-14 21:24:05 [2025-03-14 21:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681568', 'tblTempUsageDetail_20' ) start [2025-03-14 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681568', 'tblTempUsageDetail_20' ) end [2025-03-14 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681568', 'tblTempVendorCDR_20' ) start [2025-03-14 21:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681568', 'tblTempVendorCDR_20' ) end [2025-03-14 21:24:18] Production.INFO: ProcessCDR(1,14681568,1,1,2) [2025-03-14 21:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:24:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681568,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:24:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:24:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681568,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:24:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681568', 'tblTempUsageDetail_20' ) start [2025-03-14 21:24:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681568', 'tblTempUsageDetail_20' ) end [2025-03-14 21:24:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 21:24:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 21:24:23] Production.INFO: ==24388== Releasing lock... [2025-03-14 21:24:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 21:24:23] Production.INFO: 42.75 MB #Memory Used# [2025-03-14 21:25:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 18:25:06 [end_date_ymd] => 2025-03-14 21:25:06 [RateCDR] => 1 ) [2025-03-14 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-03-14 18:25:06' and `end` < '2025-03-14 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-03-14 21:25:18] Production.INFO: count ==2002 [2025-03-14 21:25:19] Production.ERROR: pbx CDR StartTime 2025-03-14 18:25:06 - End Time 2025-03-14 21:25:06 [2025-03-14 21:25:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681573', 'tblTempUsageDetail_20' ) start [2025-03-14 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681573', 'tblTempUsageDetail_20' ) end [2025-03-14 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681573', 'tblTempVendorCDR_20' ) start [2025-03-14 21:25:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681573', 'tblTempVendorCDR_20' ) end [2025-03-14 21:25:19] Production.INFO: ProcessCDR(1,14681573,1,1,2) [2025-03-14 21:25:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:25:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681573,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:25:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681573,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681573', 'tblTempUsageDetail_20' ) start [2025-03-14 21:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681573', 'tblTempUsageDetail_20' ) end [2025-03-14 21:25:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 21:25:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 21:25:22] Production.INFO: ==24487== Releasing lock... [2025-03-14 21:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 21:25:22] Production.INFO: 42.75 MB #Memory Used# [2025-03-14 21:26:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 18:26:06 [end_date_ymd] => 2025-03-14 21:26:06 [RateCDR] => 1 ) [2025-03-14 21:26: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-03-14 18:26:06' and `end` < '2025-03-14 21:26: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-03-14 21:26:18] Production.INFO: count ==1996 [2025-03-14 21:26:18] Production.ERROR: pbx CDR StartTime 2025-03-14 18:26:06 - End Time 2025-03-14 21:26:06 [2025-03-14 21:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681578', 'tblTempUsageDetail_20' ) start [2025-03-14 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681578', 'tblTempUsageDetail_20' ) end [2025-03-14 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681578', 'tblTempVendorCDR_20' ) start [2025-03-14 21:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681578', 'tblTempVendorCDR_20' ) end [2025-03-14 21:26:18] Production.INFO: ProcessCDR(1,14681578,1,1,2) [2025-03-14 21:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:26:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681578,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:26:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:26:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681578,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681578', 'tblTempUsageDetail_20' ) start [2025-03-14 21:26:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681578', 'tblTempUsageDetail_20' ) end [2025-03-14 21:26:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 21:26:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 21:26:22] Production.INFO: ==24587== Releasing lock... [2025-03-14 21:26:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 21:26:22] Production.INFO: 43 MB #Memory Used# [2025-03-14 21:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 18:27:06 [end_date_ymd] => 2025-03-14 21:27:06 [RateCDR] => 1 ) [2025-03-14 21:27: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-03-14 18:27:06' and `end` < '2025-03-14 21:27: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-03-14 21:27:18] Production.INFO: count ==1994 [2025-03-14 21:27:18] Production.ERROR: pbx CDR StartTime 2025-03-14 18:27:06 - End Time 2025-03-14 21:27:06 [2025-03-14 21:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 21:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681583', 'tblTempUsageDetail_20' ) start [2025-03-14 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681583', 'tblTempUsageDetail_20' ) end [2025-03-14 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681583', 'tblTempVendorCDR_20' ) start [2025-03-14 21:27:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681583', 'tblTempVendorCDR_20' ) end [2025-03-14 21:27:19] Production.INFO: ProcessCDR(1,14681583,1,1,2) [2025-03-14 21:27:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:27:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681583,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:27:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681583,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681583', 'tblTempUsageDetail_20' ) start [2025-03-14 21:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681583', 'tblTempUsageDetail_20' ) end [2025-03-14 21:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 21:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 21:27:22] Production.INFO: ==24688== Releasing lock... [2025-03-14 21:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 21:27:22] Production.INFO: 42.75 MB #Memory Used# [2025-03-14 21:28:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 18:28:06 [end_date_ymd] => 2025-03-14 21:28:06 [RateCDR] => 1 ) [2025-03-14 21:28: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-03-14 18:28:06' and `end` < '2025-03-14 21:28: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-03-14 21:28:18] Production.INFO: count ==1997 [2025-03-14 21:28:19] Production.ERROR: pbx CDR StartTime 2025-03-14 18:28:06 - End Time 2025-03-14 21:28:06 [2025-03-14 21:28:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681588', 'tblTempUsageDetail_20' ) start [2025-03-14 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681588', 'tblTempUsageDetail_20' ) end [2025-03-14 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681588', 'tblTempVendorCDR_20' ) start [2025-03-14 21:28:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681588', 'tblTempVendorCDR_20' ) end [2025-03-14 21:28:19] Production.INFO: ProcessCDR(1,14681588,1,1,2) [2025-03-14 21:28:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:28:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681588,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:28:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:28:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681588,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681588', 'tblTempUsageDetail_20' ) start [2025-03-14 21:28:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681588', 'tblTempUsageDetail_20' ) end [2025-03-14 21:28:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 21:28:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 21:28:24] Production.INFO: ==24784== Releasing lock... [2025-03-14 21:28:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 21:28:24] Production.INFO: 42.75 MB #Memory Used# [2025-03-14 21:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 18:29:06 [end_date_ymd] => 2025-03-14 21:29:06 [RateCDR] => 1 ) [2025-03-14 21:29: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-03-14 18:29:06' and `end` < '2025-03-14 21:29: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-03-14 21:29:18] Production.INFO: count ==1991 [2025-03-14 21:29:19] Production.ERROR: pbx CDR StartTime 2025-03-14 18:29:06 - End Time 2025-03-14 21:29:06 [2025-03-14 21:29:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681593', 'tblTempUsageDetail_20' ) start [2025-03-14 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681593', 'tblTempUsageDetail_20' ) end [2025-03-14 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681593', 'tblTempVendorCDR_20' ) start [2025-03-14 21:29:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681593', 'tblTempVendorCDR_20' ) end [2025-03-14 21:29:19] Production.INFO: ProcessCDR(1,14681593,1,1,2) [2025-03-14 21:29:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681593,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681593,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681593', 'tblTempUsageDetail_20' ) start [2025-03-14 21:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681593', 'tblTempUsageDetail_20' ) end [2025-03-14 21:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 21:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 21:29:22] Production.INFO: ==24879== Releasing lock... [2025-03-14 21:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 21:29:22] Production.INFO: 43 MB #Memory Used# [2025-03-14 21:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 18:30:06 [end_date_ymd] => 2025-03-14 21:30:06 [RateCDR] => 1 ) [2025-03-14 21:30: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-03-14 18:30:06' and `end` < '2025-03-14 21:30: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-03-14 21:30:18] Production.INFO: count ==2001 [2025-03-14 21:30:19] Production.ERROR: pbx CDR StartTime 2025-03-14 18:30:06 - End Time 2025-03-14 21:30:06 [2025-03-14 21:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681599', 'tblTempUsageDetail_20' ) start [2025-03-14 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681599', 'tblTempUsageDetail_20' ) end [2025-03-14 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681599', 'tblTempVendorCDR_20' ) start [2025-03-14 21:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681599', 'tblTempVendorCDR_20' ) end [2025-03-14 21:30:19] Production.INFO: ProcessCDR(1,14681599,1,1,2) [2025-03-14 21:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:30:22] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681599,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:30:22] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:30:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681599,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681599', 'tblTempUsageDetail_20' ) start [2025-03-14 21:30:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681599', 'tblTempUsageDetail_20' ) end [2025-03-14 21:30:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 21:30:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 21:30:24] Production.INFO: ==25020== Releasing lock... [2025-03-14 21:30:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 21:30:24] Production.INFO: 42.75 MB #Memory Used# [2025-03-14 21:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 18:31:05 [end_date_ymd] => 2025-03-14 21:31:05 [RateCDR] => 1 ) [2025-03-14 21:31: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-03-14 18:31:05' and `end` < '2025-03-14 21:31: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-03-14 21:31:18] Production.INFO: count ==1971 [2025-03-14 21:31:18] Production.ERROR: pbx CDR StartTime 2025-03-14 18:31:05 - End Time 2025-03-14 21:31:05 [2025-03-14 21:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681604', 'tblTempUsageDetail_20' ) start [2025-03-14 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681604', 'tblTempUsageDetail_20' ) end [2025-03-14 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681604', 'tblTempVendorCDR_20' ) start [2025-03-14 21:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681604', 'tblTempVendorCDR_20' ) end [2025-03-14 21:31:18] Production.INFO: ProcessCDR(1,14681604,1,1,2) [2025-03-14 21:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681604,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:31:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681604,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681604', 'tblTempUsageDetail_20' ) start [2025-03-14 21:31:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681604', 'tblTempUsageDetail_20' ) end [2025-03-14 21:31:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 21:31:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 21:31:22] Production.INFO: ==25115== Releasing lock... [2025-03-14 21:31:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 21:31:22] Production.INFO: 42.5 MB #Memory Used# [2025-03-14 21:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 18:32:05 [end_date_ymd] => 2025-03-14 21:32:05 [RateCDR] => 1 ) [2025-03-14 21:32: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-03-14 18:32:05' and `end` < '2025-03-14 21:32: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-03-14 21:32:17] Production.INFO: count ==1973 [2025-03-14 21:32:18] Production.ERROR: pbx CDR StartTime 2025-03-14 18:32:05 - End Time 2025-03-14 21:32:05 [2025-03-14 21:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681609', 'tblTempUsageDetail_20' ) start [2025-03-14 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681609', 'tblTempUsageDetail_20' ) end [2025-03-14 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681609', 'tblTempVendorCDR_20' ) start [2025-03-14 21:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681609', 'tblTempVendorCDR_20' ) end [2025-03-14 21:32:18] Production.INFO: ProcessCDR(1,14681609,1,1,2) [2025-03-14 21:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681609,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:32:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681609,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681609', 'tblTempUsageDetail_20' ) start [2025-03-14 21:32:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681609', 'tblTempUsageDetail_20' ) end [2025-03-14 21:32:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 21:32:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 21:32:22] Production.INFO: ==25209== Releasing lock... [2025-03-14 21:32:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 21:32:22] Production.INFO: 42.5 MB #Memory Used# [2025-03-14 21:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 18:33:05 [end_date_ymd] => 2025-03-14 21:33:05 [RateCDR] => 1 ) [2025-03-14 21:33: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-03-14 18:33:05' and `end` < '2025-03-14 21:33: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-03-14 21:33:18] Production.INFO: count ==1972 [2025-03-14 21:33:18] Production.ERROR: pbx CDR StartTime 2025-03-14 18:33:05 - End Time 2025-03-14 21:33:05 [2025-03-14 21:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681614', 'tblTempUsageDetail_20' ) start [2025-03-14 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681614', 'tblTempUsageDetail_20' ) end [2025-03-14 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681614', 'tblTempVendorCDR_20' ) start [2025-03-14 21:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681614', 'tblTempVendorCDR_20' ) end [2025-03-14 21:33:18] Production.INFO: ProcessCDR(1,14681614,1,1,2) [2025-03-14 21:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681614,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:33:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681614,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681614', 'tblTempUsageDetail_20' ) start [2025-03-14 21:33:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681614', 'tblTempUsageDetail_20' ) end [2025-03-14 21:33:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 21:33:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 21:33:22] Production.INFO: ==25309== Releasing lock... [2025-03-14 21:33:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 21:33:22] Production.INFO: 42.75 MB #Memory Used# [2025-03-14 21:34:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 18:34:06 [end_date_ymd] => 2025-03-14 21:34:06 [RateCDR] => 1 ) [2025-03-14 21:34: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-03-14 18:34:06' and `end` < '2025-03-14 21:34: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-03-14 21:34:18] Production.INFO: count ==1972 [2025-03-14 21:34:19] Production.ERROR: pbx CDR StartTime 2025-03-14 18:34:06 - End Time 2025-03-14 21:34:06 [2025-03-14 21:34:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681619', 'tblTempUsageDetail_20' ) start [2025-03-14 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681619', 'tblTempUsageDetail_20' ) end [2025-03-14 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681619', 'tblTempVendorCDR_20' ) start [2025-03-14 21:34:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681619', 'tblTempVendorCDR_20' ) end [2025-03-14 21:34:19] Production.INFO: ProcessCDR(1,14681619,1,1,2) [2025-03-14 21:34:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:34:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681619,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:34:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:34:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681619,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681619', 'tblTempUsageDetail_20' ) start [2025-03-14 21:34:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681619', 'tblTempUsageDetail_20' ) end [2025-03-14 21:34:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 21:34:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 21:34:24] Production.INFO: ==25409== Releasing lock... [2025-03-14 21:34:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 21:34:24] Production.INFO: 42.5 MB #Memory Used# [2025-03-14 21:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 18:35:05 [end_date_ymd] => 2025-03-14 21:35:05 [RateCDR] => 1 ) [2025-03-14 21:35: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-03-14 18:35:05' and `end` < '2025-03-14 21:35: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-03-14 21:35:17] Production.INFO: count ==1974 [2025-03-14 21:35:18] Production.ERROR: pbx CDR StartTime 2025-03-14 18:35:05 - End Time 2025-03-14 21:35:05 [2025-03-14 21:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681624', 'tblTempUsageDetail_20' ) start [2025-03-14 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681624', 'tblTempUsageDetail_20' ) end [2025-03-14 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681624', 'tblTempVendorCDR_20' ) start [2025-03-14 21:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681624', 'tblTempVendorCDR_20' ) end [2025-03-14 21:35:18] Production.INFO: ProcessCDR(1,14681624,1,1,2) [2025-03-14 21:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681624,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681624,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681624', 'tblTempUsageDetail_20' ) start [2025-03-14 21:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681624', 'tblTempUsageDetail_20' ) end [2025-03-14 21:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 21:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 21:35:21] Production.INFO: ==25503== Releasing lock... [2025-03-14 21:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 21:35:21] Production.INFO: 42.5 MB #Memory Used# [2025-03-14 21:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 18:36:05 [end_date_ymd] => 2025-03-14 21:36:05 [RateCDR] => 1 ) [2025-03-14 21:36: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-03-14 18:36:05' and `end` < '2025-03-14 21:36: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-03-14 21:36:18] Production.INFO: count ==1973 [2025-03-14 21:36:18] Production.ERROR: pbx CDR StartTime 2025-03-14 18:36:05 - End Time 2025-03-14 21:36:05 [2025-03-14 21:36:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681629', 'tblTempUsageDetail_20' ) start [2025-03-14 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681629', 'tblTempUsageDetail_20' ) end [2025-03-14 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681629', 'tblTempVendorCDR_20' ) start [2025-03-14 21:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681629', 'tblTempVendorCDR_20' ) end [2025-03-14 21:36:18] Production.INFO: ProcessCDR(1,14681629,1,1,2) [2025-03-14 21:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681629,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:36:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681629,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681629', 'tblTempUsageDetail_20' ) start [2025-03-14 21:36:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681629', 'tblTempUsageDetail_20' ) end [2025-03-14 21:36:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 21:36:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 21:36:22] Production.INFO: ==25599== Releasing lock... [2025-03-14 21:36:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 21:36:22] Production.INFO: 42.5 MB #Memory Used# [2025-03-14 21:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 18:37:05 [end_date_ymd] => 2025-03-14 21:37:05 [RateCDR] => 1 ) [2025-03-14 21:37: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-03-14 18:37:05' and `end` < '2025-03-14 21:37: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-03-14 21:37:18] Production.INFO: count ==1979 [2025-03-14 21:37:19] Production.ERROR: pbx CDR StartTime 2025-03-14 18:37:05 - End Time 2025-03-14 21:37:05 [2025-03-14 21:37:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681634', 'tblTempUsageDetail_20' ) start [2025-03-14 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681634', 'tblTempUsageDetail_20' ) end [2025-03-14 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681634', 'tblTempVendorCDR_20' ) start [2025-03-14 21:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681634', 'tblTempVendorCDR_20' ) end [2025-03-14 21:37:19] Production.INFO: ProcessCDR(1,14681634,1,1,2) [2025-03-14 21:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681634,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681634,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681634', 'tblTempUsageDetail_20' ) start [2025-03-14 21:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681634', 'tblTempUsageDetail_20' ) end [2025-03-14 21:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 21:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 21:37:22] Production.INFO: ==25697== Releasing lock... [2025-03-14 21:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 21:37:22] Production.INFO: 42.75 MB #Memory Used# [2025-03-14 21:38:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 18:38:06 [end_date_ymd] => 2025-03-14 21:38:06 [RateCDR] => 1 ) [2025-03-14 21:38: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-03-14 18:38:06' and `end` < '2025-03-14 21:38: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-03-14 21:38:18] Production.INFO: count ==1973 [2025-03-14 21:38:19] Production.ERROR: pbx CDR StartTime 2025-03-14 18:38:06 - End Time 2025-03-14 21:38:06 [2025-03-14 21:38:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681639', 'tblTempUsageDetail_20' ) start [2025-03-14 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681639', 'tblTempUsageDetail_20' ) end [2025-03-14 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681639', 'tblTempVendorCDR_20' ) start [2025-03-14 21:38:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681639', 'tblTempVendorCDR_20' ) end [2025-03-14 21:38:19] Production.INFO: ProcessCDR(1,14681639,1,1,2) [2025-03-14 21:38:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681639,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681639,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681639', 'tblTempUsageDetail_20' ) start [2025-03-14 21:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681639', 'tblTempUsageDetail_20' ) end [2025-03-14 21:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 21:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 21:38:22] Production.INFO: ==25796== Releasing lock... [2025-03-14 21:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 21:38:22] Production.INFO: 42.75 MB #Memory Used# [2025-03-14 21:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 18:39:05 [end_date_ymd] => 2025-03-14 21:39:05 [RateCDR] => 1 ) [2025-03-14 21:39: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-03-14 18:39:05' and `end` < '2025-03-14 21:39: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-03-14 21:39:17] Production.INFO: count ==1962 [2025-03-14 21:39:18] Production.ERROR: pbx CDR StartTime 2025-03-14 18:39:05 - End Time 2025-03-14 21:39:05 [2025-03-14 21:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681644', 'tblTempUsageDetail_20' ) start [2025-03-14 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681644', 'tblTempUsageDetail_20' ) end [2025-03-14 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681644', 'tblTempVendorCDR_20' ) start [2025-03-14 21:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681644', 'tblTempVendorCDR_20' ) end [2025-03-14 21:39:18] Production.INFO: ProcessCDR(1,14681644,1,1,2) [2025-03-14 21:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:39:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681644,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:39:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:39:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681644,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681644', 'tblTempUsageDetail_20' ) start [2025-03-14 21:39:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681644', 'tblTempUsageDetail_20' ) end [2025-03-14 21:39:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 21:39:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 21:39:23] Production.INFO: ==25891== Releasing lock... [2025-03-14 21:39:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 21:39:23] Production.INFO: 42.5 MB #Memory Used# [2025-03-14 21:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 18:40:06 [end_date_ymd] => 2025-03-14 21:40:06 [RateCDR] => 1 ) [2025-03-14 21:40: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-03-14 18:40:06' and `end` < '2025-03-14 21:40: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-03-14 21:40:19] Production.INFO: count ==1959 [2025-03-14 21:40:19] Production.ERROR: pbx CDR StartTime 2025-03-14 18:40:06 - End Time 2025-03-14 21:40:06 [2025-03-14 21:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681650', 'tblTempUsageDetail_20' ) start [2025-03-14 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681650', 'tblTempUsageDetail_20' ) end [2025-03-14 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681650', 'tblTempVendorCDR_20' ) start [2025-03-14 21:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681650', 'tblTempVendorCDR_20' ) end [2025-03-14 21:40:19] Production.INFO: ProcessCDR(1,14681650,1,1,2) [2025-03-14 21:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:40:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681650,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:40:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681650,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681650', 'tblTempUsageDetail_20' ) start [2025-03-14 21:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681650', 'tblTempUsageDetail_20' ) end [2025-03-14 21:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 21:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 21:40:23] Production.INFO: ==25990== Releasing lock... [2025-03-14 21:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 21:40:23] Production.INFO: 42.75 MB #Memory Used# [2025-03-14 21:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 18:41:05 [end_date_ymd] => 2025-03-14 21:41:05 [RateCDR] => 1 ) [2025-03-14 21:41: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-03-14 18:41:05' and `end` < '2025-03-14 21:41: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-03-14 21:41:17] Production.INFO: count ==1888 [2025-03-14 21:41:18] Production.ERROR: pbx CDR StartTime 2025-03-14 18:41:05 - End Time 2025-03-14 21:41:05 [2025-03-14 21:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681655', 'tblTempUsageDetail_20' ) start [2025-03-14 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681655', 'tblTempUsageDetail_20' ) end [2025-03-14 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681655', 'tblTempVendorCDR_20' ) start [2025-03-14 21:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681655', 'tblTempVendorCDR_20' ) end [2025-03-14 21:41:18] Production.INFO: ProcessCDR(1,14681655,1,1,2) [2025-03-14 21:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:41:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681655,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:41:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:41:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681655,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681655', 'tblTempUsageDetail_20' ) start [2025-03-14 21:41:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681655', 'tblTempUsageDetail_20' ) end [2025-03-14 21:41:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 21:41:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 21:41:23] Production.INFO: ==26072== Releasing lock... [2025-03-14 21:41:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 21:41:23] Production.INFO: 42.25 MB #Memory Used# [2025-03-14 21:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 18:42:06 [end_date_ymd] => 2025-03-14 21:42:06 [RateCDR] => 1 ) [2025-03-14 21:42: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-03-14 18:42:06' and `end` < '2025-03-14 21:42: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-03-14 21:42:18] Production.INFO: count ==1888 [2025-03-14 21:42:19] Production.ERROR: pbx CDR StartTime 2025-03-14 18:42:06 - End Time 2025-03-14 21:42:06 [2025-03-14 21:42:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681660', 'tblTempUsageDetail_20' ) start [2025-03-14 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681660', 'tblTempUsageDetail_20' ) end [2025-03-14 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681660', 'tblTempVendorCDR_20' ) start [2025-03-14 21:42:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681660', 'tblTempVendorCDR_20' ) end [2025-03-14 21:42:19] Production.INFO: ProcessCDR(1,14681660,1,1,2) [2025-03-14 21:42:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:42:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681660,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:42:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:42:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681660,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681660', 'tblTempUsageDetail_20' ) start [2025-03-14 21:42:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681660', 'tblTempUsageDetail_20' ) end [2025-03-14 21:42:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 21:42:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 21:42:23] Production.INFO: ==26152== Releasing lock... [2025-03-14 21:42:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 21:42:23] Production.INFO: 42.25 MB #Memory Used# [2025-03-14 21:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 18:43:05 [end_date_ymd] => 2025-03-14 21:43:05 [RateCDR] => 1 ) [2025-03-14 21:43: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-03-14 18:43:05' and `end` < '2025-03-14 21:43: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-03-14 21:43:17] Production.INFO: count ==1887 [2025-03-14 21:43:18] Production.ERROR: pbx CDR StartTime 2025-03-14 18:43:05 - End Time 2025-03-14 21:43:05 [2025-03-14 21:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681665', 'tblTempUsageDetail_20' ) start [2025-03-14 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681665', 'tblTempUsageDetail_20' ) end [2025-03-14 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681665', 'tblTempVendorCDR_20' ) start [2025-03-14 21:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681665', 'tblTempVendorCDR_20' ) end [2025-03-14 21:43:18] Production.INFO: ProcessCDR(1,14681665,1,1,2) [2025-03-14 21:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:43:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681665,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:43:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:43:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681665,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681665', 'tblTempUsageDetail_20' ) start [2025-03-14 21:43:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681665', 'tblTempUsageDetail_20' ) end [2025-03-14 21:43:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 21:43:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 21:43:22] Production.INFO: ==26231== Releasing lock... [2025-03-14 21:43:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 21:43:22] Production.INFO: 42.25 MB #Memory Used# [2025-03-14 21:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 18:44:06 [end_date_ymd] => 2025-03-14 21:44:06 [RateCDR] => 1 ) [2025-03-14 21:44: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-03-14 18:44:06' and `end` < '2025-03-14 21:44: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-03-14 21:44:18] Production.INFO: count ==1870 [2025-03-14 21:44:19] Production.ERROR: pbx CDR StartTime 2025-03-14 18:44:06 - End Time 2025-03-14 21:44:06 [2025-03-14 21:44:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681670', 'tblTempUsageDetail_20' ) start [2025-03-14 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681670', 'tblTempUsageDetail_20' ) end [2025-03-14 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681670', 'tblTempVendorCDR_20' ) start [2025-03-14 21:44:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681670', 'tblTempVendorCDR_20' ) end [2025-03-14 21:44:19] Production.INFO: ProcessCDR(1,14681670,1,1,2) [2025-03-14 21:44:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:44:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681670,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:44:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681670,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681670', 'tblTempUsageDetail_20' ) start [2025-03-14 21:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681670', 'tblTempUsageDetail_20' ) end [2025-03-14 21:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 21:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 21:44:22] Production.INFO: ==26313== Releasing lock... [2025-03-14 21:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 21:44:22] Production.INFO: 42 MB #Memory Used# [2025-03-14 21:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 18:45:05 [end_date_ymd] => 2025-03-14 21:45:05 [RateCDR] => 1 ) [2025-03-14 21:45: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-03-14 18:45:05' and `end` < '2025-03-14 21:45: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-03-14 21:45:17] Production.INFO: count ==1873 [2025-03-14 21:45:18] Production.ERROR: pbx CDR StartTime 2025-03-14 18:45:05 - End Time 2025-03-14 21:45:05 [2025-03-14 21:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681675', 'tblTempUsageDetail_20' ) start [2025-03-14 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681675', 'tblTempUsageDetail_20' ) end [2025-03-14 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681675', 'tblTempVendorCDR_20' ) start [2025-03-14 21:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681675', 'tblTempVendorCDR_20' ) end [2025-03-14 21:45:18] Production.INFO: ProcessCDR(1,14681675,1,1,2) [2025-03-14 21:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681675,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681675,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681675', 'tblTempUsageDetail_20' ) start [2025-03-14 21:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681675', 'tblTempUsageDetail_20' ) end [2025-03-14 21:45:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 21:45:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 21:45:22] Production.INFO: ==26426== Releasing lock... [2025-03-14 21:45:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 21:45:22] Production.INFO: 42 MB #Memory Used# [2025-03-14 21:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 18:46:05 [end_date_ymd] => 2025-03-14 21:46:05 [RateCDR] => 1 ) [2025-03-14 21:46: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-03-14 18:46:05' and `end` < '2025-03-14 21:46: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-03-14 21:46:18] Production.INFO: count ==1868 [2025-03-14 21:46:18] Production.ERROR: pbx CDR StartTime 2025-03-14 18:46:05 - End Time 2025-03-14 21:46:05 [2025-03-14 21:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681680', 'tblTempUsageDetail_20' ) start [2025-03-14 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681680', 'tblTempUsageDetail_20' ) end [2025-03-14 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681680', 'tblTempVendorCDR_20' ) start [2025-03-14 21:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681680', 'tblTempVendorCDR_20' ) end [2025-03-14 21:46:18] Production.INFO: ProcessCDR(1,14681680,1,1,2) [2025-03-14 21:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681680,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681680,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681680', 'tblTempUsageDetail_20' ) start [2025-03-14 21:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681680', 'tblTempUsageDetail_20' ) end [2025-03-14 21:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 21:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 21:46:21] Production.INFO: ==26508== Releasing lock... [2025-03-14 21:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 21:46:21] Production.INFO: 42 MB #Memory Used# [2025-03-14 21:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 18:47:05 [end_date_ymd] => 2025-03-14 21:47:05 [RateCDR] => 1 ) [2025-03-14 21:47: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-03-14 18:47:05' and `end` < '2025-03-14 21:47: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-03-14 21:47:17] Production.INFO: count ==1856 [2025-03-14 21:47:18] Production.ERROR: pbx CDR StartTime 2025-03-14 18:47:05 - End Time 2025-03-14 21:47:05 [2025-03-14 21:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681685', 'tblTempUsageDetail_20' ) start [2025-03-14 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681685', 'tblTempUsageDetail_20' ) end [2025-03-14 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681685', 'tblTempVendorCDR_20' ) start [2025-03-14 21:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681685', 'tblTempVendorCDR_20' ) end [2025-03-14 21:47:18] Production.INFO: ProcessCDR(1,14681685,1,1,2) [2025-03-14 21:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681685,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681685,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681685', 'tblTempUsageDetail_20' ) start [2025-03-14 21:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681685', 'tblTempUsageDetail_20' ) end [2025-03-14 21:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 21:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 21:47:21] Production.INFO: ==26580== Releasing lock... [2025-03-14 21:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 21:47:21] Production.INFO: 42 MB #Memory Used# [2025-03-14 21:48:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 18:48:05 [end_date_ymd] => 2025-03-14 21:48:05 [RateCDR] => 1 ) [2025-03-14 21:48: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-03-14 18:48:05' and `end` < '2025-03-14 21:48: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-03-14 21:48:17] Production.INFO: count ==1858 [2025-03-14 21:48:18] Production.ERROR: pbx CDR StartTime 2025-03-14 18:48:05 - End Time 2025-03-14 21:48:05 [2025-03-14 21:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681690', 'tblTempUsageDetail_20' ) start [2025-03-14 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681690', 'tblTempUsageDetail_20' ) end [2025-03-14 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681690', 'tblTempVendorCDR_20' ) start [2025-03-14 21:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681690', 'tblTempVendorCDR_20' ) end [2025-03-14 21:48:18] Production.INFO: ProcessCDR(1,14681690,1,1,2) [2025-03-14 21:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681690,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:48:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681690,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681690', 'tblTempUsageDetail_20' ) start [2025-03-14 21:48:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681690', 'tblTempUsageDetail_20' ) end [2025-03-14 21:48:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 21:48:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 21:48:21] Production.INFO: ==26655== Releasing lock... [2025-03-14 21:48:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 21:48:21] Production.INFO: 42 MB #Memory Used# [2025-03-14 21:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 18:49:05 [end_date_ymd] => 2025-03-14 21:49:05 [RateCDR] => 1 ) [2025-03-14 21:49: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-03-14 18:49:05' and `end` < '2025-03-14 21:49: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-03-14 21:49:17] Production.INFO: count ==1862 [2025-03-14 21:49:18] Production.ERROR: pbx CDR StartTime 2025-03-14 18:49:05 - End Time 2025-03-14 21:49:05 [2025-03-14 21:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681695', 'tblTempUsageDetail_20' ) start [2025-03-14 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681695', 'tblTempUsageDetail_20' ) end [2025-03-14 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681695', 'tblTempVendorCDR_20' ) start [2025-03-14 21:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681695', 'tblTempVendorCDR_20' ) end [2025-03-14 21:49:18] Production.INFO: ProcessCDR(1,14681695,1,1,2) [2025-03-14 21:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:49:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681695,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:49:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:49:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681695,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681695', 'tblTempUsageDetail_20' ) start [2025-03-14 21:49:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681695', 'tblTempUsageDetail_20' ) end [2025-03-14 21:49:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 21:49:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 21:49:21] Production.INFO: ==26730== Releasing lock... [2025-03-14 21:49:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 21:49:21] Production.INFO: 41.75 MB #Memory Used# [2025-03-14 21:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 18:50:06 [end_date_ymd] => 2025-03-14 21:50:06 [RateCDR] => 1 ) [2025-03-14 21:50: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-03-14 18:50:06' and `end` < '2025-03-14 21:50: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-03-14 21:50:18] Production.INFO: count ==1857 [2025-03-14 21:50:19] Production.ERROR: pbx CDR StartTime 2025-03-14 18:50:06 - End Time 2025-03-14 21:50:06 [2025-03-14 21:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681701', 'tblTempUsageDetail_20' ) start [2025-03-14 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681701', 'tblTempUsageDetail_20' ) end [2025-03-14 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681701', 'tblTempVendorCDR_20' ) start [2025-03-14 21:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681701', 'tblTempVendorCDR_20' ) end [2025-03-14 21:50:19] Production.INFO: ProcessCDR(1,14681701,1,1,2) [2025-03-14 21:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:50:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681701,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:50:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:50:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681701,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681701', 'tblTempUsageDetail_20' ) start [2025-03-14 21:50:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681701', 'tblTempUsageDetail_20' ) end [2025-03-14 21:50:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 21:50:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 21:50:23] Production.INFO: ==26807== Releasing lock... [2025-03-14 21:50:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 21:50:23] Production.INFO: 41.75 MB #Memory Used# [2025-03-14 21:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 18:51:05 [end_date_ymd] => 2025-03-14 21:51:05 [RateCDR] => 1 ) [2025-03-14 21:51: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-03-14 18:51:05' and `end` < '2025-03-14 21:51: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-03-14 21:51:18] Production.INFO: count ==1813 [2025-03-14 21:51:18] Production.ERROR: pbx CDR StartTime 2025-03-14 18:51:05 - End Time 2025-03-14 21:51:05 [2025-03-14 21:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681706', 'tblTempUsageDetail_20' ) start [2025-03-14 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681706', 'tblTempUsageDetail_20' ) end [2025-03-14 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681706', 'tblTempVendorCDR_20' ) start [2025-03-14 21:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681706', 'tblTempVendorCDR_20' ) end [2025-03-14 21:51:18] Production.INFO: ProcessCDR(1,14681706,1,1,2) [2025-03-14 21:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681706,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:51:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681706,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681706', 'tblTempUsageDetail_20' ) start [2025-03-14 21:51:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681706', 'tblTempUsageDetail_20' ) end [2025-03-14 21:51:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 21:51:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 21:51:22] Production.INFO: ==26882== Releasing lock... [2025-03-14 21:51:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 21:51:22] Production.INFO: 41.5 MB #Memory Used# [2025-03-14 21:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 18:52:05 [end_date_ymd] => 2025-03-14 21:52:05 [RateCDR] => 1 ) [2025-03-14 21:52: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-03-14 18:52:05' and `end` < '2025-03-14 21:52: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-03-14 21:52:18] Production.INFO: count ==1808 [2025-03-14 21:52:18] Production.ERROR: pbx CDR StartTime 2025-03-14 18:52:05 - End Time 2025-03-14 21:52:05 [2025-03-14 21:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681711', 'tblTempUsageDetail_20' ) start [2025-03-14 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681711', 'tblTempUsageDetail_20' ) end [2025-03-14 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681711', 'tblTempVendorCDR_20' ) start [2025-03-14 21:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681711', 'tblTempVendorCDR_20' ) end [2025-03-14 21:52:18] Production.INFO: ProcessCDR(1,14681711,1,1,2) [2025-03-14 21:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:52:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681711,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:52:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:52:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681711,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681711', 'tblTempUsageDetail_20' ) start [2025-03-14 21:52:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681711', 'tblTempUsageDetail_20' ) end [2025-03-14 21:52:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 21:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 21:52:22] Production.INFO: ==26957== Releasing lock... [2025-03-14 21:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 21:52:22] Production.INFO: 41.5 MB #Memory Used# [2025-03-14 21:53:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 18:53:06 [end_date_ymd] => 2025-03-14 21:53:06 [RateCDR] => 1 ) [2025-03-14 21:53: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-03-14 18:53:06' and `end` < '2025-03-14 21:53: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-03-14 21:53:18] Production.INFO: count ==1803 [2025-03-14 21:53:19] Production.ERROR: pbx CDR StartTime 2025-03-14 18:53:06 - End Time 2025-03-14 21:53:06 [2025-03-14 21:53:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681716', 'tblTempUsageDetail_20' ) start [2025-03-14 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681716', 'tblTempUsageDetail_20' ) end [2025-03-14 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681716', 'tblTempVendorCDR_20' ) start [2025-03-14 21:53:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681716', 'tblTempVendorCDR_20' ) end [2025-03-14 21:53:19] Production.INFO: ProcessCDR(1,14681716,1,1,2) [2025-03-14 21:53:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:53:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681716,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:53:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:53:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681716,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681716', 'tblTempUsageDetail_20' ) start [2025-03-14 21:53:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681716', 'tblTempUsageDetail_20' ) end [2025-03-14 21:53:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 21:53:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 21:53:23] Production.INFO: ==27033== Releasing lock... [2025-03-14 21:53:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 21:53:23] Production.INFO: 41.5 MB #Memory Used# [2025-03-14 21:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 18:54:05 [end_date_ymd] => 2025-03-14 21:54:05 [RateCDR] => 1 ) [2025-03-14 21:54: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-03-14 18:54:05' and `end` < '2025-03-14 21:54: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-03-14 21:54:17] Production.INFO: count ==1805 [2025-03-14 21:54:18] Production.ERROR: pbx CDR StartTime 2025-03-14 18:54:05 - End Time 2025-03-14 21:54:05 [2025-03-14 21:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681721', 'tblTempUsageDetail_20' ) start [2025-03-14 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681721', 'tblTempUsageDetail_20' ) end [2025-03-14 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681721', 'tblTempVendorCDR_20' ) start [2025-03-14 21:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681721', 'tblTempVendorCDR_20' ) end [2025-03-14 21:54:18] Production.INFO: ProcessCDR(1,14681721,1,1,2) [2025-03-14 21:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681721,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681721,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681721', 'tblTempUsageDetail_20' ) start [2025-03-14 21:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681721', 'tblTempUsageDetail_20' ) end [2025-03-14 21:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 21:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 21:54:21] Production.INFO: ==27104== Releasing lock... [2025-03-14 21:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 21:54:21] Production.INFO: 41.5 MB #Memory Used# [2025-03-14 21:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 18:55:05 [end_date_ymd] => 2025-03-14 21:55:05 [RateCDR] => 1 ) [2025-03-14 21:55: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-03-14 18:55:05' and `end` < '2025-03-14 21:55: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-03-14 21:55:18] Production.INFO: count ==1803 [2025-03-14 21:55:18] Production.ERROR: pbx CDR StartTime 2025-03-14 18:55:05 - End Time 2025-03-14 21:55:05 [2025-03-14 21:55:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681726', 'tblTempUsageDetail_20' ) start [2025-03-14 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681726', 'tblTempUsageDetail_20' ) end [2025-03-14 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681726', 'tblTempVendorCDR_20' ) start [2025-03-14 21:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681726', 'tblTempVendorCDR_20' ) end [2025-03-14 21:55:18] Production.INFO: ProcessCDR(1,14681726,1,1,2) [2025-03-14 21:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681726,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681726,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681726', 'tblTempUsageDetail_20' ) start [2025-03-14 21:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681726', 'tblTempUsageDetail_20' ) end [2025-03-14 21:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 21:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 21:55:21] Production.INFO: ==27179== Releasing lock... [2025-03-14 21:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 21:55:21] Production.INFO: 41.5 MB #Memory Used# [2025-03-14 21:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 18:56:05 [end_date_ymd] => 2025-03-14 21:56:05 [RateCDR] => 1 ) [2025-03-14 21:56: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-03-14 18:56:05' and `end` < '2025-03-14 21:56: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-03-14 21:56:17] Production.INFO: count ==1802 [2025-03-14 21:56:18] Production.ERROR: pbx CDR StartTime 2025-03-14 18:56:05 - End Time 2025-03-14 21:56:05 [2025-03-14 21:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681731', 'tblTempUsageDetail_20' ) start [2025-03-14 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681731', 'tblTempUsageDetail_20' ) end [2025-03-14 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681731', 'tblTempVendorCDR_20' ) start [2025-03-14 21:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681731', 'tblTempVendorCDR_20' ) end [2025-03-14 21:56:18] Production.INFO: ProcessCDR(1,14681731,1,1,2) [2025-03-14 21:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681731,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681731,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681731', 'tblTempUsageDetail_20' ) start [2025-03-14 21:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681731', 'tblTempUsageDetail_20' ) end [2025-03-14 21:56:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 21:56:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 21:56:23] Production.INFO: ==27252== Releasing lock... [2025-03-14 21:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 21:56:23] Production.INFO: 41.75 MB #Memory Used# [2025-03-14 21:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 18:57:06 [end_date_ymd] => 2025-03-14 21:57:06 [RateCDR] => 1 ) [2025-03-14 21:57: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-03-14 18:57:06' and `end` < '2025-03-14 21:57: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-03-14 21:57:18] Production.INFO: count ==1794 [2025-03-14 21:57:19] Production.ERROR: pbx CDR StartTime 2025-03-14 18:57:06 - End Time 2025-03-14 21:57:06 [2025-03-14 21:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681736', 'tblTempUsageDetail_20' ) start [2025-03-14 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681736', 'tblTempUsageDetail_20' ) end [2025-03-14 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681736', 'tblTempVendorCDR_20' ) start [2025-03-14 21:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681736', 'tblTempVendorCDR_20' ) end [2025-03-14 21:57:19] Production.INFO: ProcessCDR(1,14681736,1,1,2) [2025-03-14 21:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681736,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:57:24] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681736,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681736', 'tblTempUsageDetail_20' ) start [2025-03-14 21:57:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681736', 'tblTempUsageDetail_20' ) end [2025-03-14 21:57:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 21:57:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 21:57:24] Production.INFO: ==27325== Releasing lock... [2025-03-14 21:57:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 21:57:24] Production.INFO: 41.25 MB #Memory Used# [2025-03-14 21:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 18:58:05 [end_date_ymd] => 2025-03-14 21:58:05 [RateCDR] => 1 ) [2025-03-14 21:58: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-03-14 18:58:05' and `end` < '2025-03-14 21:58: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-03-14 21:58:17] Production.INFO: count ==1790 [2025-03-14 21:58:18] Production.ERROR: pbx CDR StartTime 2025-03-14 18:58:05 - End Time 2025-03-14 21:58:05 [2025-03-14 21:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681741', 'tblTempUsageDetail_20' ) start [2025-03-14 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681741', 'tblTempUsageDetail_20' ) end [2025-03-14 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681741', 'tblTempVendorCDR_20' ) start [2025-03-14 21:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681741', 'tblTempVendorCDR_20' ) end [2025-03-14 21:58:18] Production.INFO: ProcessCDR(1,14681741,1,1,2) [2025-03-14 21:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:58:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681741,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:58:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681741,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681741', 'tblTempUsageDetail_20' ) start [2025-03-14 21:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681741', 'tblTempUsageDetail_20' ) end [2025-03-14 21:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 21:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 21:58:21] Production.INFO: ==27396== Releasing lock... [2025-03-14 21:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 21:58:21] Production.INFO: 41.5 MB #Memory Used# [2025-03-14 21:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 18:59:05 [end_date_ymd] => 2025-03-14 21:59:05 [RateCDR] => 1 ) [2025-03-14 21:59: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-03-14 18:59:05' and `end` < '2025-03-14 21:59: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-03-14 21:59:17] Production.INFO: count ==1792 [2025-03-14 21:59:18] Production.ERROR: pbx CDR StartTime 2025-03-14 18:59:05 - End Time 2025-03-14 21:59:05 [2025-03-14 21:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681746', 'tblTempUsageDetail_20' ) start [2025-03-14 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681746', 'tblTempUsageDetail_20' ) end [2025-03-14 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681746', 'tblTempVendorCDR_20' ) start [2025-03-14 21:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681746', 'tblTempVendorCDR_20' ) end [2025-03-14 21:59:18] Production.INFO: ProcessCDR(1,14681746,1,1,2) [2025-03-14 21:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681746,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 21:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681746,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 21:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681746', 'tblTempUsageDetail_20' ) start [2025-03-14 21:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681746', 'tblTempUsageDetail_20' ) end [2025-03-14 21:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 21:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 21:59:21] Production.INFO: ==27474== Releasing lock... [2025-03-14 21:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 21:59:21] Production.INFO: 41.5 MB #Memory Used# [2025-03-14 22:00:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 19:00:05 [end_date_ymd] => 2025-03-14 22:00:05 [RateCDR] => 1 ) [2025-03-14 22:00: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-03-14 19:00:05' and `end` < '2025-03-14 22:00: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-03-14 22:00:17] Production.INFO: count ==1794 [2025-03-14 22:00:18] Production.ERROR: pbx CDR StartTime 2025-03-14 19:00:05 - End Time 2025-03-14 22:00:05 [2025-03-14 22:00:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681751', 'tblTempUsageDetail_20' ) start [2025-03-14 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681751', 'tblTempUsageDetail_20' ) end [2025-03-14 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681751', 'tblTempVendorCDR_20' ) start [2025-03-14 22:00:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681751', 'tblTempVendorCDR_20' ) end [2025-03-14 22:00:18] Production.INFO: ProcessCDR(1,14681751,1,1,2) [2025-03-14 22:00:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:00:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681751,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:00:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:00:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681751,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681751', 'tblTempUsageDetail_20' ) start [2025-03-14 22:00:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681751', 'tblTempUsageDetail_20' ) end [2025-03-14 22:00:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 22:00:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 22:00:21] Production.INFO: ==27588== Releasing lock... [2025-03-14 22:00:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 22:00:21] Production.INFO: 41.5 MB #Memory Used# [2025-03-14 22:01:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 19:01:05 [end_date_ymd] => 2025-03-14 22:01:05 [RateCDR] => 1 ) [2025-03-14 22:01: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-03-14 19:01:05' and `end` < '2025-03-14 22:01: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-03-14 22:01:17] Production.INFO: count ==1721 [2025-03-14 22:01:18] Production.ERROR: pbx CDR StartTime 2025-03-14 19:01:05 - End Time 2025-03-14 22:01:05 [2025-03-14 22:01:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681757', 'tblTempUsageDetail_20' ) start [2025-03-14 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681757', 'tblTempUsageDetail_20' ) end [2025-03-14 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681757', 'tblTempVendorCDR_20' ) start [2025-03-14 22:01:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681757', 'tblTempVendorCDR_20' ) end [2025-03-14 22:01:18] Production.INFO: ProcessCDR(1,14681757,1,1,2) [2025-03-14 22:01:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:01:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681757,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:01:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:01:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681757,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681757', 'tblTempUsageDetail_20' ) start [2025-03-14 22:01:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681757', 'tblTempUsageDetail_20' ) end [2025-03-14 22:01:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 22:01:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 22:01:21] Production.INFO: ==27676== Releasing lock... [2025-03-14 22:01:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 22:01:21] Production.INFO: 41.25 MB #Memory Used# [2025-03-14 22:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 19:02:05 [end_date_ymd] => 2025-03-14 22:02:05 [RateCDR] => 1 ) [2025-03-14 22:02: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-03-14 19:02:05' and `end` < '2025-03-14 22:02: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-03-14 22:02:17] Production.INFO: count ==1714 [2025-03-14 22:02:18] Production.ERROR: pbx CDR StartTime 2025-03-14 19:02:05 - End Time 2025-03-14 22:02:05 [2025-03-14 22:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681762', 'tblTempUsageDetail_20' ) start [2025-03-14 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681762', 'tblTempUsageDetail_20' ) end [2025-03-14 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681762', 'tblTempVendorCDR_20' ) start [2025-03-14 22:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681762', 'tblTempVendorCDR_20' ) end [2025-03-14 22:02:18] Production.INFO: ProcessCDR(1,14681762,1,1,2) [2025-03-14 22:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681762,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:02:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681762,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681762', 'tblTempUsageDetail_20' ) start [2025-03-14 22:02:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681762', 'tblTempUsageDetail_20' ) end [2025-03-14 22:02:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 22:02:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 22:02:23] Production.INFO: ==27749== Releasing lock... [2025-03-14 22:02:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 22:02:23] Production.INFO: 41 MB #Memory Used# [2025-03-14 22:03:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 19:03:05 [end_date_ymd] => 2025-03-14 22:03:05 [RateCDR] => 1 ) [2025-03-14 22:03: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-03-14 19:03:05' and `end` < '2025-03-14 22:03: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-03-14 22:03:17] Production.INFO: count ==1713 [2025-03-14 22:03:18] Production.ERROR: pbx CDR StartTime 2025-03-14 19:03:05 - End Time 2025-03-14 22:03:05 [2025-03-14 22:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681767', 'tblTempUsageDetail_20' ) start [2025-03-14 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681767', 'tblTempUsageDetail_20' ) end [2025-03-14 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681767', 'tblTempVendorCDR_20' ) start [2025-03-14 22:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681767', 'tblTempVendorCDR_20' ) end [2025-03-14 22:03:18] Production.INFO: ProcessCDR(1,14681767,1,1,2) [2025-03-14 22:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:03:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681767,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:03:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681767,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681767', 'tblTempUsageDetail_20' ) start [2025-03-14 22:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681767', 'tblTempUsageDetail_20' ) end [2025-03-14 22:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 22:03:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 22:03:23] Production.INFO: ==27830== Releasing lock... [2025-03-14 22:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 22:03:23] Production.INFO: 41 MB #Memory Used# [2025-03-14 22:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 19:04:05 [end_date_ymd] => 2025-03-14 22:04:05 [RateCDR] => 1 ) [2025-03-14 22:04: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-03-14 19:04:05' and `end` < '2025-03-14 22:04: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-03-14 22:04:17] Production.INFO: count ==1717 [2025-03-14 22:04:17] Production.ERROR: pbx CDR StartTime 2025-03-14 19:04:05 - End Time 2025-03-14 22:04:05 [2025-03-14 22:04:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 22:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681772', 'tblTempUsageDetail_20' ) start [2025-03-14 22:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681772', 'tblTempUsageDetail_20' ) end [2025-03-14 22:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681772', 'tblTempVendorCDR_20' ) start [2025-03-14 22:04:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681772', 'tblTempVendorCDR_20' ) end [2025-03-14 22:04:17] Production.INFO: ProcessCDR(1,14681772,1,1,2) [2025-03-14 22:04:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:04:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681772,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:04:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:04:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681772,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681772', 'tblTempUsageDetail_20' ) start [2025-03-14 22:04:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681772', 'tblTempUsageDetail_20' ) end [2025-03-14 22:04:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 22:04:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 22:04:21] Production.INFO: ==27910== Releasing lock... [2025-03-14 22:04:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 22:04:21] Production.INFO: 41.25 MB #Memory Used# [2025-03-14 22:05:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 19:05:06 [end_date_ymd] => 2025-03-14 22:05:06 [RateCDR] => 1 ) [2025-03-14 22:05: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-03-14 19:05:06' and `end` < '2025-03-14 22:05: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-03-14 22:05:18] Production.INFO: count ==1708 [2025-03-14 22:05:18] Production.ERROR: pbx CDR StartTime 2025-03-14 19:05:06 - End Time 2025-03-14 22:05:06 [2025-03-14 22:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 22:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681777', 'tblTempUsageDetail_20' ) start [2025-03-14 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681777', 'tblTempUsageDetail_20' ) end [2025-03-14 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681777', 'tblTempVendorCDR_20' ) start [2025-03-14 22:05:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681777', 'tblTempVendorCDR_20' ) end [2025-03-14 22:05:19] Production.INFO: ProcessCDR(1,14681777,1,1,2) [2025-03-14 22:05:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:05:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681777,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:05:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681777,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681777', 'tblTempUsageDetail_20' ) start [2025-03-14 22:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681777', 'tblTempUsageDetail_20' ) end [2025-03-14 22:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 22:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 22:05:22] Production.INFO: ==27994== Releasing lock... [2025-03-14 22:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 22:05:22] Production.INFO: 40.75 MB #Memory Used# [2025-03-14 22:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 19:06:05 [end_date_ymd] => 2025-03-14 22:06:05 [RateCDR] => 1 ) [2025-03-14 22:06: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-03-14 19:06:05' and `end` < '2025-03-14 22:06: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-03-14 22:06:18] Production.INFO: count ==1705 [2025-03-14 22:06:18] Production.ERROR: pbx CDR StartTime 2025-03-14 19:06:05 - End Time 2025-03-14 22:06:05 [2025-03-14 22:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681782', 'tblTempUsageDetail_20' ) start [2025-03-14 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681782', 'tblTempUsageDetail_20' ) end [2025-03-14 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681782', 'tblTempVendorCDR_20' ) start [2025-03-14 22:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681782', 'tblTempVendorCDR_20' ) end [2025-03-14 22:06:18] Production.INFO: ProcessCDR(1,14681782,1,1,2) [2025-03-14 22:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:06:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681782,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:06:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:06:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681782,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681782', 'tblTempUsageDetail_20' ) start [2025-03-14 22:06:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681782', 'tblTempUsageDetail_20' ) end [2025-03-14 22:06:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 22:06:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 22:06:23] Production.INFO: ==28116== Releasing lock... [2025-03-14 22:06:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 22:06:23] Production.INFO: 40.75 MB #Memory Used# [2025-03-14 22:07:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 19:07:05 [end_date_ymd] => 2025-03-14 22:07:05 [RateCDR] => 1 ) [2025-03-14 22:07: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-03-14 19:07:05' and `end` < '2025-03-14 22:07: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-03-14 22:07:17] Production.INFO: count ==1702 [2025-03-14 22:07:18] Production.ERROR: pbx CDR StartTime 2025-03-14 19:07:05 - End Time 2025-03-14 22:07:05 [2025-03-14 22:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681787', 'tblTempUsageDetail_20' ) start [2025-03-14 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681787', 'tblTempUsageDetail_20' ) end [2025-03-14 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681787', 'tblTempVendorCDR_20' ) start [2025-03-14 22:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681787', 'tblTempVendorCDR_20' ) end [2025-03-14 22:07:18] Production.INFO: ProcessCDR(1,14681787,1,1,2) [2025-03-14 22:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:07:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681787,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:07:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:07:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681787,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681787', 'tblTempUsageDetail_20' ) start [2025-03-14 22:07:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681787', 'tblTempUsageDetail_20' ) end [2025-03-14 22:07:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 22:07:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 22:07:21] Production.INFO: ==28244== Releasing lock... [2025-03-14 22:07:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 22:07:21] Production.INFO: 40.75 MB #Memory Used# [2025-03-14 22:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 19:08:05 [end_date_ymd] => 2025-03-14 22:08:05 [RateCDR] => 1 ) [2025-03-14 22:08: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-03-14 19:08:05' and `end` < '2025-03-14 22:08: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-03-14 22:08:18] Production.INFO: count ==1699 [2025-03-14 22:08:18] Production.ERROR: pbx CDR StartTime 2025-03-14 19:08:05 - End Time 2025-03-14 22:08:05 [2025-03-14 22:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681792', 'tblTempUsageDetail_20' ) start [2025-03-14 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681792', 'tblTempUsageDetail_20' ) end [2025-03-14 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681792', 'tblTempVendorCDR_20' ) start [2025-03-14 22:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681792', 'tblTempVendorCDR_20' ) end [2025-03-14 22:08:18] Production.INFO: ProcessCDR(1,14681792,1,1,2) [2025-03-14 22:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681792,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:08:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681792,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681792', 'tblTempUsageDetail_20' ) start [2025-03-14 22:08:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681792', 'tblTempUsageDetail_20' ) end [2025-03-14 22:08:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 22:08:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 22:08:22] Production.INFO: ==28377== Releasing lock... [2025-03-14 22:08:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 22:08:22] Production.INFO: 41.25 MB #Memory Used# [2025-03-14 22:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 19:09:05 [end_date_ymd] => 2025-03-14 22:09:05 [RateCDR] => 1 ) [2025-03-14 22:09: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-03-14 19:09:05' and `end` < '2025-03-14 22:09: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-03-14 22:09:17] Production.INFO: count ==1687 [2025-03-14 22:09:18] Production.ERROR: pbx CDR StartTime 2025-03-14 19:09:05 - End Time 2025-03-14 22:09:05 [2025-03-14 22:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681797', 'tblTempUsageDetail_20' ) start [2025-03-14 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681797', 'tblTempUsageDetail_20' ) end [2025-03-14 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681797', 'tblTempVendorCDR_20' ) start [2025-03-14 22:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681797', 'tblTempVendorCDR_20' ) end [2025-03-14 22:09:18] Production.INFO: ProcessCDR(1,14681797,1,1,2) [2025-03-14 22:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681797,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681797,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681797', 'tblTempUsageDetail_20' ) start [2025-03-14 22:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681797', 'tblTempUsageDetail_20' ) end [2025-03-14 22:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 22:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 22:09:21] Production.INFO: ==28501== Releasing lock... [2025-03-14 22:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 22:09:21] Production.INFO: 40.75 MB #Memory Used# [2025-03-14 22:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 19:10:06 [end_date_ymd] => 2025-03-14 22:10:06 [RateCDR] => 1 ) [2025-03-14 22:10: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-03-14 19:10:06' and `end` < '2025-03-14 22:10: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-03-14 22:10:18] Production.INFO: count ==1682 [2025-03-14 22:10:19] Production.ERROR: pbx CDR StartTime 2025-03-14 19:10:06 - End Time 2025-03-14 22:10:06 [2025-03-14 22:10:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681802', 'tblTempUsageDetail_20' ) start [2025-03-14 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681802', 'tblTempUsageDetail_20' ) end [2025-03-14 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681802', 'tblTempVendorCDR_20' ) start [2025-03-14 22:10:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681802', 'tblTempVendorCDR_20' ) end [2025-03-14 22:10:19] Production.INFO: ProcessCDR(1,14681802,1,1,2) [2025-03-14 22:10:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:10:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681802,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:10:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681802,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681802', 'tblTempUsageDetail_20' ) start [2025-03-14 22:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681802', 'tblTempUsageDetail_20' ) end [2025-03-14 22:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 22:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 22:10:23] Production.INFO: ==28636== Releasing lock... [2025-03-14 22:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 22:10:23] Production.INFO: 40.5 MB #Memory Used# [2025-03-14 22:11:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 19:11:05 [end_date_ymd] => 2025-03-14 22:11:05 [RateCDR] => 1 ) [2025-03-14 22:11: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-03-14 19:11:05' and `end` < '2025-03-14 22:11: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-03-14 22:11:17] Production.INFO: count ==1617 [2025-03-14 22:11:18] Production.ERROR: pbx CDR StartTime 2025-03-14 19:11:05 - End Time 2025-03-14 22:11:05 [2025-03-14 22:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681808', 'tblTempUsageDetail_20' ) start [2025-03-14 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681808', 'tblTempUsageDetail_20' ) end [2025-03-14 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681808', 'tblTempVendorCDR_20' ) start [2025-03-14 22:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681808', 'tblTempVendorCDR_20' ) end [2025-03-14 22:11:18] Production.INFO: ProcessCDR(1,14681808,1,1,2) [2025-03-14 22:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:11:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681808,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:11:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:11:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681808,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681808', 'tblTempUsageDetail_20' ) start [2025-03-14 22:11:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681808', 'tblTempUsageDetail_20' ) end [2025-03-14 22:11:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 22:11:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 22:11:23] Production.INFO: ==28773== Releasing lock... [2025-03-14 22:11:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 22:11:23] Production.INFO: 40 MB #Memory Used# [2025-03-14 22:12:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 19:12:06 [end_date_ymd] => 2025-03-14 22:12:06 [RateCDR] => 1 ) [2025-03-14 22:12: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-03-14 19:12:06' and `end` < '2025-03-14 22:12: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-03-14 22:12:18] Production.INFO: count ==1618 [2025-03-14 22:12:19] Production.ERROR: pbx CDR StartTime 2025-03-14 19:12:06 - End Time 2025-03-14 22:12:06 [2025-03-14 22:12:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681813', 'tblTempUsageDetail_20' ) start [2025-03-14 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681813', 'tblTempUsageDetail_20' ) end [2025-03-14 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681813', 'tblTempVendorCDR_20' ) start [2025-03-14 22:12:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681813', 'tblTempVendorCDR_20' ) end [2025-03-14 22:12:19] Production.INFO: ProcessCDR(1,14681813,1,1,2) [2025-03-14 22:12:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:12:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681813,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:12:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:12:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681813,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681813', 'tblTempUsageDetail_20' ) start [2025-03-14 22:12:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681813', 'tblTempUsageDetail_20' ) end [2025-03-14 22:12:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 22:12:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 22:12:22] Production.INFO: ==28902== Releasing lock... [2025-03-14 22:12:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 22:12:22] Production.INFO: 40.75 MB #Memory Used# [2025-03-14 22:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 19:13:05 [end_date_ymd] => 2025-03-14 22:13:05 [RateCDR] => 1 ) [2025-03-14 22:13: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-03-14 19:13:05' and `end` < '2025-03-14 22:13: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-03-14 22:13:18] Production.INFO: count ==1620 [2025-03-14 22:13:18] Production.ERROR: pbx CDR StartTime 2025-03-14 19:13:05 - End Time 2025-03-14 22:13:05 [2025-03-14 22:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681818', 'tblTempUsageDetail_20' ) start [2025-03-14 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681818', 'tblTempUsageDetail_20' ) end [2025-03-14 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681818', 'tblTempVendorCDR_20' ) start [2025-03-14 22:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681818', 'tblTempVendorCDR_20' ) end [2025-03-14 22:13:18] Production.INFO: ProcessCDR(1,14681818,1,1,2) [2025-03-14 22:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:13:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681818,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:13:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:13:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681818,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681818', 'tblTempUsageDetail_20' ) start [2025-03-14 22:13:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681818', 'tblTempUsageDetail_20' ) end [2025-03-14 22:13:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 22:13:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 22:13:23] Production.INFO: ==29031== Releasing lock... [2025-03-14 22:13:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 22:13:23] Production.INFO: 40.25 MB #Memory Used# [2025-03-14 22:14:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 19:14:05 [end_date_ymd] => 2025-03-14 22:14:05 [RateCDR] => 1 ) [2025-03-14 22:14: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-03-14 19:14:05' and `end` < '2025-03-14 22:14: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-03-14 22:14:18] Production.INFO: count ==1621 [2025-03-14 22:14:18] Production.ERROR: pbx CDR StartTime 2025-03-14 19:14:05 - End Time 2025-03-14 22:14:05 [2025-03-14 22:14:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681823', 'tblTempUsageDetail_20' ) start [2025-03-14 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681823', 'tblTempUsageDetail_20' ) end [2025-03-14 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681823', 'tblTempVendorCDR_20' ) start [2025-03-14 22:14:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681823', 'tblTempVendorCDR_20' ) end [2025-03-14 22:14:18] Production.INFO: ProcessCDR(1,14681823,1,1,2) [2025-03-14 22:14:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:14:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681823,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:14:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:14:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681823,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681823', 'tblTempUsageDetail_20' ) start [2025-03-14 22:14:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681823', 'tblTempUsageDetail_20' ) end [2025-03-14 22:14:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 22:14:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 22:14:23] Production.INFO: ==29162== Releasing lock... [2025-03-14 22:14:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 22:14:23] Production.INFO: 40.25 MB #Memory Used# [2025-03-14 22:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 19:15:05 [end_date_ymd] => 2025-03-14 22:15:05 [RateCDR] => 1 ) [2025-03-14 22:15: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-03-14 19:15:05' and `end` < '2025-03-14 22:15: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-03-14 22:15:18] Production.INFO: count ==1618 [2025-03-14 22:15:18] Production.ERROR: pbx CDR StartTime 2025-03-14 19:15:05 - End Time 2025-03-14 22:15:05 [2025-03-14 22:15:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681828', 'tblTempUsageDetail_20' ) start [2025-03-14 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681828', 'tblTempUsageDetail_20' ) end [2025-03-14 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681828', 'tblTempVendorCDR_20' ) start [2025-03-14 22:15:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681828', 'tblTempVendorCDR_20' ) end [2025-03-14 22:15:18] Production.INFO: ProcessCDR(1,14681828,1,1,2) [2025-03-14 22:15:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:15:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681828,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:15:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:15:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681828,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681828', 'tblTempUsageDetail_20' ) start [2025-03-14 22:15:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681828', 'tblTempUsageDetail_20' ) end [2025-03-14 22:15:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 22:15:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 22:15:22] Production.INFO: ==29292== Releasing lock... [2025-03-14 22:15:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 22:15:22] Production.INFO: 40.5 MB #Memory Used# [2025-03-14 22:16:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 19:16:06 [end_date_ymd] => 2025-03-14 22:16:06 [RateCDR] => 1 ) [2025-03-14 22:16: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-03-14 19:16:06' and `end` < '2025-03-14 22:16: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-03-14 22:16:18] Production.INFO: count ==1622 [2025-03-14 22:16:18] Production.ERROR: pbx CDR StartTime 2025-03-14 19:16:06 - End Time 2025-03-14 22:16:06 [2025-03-14 22:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681833', 'tblTempUsageDetail_20' ) start [2025-03-14 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681833', 'tblTempUsageDetail_20' ) end [2025-03-14 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681833', 'tblTempVendorCDR_20' ) start [2025-03-14 22:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681833', 'tblTempVendorCDR_20' ) end [2025-03-14 22:16:18] Production.INFO: ProcessCDR(1,14681833,1,1,2) [2025-03-14 22:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:16:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681833,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:16:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:16:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681833,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681833', 'tblTempUsageDetail_20' ) start [2025-03-14 22:16:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681833', 'tblTempUsageDetail_20' ) end [2025-03-14 22:16:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 22:16:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 22:16:23] Production.INFO: ==29423== Releasing lock... [2025-03-14 22:16:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 22:16:23] Production.INFO: 40.25 MB #Memory Used# [2025-03-14 22:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 19:17:05 [end_date_ymd] => 2025-03-14 22:17:05 [RateCDR] => 1 ) [2025-03-14 22:17: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-03-14 19:17:05' and `end` < '2025-03-14 22:17: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-03-14 22:17:17] Production.INFO: count ==1626 [2025-03-14 22:17:18] Production.ERROR: pbx CDR StartTime 2025-03-14 19:17:05 - End Time 2025-03-14 22:17:05 [2025-03-14 22:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681838', 'tblTempUsageDetail_20' ) start [2025-03-14 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681838', 'tblTempUsageDetail_20' ) end [2025-03-14 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681838', 'tblTempVendorCDR_20' ) start [2025-03-14 22:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681838', 'tblTempVendorCDR_20' ) end [2025-03-14 22:17:18] Production.INFO: ProcessCDR(1,14681838,1,1,2) [2025-03-14 22:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681838,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681838,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681838', 'tblTempUsageDetail_20' ) start [2025-03-14 22:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681838', 'tblTempUsageDetail_20' ) end [2025-03-14 22:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 22:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 22:17:21] Production.INFO: ==29501== Releasing lock... [2025-03-14 22:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 22:17:21] Production.INFO: 40.5 MB #Memory Used# [2025-03-14 22:18:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 19:18:05 [end_date_ymd] => 2025-03-14 22:18:05 [RateCDR] => 1 ) [2025-03-14 22:18: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-03-14 19:18:05' and `end` < '2025-03-14 22:18: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-03-14 22:18:18] Production.INFO: count ==1623 [2025-03-14 22:18:18] Production.ERROR: pbx CDR StartTime 2025-03-14 19:18:05 - End Time 2025-03-14 22:18:05 [2025-03-14 22:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681843', 'tblTempUsageDetail_20' ) start [2025-03-14 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681843', 'tblTempUsageDetail_20' ) end [2025-03-14 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681843', 'tblTempVendorCDR_20' ) start [2025-03-14 22:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681843', 'tblTempVendorCDR_20' ) end [2025-03-14 22:18:18] Production.INFO: ProcessCDR(1,14681843,1,1,2) [2025-03-14 22:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:18:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681843,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:18:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681843,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681843', 'tblTempUsageDetail_20' ) start [2025-03-14 22:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681843', 'tblTempUsageDetail_20' ) end [2025-03-14 22:18:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 22:18:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 22:18:23] Production.INFO: ==29580== Releasing lock... [2025-03-14 22:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 22:18:23] Production.INFO: 40.5 MB #Memory Used# [2025-03-14 22:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 19:19:05 [end_date_ymd] => 2025-03-14 22:19:05 [RateCDR] => 1 ) [2025-03-14 22:19: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-03-14 19:19:05' and `end` < '2025-03-14 22:19: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-03-14 22:19:17] Production.INFO: count ==1615 [2025-03-14 22:19:18] Production.ERROR: pbx CDR StartTime 2025-03-14 19:19:05 - End Time 2025-03-14 22:19:05 [2025-03-14 22:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681848', 'tblTempUsageDetail_20' ) start [2025-03-14 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681848', 'tblTempUsageDetail_20' ) end [2025-03-14 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681848', 'tblTempVendorCDR_20' ) start [2025-03-14 22:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681848', 'tblTempVendorCDR_20' ) end [2025-03-14 22:19:18] Production.INFO: ProcessCDR(1,14681848,1,1,2) [2025-03-14 22:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681848,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681848,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681848', 'tblTempUsageDetail_20' ) start [2025-03-14 22:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681848', 'tblTempUsageDetail_20' ) end [2025-03-14 22:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 22:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 22:19:21] Production.INFO: ==29662== Releasing lock... [2025-03-14 22:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 22:19:21] Production.INFO: 40 MB #Memory Used# [2025-03-14 22:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 19:20:06 [end_date_ymd] => 2025-03-14 22:20:06 [RateCDR] => 1 ) [2025-03-14 22:20: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-03-14 19:20:06' and `end` < '2025-03-14 22:20: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-03-14 22:20:18] Production.INFO: count ==1606 [2025-03-14 22:20:19] Production.ERROR: pbx CDR StartTime 2025-03-14 19:20:06 - End Time 2025-03-14 22:20:06 [2025-03-14 22:20:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681853', 'tblTempUsageDetail_20' ) start [2025-03-14 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681853', 'tblTempUsageDetail_20' ) end [2025-03-14 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681853', 'tblTempVendorCDR_20' ) start [2025-03-14 22:20:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681853', 'tblTempVendorCDR_20' ) end [2025-03-14 22:20:19] Production.INFO: ProcessCDR(1,14681853,1,1,2) [2025-03-14 22:20:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:20:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681853,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:20:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:20:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681853,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681853', 'tblTempUsageDetail_20' ) start [2025-03-14 22:20:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681853', 'tblTempUsageDetail_20' ) end [2025-03-14 22:20:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 22:20:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 22:20:22] Production.INFO: ==29747== Releasing lock... [2025-03-14 22:20:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 22:20:22] Production.INFO: 40 MB #Memory Used# [2025-03-14 22:21:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 19:21:05 [end_date_ymd] => 2025-03-14 22:21:05 [RateCDR] => 1 ) [2025-03-14 22:21: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-03-14 19:21:05' and `end` < '2025-03-14 22:21: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-03-14 22:21:17] Production.INFO: count ==1543 [2025-03-14 22:21:18] Production.ERROR: pbx CDR StartTime 2025-03-14 19:21:05 - End Time 2025-03-14 22:21:05 [2025-03-14 22:21:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681859', 'tblTempUsageDetail_20' ) start [2025-03-14 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681859', 'tblTempUsageDetail_20' ) end [2025-03-14 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681859', 'tblTempVendorCDR_20' ) start [2025-03-14 22:21:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681859', 'tblTempVendorCDR_20' ) end [2025-03-14 22:21:18] Production.INFO: ProcessCDR(1,14681859,1,1,2) [2025-03-14 22:21:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:21:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681859,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:21:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:21:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681859,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681859', 'tblTempUsageDetail_20' ) start [2025-03-14 22:21:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681859', 'tblTempUsageDetail_20' ) end [2025-03-14 22:21:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 22:21:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 22:21:21] Production.INFO: ==29828== Releasing lock... [2025-03-14 22:21:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 22:21:21] Production.INFO: 39.5 MB #Memory Used# [2025-03-14 22:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 19:22:05 [end_date_ymd] => 2025-03-14 22:22:05 [RateCDR] => 1 ) [2025-03-14 22:22: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-03-14 19:22:05' and `end` < '2025-03-14 22:22: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-03-14 22:22:18] Production.INFO: count ==1541 [2025-03-14 22:22:18] Production.ERROR: pbx CDR StartTime 2025-03-14 19:22:05 - End Time 2025-03-14 22:22:05 [2025-03-14 22:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681864', 'tblTempUsageDetail_20' ) start [2025-03-14 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681864', 'tblTempUsageDetail_20' ) end [2025-03-14 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681864', 'tblTempVendorCDR_20' ) start [2025-03-14 22:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681864', 'tblTempVendorCDR_20' ) end [2025-03-14 22:22:18] Production.INFO: ProcessCDR(1,14681864,1,1,2) [2025-03-14 22:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681864,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:22:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681864,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681864', 'tblTempUsageDetail_20' ) start [2025-03-14 22:22:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681864', 'tblTempUsageDetail_20' ) end [2025-03-14 22:22:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 22:22:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 22:22:21] Production.INFO: ==29910== Releasing lock... [2025-03-14 22:22:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 22:22:21] Production.INFO: 39.25 MB #Memory Used# [2025-03-14 22:23:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 19:23:06 [end_date_ymd] => 2025-03-14 22:23:06 [RateCDR] => 1 ) [2025-03-14 22:23: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-03-14 19:23:06' and `end` < '2025-03-14 22:23: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-03-14 22:23:18] Production.INFO: count ==1535 [2025-03-14 22:23:18] Production.ERROR: pbx CDR StartTime 2025-03-14 19:23:06 - End Time 2025-03-14 22:23:06 [2025-03-14 22:23:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681869', 'tblTempUsageDetail_20' ) start [2025-03-14 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681869', 'tblTempUsageDetail_20' ) end [2025-03-14 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681869', 'tblTempVendorCDR_20' ) start [2025-03-14 22:23:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681869', 'tblTempVendorCDR_20' ) end [2025-03-14 22:23:18] Production.INFO: ProcessCDR(1,14681869,1,1,2) [2025-03-14 22:23:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:23:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681869,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:23:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:23:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681869,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681869', 'tblTempUsageDetail_20' ) start [2025-03-14 22:23:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681869', 'tblTempUsageDetail_20' ) end [2025-03-14 22:23:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 22:23:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 22:23:22] Production.INFO: ==29987== Releasing lock... [2025-03-14 22:23:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 22:23:22] Production.INFO: 39.25 MB #Memory Used# [2025-03-14 22:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 19:24:05 [end_date_ymd] => 2025-03-14 22:24:05 [RateCDR] => 1 ) [2025-03-14 22:24: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-03-14 19:24:05' and `end` < '2025-03-14 22:24: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-03-14 22:24:17] Production.INFO: count ==1526 [2025-03-14 22:24:18] Production.ERROR: pbx CDR StartTime 2025-03-14 19:24:05 - End Time 2025-03-14 22:24:05 [2025-03-14 22:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681874', 'tblTempUsageDetail_20' ) start [2025-03-14 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681874', 'tblTempUsageDetail_20' ) end [2025-03-14 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681874', 'tblTempVendorCDR_20' ) start [2025-03-14 22:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681874', 'tblTempVendorCDR_20' ) end [2025-03-14 22:24:18] Production.INFO: ProcessCDR(1,14681874,1,1,2) [2025-03-14 22:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681874,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681874,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681874', 'tblTempUsageDetail_20' ) start [2025-03-14 22:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681874', 'tblTempUsageDetail_20' ) end [2025-03-14 22:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 22:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 22:24:21] Production.INFO: ==30067== Releasing lock... [2025-03-14 22:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 22:24:21] Production.INFO: 39.5 MB #Memory Used# [2025-03-14 22:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 19:25:05 [end_date_ymd] => 2025-03-14 22:25:05 [RateCDR] => 1 ) [2025-03-14 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-03-14 19:25:05' and `end` < '2025-03-14 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-03-14 22:25:18] Production.INFO: count ==1502 [2025-03-14 22:25:18] Production.ERROR: pbx CDR StartTime 2025-03-14 19:25:05 - End Time 2025-03-14 22:25:05 [2025-03-14 22:25:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681879', 'tblTempUsageDetail_20' ) start [2025-03-14 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681879', 'tblTempUsageDetail_20' ) end [2025-03-14 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681879', 'tblTempVendorCDR_20' ) start [2025-03-14 22:25:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681879', 'tblTempVendorCDR_20' ) end [2025-03-14 22:25:18] Production.INFO: ProcessCDR(1,14681879,1,1,2) [2025-03-14 22:25:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:25:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681879,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:25:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:25:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681879,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681879', 'tblTempUsageDetail_20' ) start [2025-03-14 22:25:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681879', 'tblTempUsageDetail_20' ) end [2025-03-14 22:25:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 22:25:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 22:25:22] Production.INFO: ==30153== Releasing lock... [2025-03-14 22:25:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 22:25:22] Production.INFO: 39.25 MB #Memory Used# [2025-03-14 22:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 19:26:05 [end_date_ymd] => 2025-03-14 22:26:05 [RateCDR] => 1 ) [2025-03-14 22:26: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-03-14 19:26:05' and `end` < '2025-03-14 22:26: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-03-14 22:26:18] Production.INFO: count ==1485 [2025-03-14 22:26:18] Production.ERROR: pbx CDR StartTime 2025-03-14 19:26:05 - End Time 2025-03-14 22:26:05 [2025-03-14 22:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681884', 'tblTempUsageDetail_20' ) start [2025-03-14 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681884', 'tblTempUsageDetail_20' ) end [2025-03-14 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681884', 'tblTempVendorCDR_20' ) start [2025-03-14 22:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681884', 'tblTempVendorCDR_20' ) end [2025-03-14 22:26:18] Production.INFO: ProcessCDR(1,14681884,1,1,2) [2025-03-14 22:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681884,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681884,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681884', 'tblTempUsageDetail_20' ) start [2025-03-14 22:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681884', 'tblTempUsageDetail_20' ) end [2025-03-14 22:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 22:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 22:26:21] Production.INFO: ==30234== Releasing lock... [2025-03-14 22:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 22:26:21] Production.INFO: 39.25 MB #Memory Used# [2025-03-14 22:27:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 19:27:06 [end_date_ymd] => 2025-03-14 22:27:06 [RateCDR] => 1 ) [2025-03-14 22:27: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-03-14 19:27:06' and `end` < '2025-03-14 22:27: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-03-14 22:27:18] Production.INFO: count ==1486 [2025-03-14 22:27:18] Production.ERROR: pbx CDR StartTime 2025-03-14 19:27:06 - End Time 2025-03-14 22:27:06 [2025-03-14 22:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681889', 'tblTempUsageDetail_20' ) start [2025-03-14 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681889', 'tblTempUsageDetail_20' ) end [2025-03-14 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681889', 'tblTempVendorCDR_20' ) start [2025-03-14 22:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681889', 'tblTempVendorCDR_20' ) end [2025-03-14 22:27:18] Production.INFO: ProcessCDR(1,14681889,1,1,2) [2025-03-14 22:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681889,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:27:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681889,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681889', 'tblTempUsageDetail_20' ) start [2025-03-14 22:27:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681889', 'tblTempUsageDetail_20' ) end [2025-03-14 22:27:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 22:27:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 22:27:22] Production.INFO: ==30313== Releasing lock... [2025-03-14 22:27:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 22:27:22] Production.INFO: 39.5 MB #Memory Used# [2025-03-14 22:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 19:28:05 [end_date_ymd] => 2025-03-14 22:28:05 [RateCDR] => 1 ) [2025-03-14 22:28: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-03-14 19:28:05' and `end` < '2025-03-14 22:28: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-03-14 22:28:17] Production.INFO: count ==1484 [2025-03-14 22:28:18] Production.ERROR: pbx CDR StartTime 2025-03-14 19:28:05 - End Time 2025-03-14 22:28:05 [2025-03-14 22:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681894', 'tblTempUsageDetail_20' ) start [2025-03-14 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681894', 'tblTempUsageDetail_20' ) end [2025-03-14 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681894', 'tblTempVendorCDR_20' ) start [2025-03-14 22:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681894', 'tblTempVendorCDR_20' ) end [2025-03-14 22:28:18] Production.INFO: ProcessCDR(1,14681894,1,1,2) [2025-03-14 22:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681894,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681894,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681894', 'tblTempUsageDetail_20' ) start [2025-03-14 22:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681894', 'tblTempUsageDetail_20' ) end [2025-03-14 22:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 22:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 22:28:21] Production.INFO: ==30392== Releasing lock... [2025-03-14 22:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 22:28:21] Production.INFO: 39 MB #Memory Used# [2025-03-14 22:29:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 19:29:06 [end_date_ymd] => 2025-03-14 22:29:06 [RateCDR] => 1 ) [2025-03-14 22:29: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-03-14 19:29:06' and `end` < '2025-03-14 22:29: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-03-14 22:29:18] Production.INFO: count ==1480 [2025-03-14 22:29:18] Production.ERROR: pbx CDR StartTime 2025-03-14 19:29:06 - End Time 2025-03-14 22:29:06 [2025-03-14 22:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681899', 'tblTempUsageDetail_20' ) start [2025-03-14 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681899', 'tblTempUsageDetail_20' ) end [2025-03-14 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681899', 'tblTempVendorCDR_20' ) start [2025-03-14 22:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681899', 'tblTempVendorCDR_20' ) end [2025-03-14 22:29:18] Production.INFO: ProcessCDR(1,14681899,1,1,2) [2025-03-14 22:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:29:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681899,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:29:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:29:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681899,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681899', 'tblTempUsageDetail_20' ) start [2025-03-14 22:29:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681899', 'tblTempUsageDetail_20' ) end [2025-03-14 22:29:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 22:29:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 22:29:22] Production.INFO: ==30474== Releasing lock... [2025-03-14 22:29:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 22:29:22] Production.INFO: 39.25 MB #Memory Used# [2025-03-14 22:30:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 19:30:05 [end_date_ymd] => 2025-03-14 22:30:05 [RateCDR] => 1 ) [2025-03-14 22:30: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-03-14 19:30:05' and `end` < '2025-03-14 22:30: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-03-14 22:30:17] Production.INFO: count ==1477 [2025-03-14 22:30:18] Production.ERROR: pbx CDR StartTime 2025-03-14 19:30:05 - End Time 2025-03-14 22:30:05 [2025-03-14 22:30:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681904', 'tblTempUsageDetail_20' ) start [2025-03-14 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681904', 'tblTempUsageDetail_20' ) end [2025-03-14 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681904', 'tblTempVendorCDR_20' ) start [2025-03-14 22:30:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681904', 'tblTempVendorCDR_20' ) end [2025-03-14 22:30:18] Production.INFO: ProcessCDR(1,14681904,1,1,2) [2025-03-14 22:30:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681904,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681904,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681904', 'tblTempUsageDetail_20' ) start [2025-03-14 22:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681904', 'tblTempUsageDetail_20' ) end [2025-03-14 22:30:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 22:30:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 22:30:23] Production.INFO: ==30553== Releasing lock... [2025-03-14 22:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 22:30:23] Production.INFO: 39 MB #Memory Used# [2025-03-14 22:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 19:31:05 [end_date_ymd] => 2025-03-14 22:31:05 [RateCDR] => 1 ) [2025-03-14 22:31: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-03-14 19:31:05' and `end` < '2025-03-14 22:31: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-03-14 22:31:17] Production.INFO: count ==1424 [2025-03-14 22:31:18] Production.ERROR: pbx CDR StartTime 2025-03-14 19:31:05 - End Time 2025-03-14 22:31:05 [2025-03-14 22:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681910', 'tblTempUsageDetail_20' ) start [2025-03-14 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681910', 'tblTempUsageDetail_20' ) end [2025-03-14 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681910', 'tblTempVendorCDR_20' ) start [2025-03-14 22:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681910', 'tblTempVendorCDR_20' ) end [2025-03-14 22:31:18] Production.INFO: ProcessCDR(1,14681910,1,1,2) [2025-03-14 22:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681910,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681910,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681910', 'tblTempUsageDetail_20' ) start [2025-03-14 22:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681910', 'tblTempUsageDetail_20' ) end [2025-03-14 22:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 22:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 22:31:21] Production.INFO: ==30677== Releasing lock... [2025-03-14 22:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 22:31:21] Production.INFO: 38.75 MB #Memory Used# [2025-03-14 22:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 19:32:05 [end_date_ymd] => 2025-03-14 22:32:05 [RateCDR] => 1 ) [2025-03-14 22:32: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-03-14 19:32:05' and `end` < '2025-03-14 22:32: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-03-14 22:32:17] Production.INFO: count ==1421 [2025-03-14 22:32:18] Production.ERROR: pbx CDR StartTime 2025-03-14 19:32:05 - End Time 2025-03-14 22:32:05 [2025-03-14 22:32:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681915', 'tblTempUsageDetail_20' ) start [2025-03-14 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681915', 'tblTempUsageDetail_20' ) end [2025-03-14 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681915', 'tblTempVendorCDR_20' ) start [2025-03-14 22:32:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681915', 'tblTempVendorCDR_20' ) end [2025-03-14 22:32:18] Production.INFO: ProcessCDR(1,14681915,1,1,2) [2025-03-14 22:32:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:32:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681915,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:32:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:32:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681915,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681915', 'tblTempUsageDetail_20' ) start [2025-03-14 22:32:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681915', 'tblTempUsageDetail_20' ) end [2025-03-14 22:32:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 22:32:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 22:32:21] Production.INFO: ==30753== Releasing lock... [2025-03-14 22:32:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 22:32:21] Production.INFO: 39.25 MB #Memory Used# [2025-03-14 22:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 19:33:05 [end_date_ymd] => 2025-03-14 22:33:05 [RateCDR] => 1 ) [2025-03-14 22:33: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-03-14 19:33:05' and `end` < '2025-03-14 22:33: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-03-14 22:33:18] Production.INFO: count ==1425 [2025-03-14 22:33:18] Production.ERROR: pbx CDR StartTime 2025-03-14 19:33:05 - End Time 2025-03-14 22:33:05 [2025-03-14 22:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681920', 'tblTempUsageDetail_20' ) start [2025-03-14 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681920', 'tblTempUsageDetail_20' ) end [2025-03-14 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681920', 'tblTempVendorCDR_20' ) start [2025-03-14 22:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681920', 'tblTempVendorCDR_20' ) end [2025-03-14 22:33:18] Production.INFO: ProcessCDR(1,14681920,1,1,2) [2025-03-14 22:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681920,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681920,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681920', 'tblTempUsageDetail_20' ) start [2025-03-14 22:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681920', 'tblTempUsageDetail_20' ) end [2025-03-14 22:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 22:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 22:33:21] Production.INFO: ==30837== Releasing lock... [2025-03-14 22:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 22:33:21] Production.INFO: 39.25 MB #Memory Used# [2025-03-14 22:34:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 19:34:04 [end_date_ymd] => 2025-03-14 22:34:04 [RateCDR] => 1 ) [2025-03-14 22:34: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-03-14 19:34:04' and `end` < '2025-03-14 22:34: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-03-14 22:34:17] Production.INFO: count ==1421 [2025-03-14 22:34:17] Production.ERROR: pbx CDR StartTime 2025-03-14 19:34:04 - End Time 2025-03-14 22:34:04 [2025-03-14 22:34:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 22:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681925', 'tblTempUsageDetail_20' ) start [2025-03-14 22:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681925', 'tblTempUsageDetail_20' ) end [2025-03-14 22:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681925', 'tblTempVendorCDR_20' ) start [2025-03-14 22:34:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681925', 'tblTempVendorCDR_20' ) end [2025-03-14 22:34:17] Production.INFO: ProcessCDR(1,14681925,1,1,2) [2025-03-14 22:34:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:34:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681925,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:34:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:34:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681925,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681925', 'tblTempUsageDetail_20' ) start [2025-03-14 22:34:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681925', 'tblTempUsageDetail_20' ) end [2025-03-14 22:34:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 22:34:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 22:34:21] Production.INFO: ==30920== Releasing lock... [2025-03-14 22:34:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 22:34:21] Production.INFO: 39.25 MB #Memory Used# [2025-03-14 22:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 19:35:05 [end_date_ymd] => 2025-03-14 22:35:05 [RateCDR] => 1 ) [2025-03-14 22:35: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-03-14 19:35:05' and `end` < '2025-03-14 22:35: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-03-14 22:35:18] Production.INFO: count ==1421 [2025-03-14 22:35:18] Production.ERROR: pbx CDR StartTime 2025-03-14 19:35:05 - End Time 2025-03-14 22:35:05 [2025-03-14 22:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681930', 'tblTempUsageDetail_20' ) start [2025-03-14 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681930', 'tblTempUsageDetail_20' ) end [2025-03-14 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681930', 'tblTempVendorCDR_20' ) start [2025-03-14 22:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681930', 'tblTempVendorCDR_20' ) end [2025-03-14 22:35:18] Production.INFO: ProcessCDR(1,14681930,1,1,2) [2025-03-14 22:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681930,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:35:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681930,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681930', 'tblTempUsageDetail_20' ) start [2025-03-14 22:35:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681930', 'tblTempUsageDetail_20' ) end [2025-03-14 22:35:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 22:35:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 22:35:22] Production.INFO: ==30998== Releasing lock... [2025-03-14 22:35:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 22:35:22] Production.INFO: 39.25 MB #Memory Used# [2025-03-14 22:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 19:36:05 [end_date_ymd] => 2025-03-14 22:36:05 [RateCDR] => 1 ) [2025-03-14 22:36: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-03-14 19:36:05' and `end` < '2025-03-14 22:36: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-03-14 22:36:17] Production.INFO: count ==1419 [2025-03-14 22:36:17] Production.ERROR: pbx CDR StartTime 2025-03-14 19:36:05 - End Time 2025-03-14 22:36:05 [2025-03-14 22:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 22:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681935', 'tblTempUsageDetail_20' ) start [2025-03-14 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681935', 'tblTempUsageDetail_20' ) end [2025-03-14 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681935', 'tblTempVendorCDR_20' ) start [2025-03-14 22:36:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681935', 'tblTempVendorCDR_20' ) end [2025-03-14 22:36:18] Production.INFO: ProcessCDR(1,14681935,1,1,2) [2025-03-14 22:36:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:36:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681935,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:36:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681935,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681935', 'tblTempUsageDetail_20' ) start [2025-03-14 22:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681935', 'tblTempUsageDetail_20' ) end [2025-03-14 22:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 22:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 22:36:21] Production.INFO: ==31075== Releasing lock... [2025-03-14 22:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 22:36:21] Production.INFO: 38.75 MB #Memory Used# [2025-03-14 22:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 19:37:06 [end_date_ymd] => 2025-03-14 22:37:06 [RateCDR] => 1 ) [2025-03-14 22:37: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-03-14 19:37:06' and `end` < '2025-03-14 22:37: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-03-14 22:37:18] Production.INFO: count ==1420 [2025-03-14 22:37:18] Production.ERROR: pbx CDR StartTime 2025-03-14 19:37:06 - End Time 2025-03-14 22:37:06 [2025-03-14 22:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681940', 'tblTempUsageDetail_20' ) start [2025-03-14 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681940', 'tblTempUsageDetail_20' ) end [2025-03-14 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681940', 'tblTempVendorCDR_20' ) start [2025-03-14 22:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681940', 'tblTempVendorCDR_20' ) end [2025-03-14 22:37:18] Production.INFO: ProcessCDR(1,14681940,1,1,2) [2025-03-14 22:37:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:37:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681940,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:37:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681940,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681940', 'tblTempUsageDetail_20' ) start [2025-03-14 22:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681940', 'tblTempUsageDetail_20' ) end [2025-03-14 22:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 22:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 22:37:22] Production.INFO: ==31154== Releasing lock... [2025-03-14 22:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 22:37:22] Production.INFO: 39 MB #Memory Used# [2025-03-14 22:38:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 19:38:04 [end_date_ymd] => 2025-03-14 22:38:04 [RateCDR] => 1 ) [2025-03-14 22:38: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-03-14 19:38:04' and `end` < '2025-03-14 22:38: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-03-14 22:38:17] Production.INFO: count ==1418 [2025-03-14 22:38:17] Production.ERROR: pbx CDR StartTime 2025-03-14 19:38:04 - End Time 2025-03-14 22:38:04 [2025-03-14 22:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 22:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681945', 'tblTempUsageDetail_20' ) start [2025-03-14 22:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681945', 'tblTempUsageDetail_20' ) end [2025-03-14 22:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681945', 'tblTempVendorCDR_20' ) start [2025-03-14 22:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681945', 'tblTempVendorCDR_20' ) end [2025-03-14 22:38:17] Production.INFO: ProcessCDR(1,14681945,1,1,2) [2025-03-14 22:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:38:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681945,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:38:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:38:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681945,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681945', 'tblTempUsageDetail_20' ) start [2025-03-14 22:38:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681945', 'tblTempUsageDetail_20' ) end [2025-03-14 22:38:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 22:38:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 22:38:20] Production.INFO: ==31232== Releasing lock... [2025-03-14 22:38:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 22:38:20] Production.INFO: 38.75 MB #Memory Used# [2025-03-14 22:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 19:39:05 [end_date_ymd] => 2025-03-14 22:39:05 [RateCDR] => 1 ) [2025-03-14 22:39: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-03-14 19:39:05' and `end` < '2025-03-14 22:39: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-03-14 22:39:18] Production.INFO: count ==1416 [2025-03-14 22:39:18] Production.ERROR: pbx CDR StartTime 2025-03-14 19:39:05 - End Time 2025-03-14 22:39:05 [2025-03-14 22:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681950', 'tblTempUsageDetail_20' ) start [2025-03-14 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681950', 'tblTempUsageDetail_20' ) end [2025-03-14 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681950', 'tblTempVendorCDR_20' ) start [2025-03-14 22:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681950', 'tblTempVendorCDR_20' ) end [2025-03-14 22:39:18] Production.INFO: ProcessCDR(1,14681950,1,1,2) [2025-03-14 22:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681950,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681950,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681950', 'tblTempUsageDetail_20' ) start [2025-03-14 22:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681950', 'tblTempUsageDetail_20' ) end [2025-03-14 22:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 22:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 22:39:21] Production.INFO: ==31315== Releasing lock... [2025-03-14 22:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 22:39:21] Production.INFO: 39 MB #Memory Used# [2025-03-14 22:40:07] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 19:40:07 [end_date_ymd] => 2025-03-14 22:40:07 [RateCDR] => 1 ) [2025-03-14 22:40:07] 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-03-14 19:40:07' and `end` < '2025-03-14 22:40:07' 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-03-14 22:40:19] Production.INFO: count ==1417 [2025-03-14 22:40:19] Production.ERROR: pbx CDR StartTime 2025-03-14 19:40:07 - End Time 2025-03-14 22:40:07 [2025-03-14 22:40:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681956', 'tblTempUsageDetail_20' ) start [2025-03-14 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681956', 'tblTempUsageDetail_20' ) end [2025-03-14 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681956', 'tblTempVendorCDR_20' ) start [2025-03-14 22:40:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681956', 'tblTempVendorCDR_20' ) end [2025-03-14 22:40:19] Production.INFO: ProcessCDR(1,14681956,1,1,2) [2025-03-14 22:40:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681956,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681956,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681956', 'tblTempUsageDetail_20' ) start [2025-03-14 22:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681956', 'tblTempUsageDetail_20' ) end [2025-03-14 22:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 22:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 22:40:23] Production.INFO: ==31394== Releasing lock... [2025-03-14 22:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 22:40:23] Production.INFO: 38.75 MB #Memory Used# [2025-03-14 22:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 19:41:05 [end_date_ymd] => 2025-03-14 22:41:05 [RateCDR] => 1 ) [2025-03-14 22:41: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-03-14 19:41:05' and `end` < '2025-03-14 22:41: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-03-14 22:41:17] Production.INFO: count ==1384 [2025-03-14 22:41:18] Production.ERROR: pbx CDR StartTime 2025-03-14 19:41:05 - End Time 2025-03-14 22:41:05 [2025-03-14 22:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681961', 'tblTempUsageDetail_20' ) start [2025-03-14 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681961', 'tblTempUsageDetail_20' ) end [2025-03-14 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681961', 'tblTempVendorCDR_20' ) start [2025-03-14 22:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681961', 'tblTempVendorCDR_20' ) end [2025-03-14 22:41:18] Production.INFO: ProcessCDR(1,14681961,1,1,2) [2025-03-14 22:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681961,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681961,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681961', 'tblTempUsageDetail_20' ) start [2025-03-14 22:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681961', 'tblTempUsageDetail_20' ) end [2025-03-14 22:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 22:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 22:41:21] Production.INFO: ==31475== Releasing lock... [2025-03-14 22:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 22:41:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-14 22:42:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 19:42:06 [end_date_ymd] => 2025-03-14 22:42:06 [RateCDR] => 1 ) [2025-03-14 22:42: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-03-14 19:42:06' and `end` < '2025-03-14 22:42: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-03-14 22:42:18] Production.INFO: count ==1372 [2025-03-14 22:42:18] Production.ERROR: pbx CDR StartTime 2025-03-14 19:42:06 - End Time 2025-03-14 22:42:06 [2025-03-14 22:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681966', 'tblTempUsageDetail_20' ) start [2025-03-14 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681966', 'tblTempUsageDetail_20' ) end [2025-03-14 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681966', 'tblTempVendorCDR_20' ) start [2025-03-14 22:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681966', 'tblTempVendorCDR_20' ) end [2025-03-14 22:42:18] Production.INFO: ProcessCDR(1,14681966,1,1,2) [2025-03-14 22:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681966,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681966,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681966', 'tblTempUsageDetail_20' ) start [2025-03-14 22:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681966', 'tblTempUsageDetail_20' ) end [2025-03-14 22:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 22:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 22:42:21] Production.INFO: ==31551== Releasing lock... [2025-03-14 22:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 22:42:21] Production.INFO: 38.25 MB #Memory Used# [2025-03-14 22:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 19:43:05 [end_date_ymd] => 2025-03-14 22:43:05 [RateCDR] => 1 ) [2025-03-14 22:43: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-03-14 19:43:05' and `end` < '2025-03-14 22:43: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-03-14 22:43:17] Production.INFO: count ==1366 [2025-03-14 22:43:18] Production.ERROR: pbx CDR StartTime 2025-03-14 19:43:05 - End Time 2025-03-14 22:43:05 [2025-03-14 22:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681971', 'tblTempUsageDetail_20' ) start [2025-03-14 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681971', 'tblTempUsageDetail_20' ) end [2025-03-14 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681971', 'tblTempVendorCDR_20' ) start [2025-03-14 22:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681971', 'tblTempVendorCDR_20' ) end [2025-03-14 22:43:18] Production.INFO: ProcessCDR(1,14681971,1,1,2) [2025-03-14 22:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681971,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681971,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681971', 'tblTempUsageDetail_20' ) start [2025-03-14 22:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681971', 'tblTempUsageDetail_20' ) end [2025-03-14 22:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 22:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 22:43:21] Production.INFO: ==31625== Releasing lock... [2025-03-14 22:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 22:43:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-14 22:44:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 19:44:06 [end_date_ymd] => 2025-03-14 22:44:06 [RateCDR] => 1 ) [2025-03-14 22:44: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-03-14 19:44:06' and `end` < '2025-03-14 22:44: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-03-14 22:44:18] Production.INFO: count ==1365 [2025-03-14 22:44:18] Production.ERROR: pbx CDR StartTime 2025-03-14 19:44:06 - End Time 2025-03-14 22:44:06 [2025-03-14 22:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681976', 'tblTempUsageDetail_20' ) start [2025-03-14 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681976', 'tblTempUsageDetail_20' ) end [2025-03-14 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681976', 'tblTempVendorCDR_20' ) start [2025-03-14 22:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681976', 'tblTempVendorCDR_20' ) end [2025-03-14 22:44:18] Production.INFO: ProcessCDR(1,14681976,1,1,2) [2025-03-14 22:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681976,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:44:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681976,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681976', 'tblTempUsageDetail_20' ) start [2025-03-14 22:44:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681976', 'tblTempUsageDetail_20' ) end [2025-03-14 22:44:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 22:44:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 22:44:22] Production.INFO: ==31703== Releasing lock... [2025-03-14 22:44:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 22:44:22] Production.INFO: 38.75 MB #Memory Used# [2025-03-14 22:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 19:45:05 [end_date_ymd] => 2025-03-14 22:45:05 [RateCDR] => 1 ) [2025-03-14 22:45: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-03-14 19:45:05' and `end` < '2025-03-14 22:45: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-03-14 22:45:17] Production.INFO: count ==1364 [2025-03-14 22:45:18] Production.ERROR: pbx CDR StartTime 2025-03-14 19:45:05 - End Time 2025-03-14 22:45:05 [2025-03-14 22:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681981', 'tblTempUsageDetail_20' ) start [2025-03-14 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681981', 'tblTempUsageDetail_20' ) end [2025-03-14 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681981', 'tblTempVendorCDR_20' ) start [2025-03-14 22:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681981', 'tblTempVendorCDR_20' ) end [2025-03-14 22:45:18] Production.INFO: ProcessCDR(1,14681981,1,1,2) [2025-03-14 22:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:45:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681981,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:45:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:45:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681981,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:45:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681981', 'tblTempUsageDetail_20' ) start [2025-03-14 22:45:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681981', 'tblTempUsageDetail_20' ) end [2025-03-14 22:45:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 22:45:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 22:45:23] Production.INFO: ==31781== Releasing lock... [2025-03-14 22:45:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 22:45:23] Production.INFO: 38.75 MB #Memory Used# [2025-03-14 22:46:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 19:46:05 [end_date_ymd] => 2025-03-14 22:46:05 [RateCDR] => 1 ) [2025-03-14 22:46: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-03-14 19:46:05' and `end` < '2025-03-14 22:46: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-03-14 22:46:18] Production.INFO: count ==1369 [2025-03-14 22:46:18] Production.ERROR: pbx CDR StartTime 2025-03-14 19:46:05 - End Time 2025-03-14 22:46:05 [2025-03-14 22:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681986', 'tblTempUsageDetail_20' ) start [2025-03-14 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681986', 'tblTempUsageDetail_20' ) end [2025-03-14 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681986', 'tblTempVendorCDR_20' ) start [2025-03-14 22:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681986', 'tblTempVendorCDR_20' ) end [2025-03-14 22:46:18] Production.INFO: ProcessCDR(1,14681986,1,1,2) [2025-03-14 22:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681986,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681986,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681986', 'tblTempUsageDetail_20' ) start [2025-03-14 22:46:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681986', 'tblTempUsageDetail_20' ) end [2025-03-14 22:46:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 22:46:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 22:46:22] Production.INFO: ==31860== Releasing lock... [2025-03-14 22:46:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 22:46:22] Production.INFO: 38.25 MB #Memory Used# [2025-03-14 22:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 19:47:05 [end_date_ymd] => 2025-03-14 22:47:05 [RateCDR] => 1 ) [2025-03-14 22:47: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-03-14 19:47:05' and `end` < '2025-03-14 22:47: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-03-14 22:47:17] Production.INFO: count ==1374 [2025-03-14 22:47:18] Production.ERROR: pbx CDR StartTime 2025-03-14 19:47:05 - End Time 2025-03-14 22:47:05 [2025-03-14 22:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681991', 'tblTempUsageDetail_20' ) start [2025-03-14 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681991', 'tblTempUsageDetail_20' ) end [2025-03-14 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681991', 'tblTempVendorCDR_20' ) start [2025-03-14 22:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681991', 'tblTempVendorCDR_20' ) end [2025-03-14 22:47:18] Production.INFO: ProcessCDR(1,14681991,1,1,2) [2025-03-14 22:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:47:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681991,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:47:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:47:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681991,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681991', 'tblTempUsageDetail_20' ) start [2025-03-14 22:47:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681991', 'tblTempUsageDetail_20' ) end [2025-03-14 22:47:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 22:47:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 22:47:23] Production.INFO: ==31974== Releasing lock... [2025-03-14 22:47:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 22:47:23] Production.INFO: 38 MB #Memory Used# [2025-03-14 22:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 19:48:06 [end_date_ymd] => 2025-03-14 22:48:06 [RateCDR] => 1 ) [2025-03-14 22:48: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-03-14 19:48:06' and `end` < '2025-03-14 22:48: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-03-14 22:48:18] Production.INFO: count ==1370 [2025-03-14 22:48:18] Production.ERROR: pbx CDR StartTime 2025-03-14 19:48:06 - End Time 2025-03-14 22:48:06 [2025-03-14 22:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681996', 'tblTempUsageDetail_20' ) start [2025-03-14 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14681996', 'tblTempUsageDetail_20' ) end [2025-03-14 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681996', 'tblTempVendorCDR_20' ) start [2025-03-14 22:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14681996', 'tblTempVendorCDR_20' ) end [2025-03-14 22:48:18] Production.INFO: ProcessCDR(1,14681996,1,1,2) [2025-03-14 22:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14681996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:48:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14681996,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:48:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14681996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:48:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14681996,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681996', 'tblTempUsageDetail_20' ) start [2025-03-14 22:48:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14681996', 'tblTempUsageDetail_20' ) end [2025-03-14 22:48:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 22:48:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 22:48:23] Production.INFO: ==32054== Releasing lock... [2025-03-14 22:48:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 22:48:23] Production.INFO: 38.25 MB #Memory Used# [2025-03-14 22:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 19:49:05 [end_date_ymd] => 2025-03-14 22:49:05 [RateCDR] => 1 ) [2025-03-14 22:49: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-03-14 19:49:05' and `end` < '2025-03-14 22:49: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-03-14 22:49:17] Production.INFO: count ==1366 [2025-03-14 22:49:18] Production.ERROR: pbx CDR StartTime 2025-03-14 19:49:05 - End Time 2025-03-14 22:49:05 [2025-03-14 22:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682001', 'tblTempUsageDetail_20' ) start [2025-03-14 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682001', 'tblTempUsageDetail_20' ) end [2025-03-14 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682001', 'tblTempVendorCDR_20' ) start [2025-03-14 22:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682001', 'tblTempVendorCDR_20' ) end [2025-03-14 22:49:18] Production.INFO: ProcessCDR(1,14682001,1,1,2) [2025-03-14 22:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:49:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682001,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:49:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:49:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682001,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:49:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682001', 'tblTempUsageDetail_20' ) start [2025-03-14 22:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682001', 'tblTempUsageDetail_20' ) end [2025-03-14 22:49:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 22:49:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 22:49:23] Production.INFO: ==32125== Releasing lock... [2025-03-14 22:49:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 22:49:23] Production.INFO: 38.5 MB #Memory Used# [2025-03-14 22:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 19:50:06 [end_date_ymd] => 2025-03-14 22:50:06 [RateCDR] => 1 ) [2025-03-14 22:50: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-03-14 19:50:06' and `end` < '2025-03-14 22:50: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-03-14 22:50:18] Production.INFO: count ==1366 [2025-03-14 22:50:18] Production.ERROR: pbx CDR StartTime 2025-03-14 19:50:06 - End Time 2025-03-14 22:50:06 [2025-03-14 22:50:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 22:50:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682006', 'tblTempUsageDetail_20' ) start [2025-03-14 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682006', 'tblTempUsageDetail_20' ) end [2025-03-14 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682006', 'tblTempVendorCDR_20' ) start [2025-03-14 22:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682006', 'tblTempVendorCDR_20' ) end [2025-03-14 22:50:19] Production.INFO: ProcessCDR(1,14682006,1,1,2) [2025-03-14 22:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682006,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682006,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682006', 'tblTempUsageDetail_20' ) start [2025-03-14 22:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682006', 'tblTempUsageDetail_20' ) end [2025-03-14 22:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 22:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 22:50:22] Production.INFO: ==32203== Releasing lock... [2025-03-14 22:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 22:50:22] Production.INFO: 38.25 MB #Memory Used# [2025-03-14 22:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 19:51:05 [end_date_ymd] => 2025-03-14 22:51:05 [RateCDR] => 1 ) [2025-03-14 22:51: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-03-14 19:51:05' and `end` < '2025-03-14 22:51: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-03-14 22:51:18] Production.INFO: count ==1349 [2025-03-14 22:51:18] Production.ERROR: pbx CDR StartTime 2025-03-14 19:51:05 - End Time 2025-03-14 22:51:05 [2025-03-14 22:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682012', 'tblTempUsageDetail_20' ) start [2025-03-14 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682012', 'tblTempUsageDetail_20' ) end [2025-03-14 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682012', 'tblTempVendorCDR_20' ) start [2025-03-14 22:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682012', 'tblTempVendorCDR_20' ) end [2025-03-14 22:51:18] Production.INFO: ProcessCDR(1,14682012,1,1,2) [2025-03-14 22:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:51:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682012,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:51:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:51:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682012,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682012', 'tblTempUsageDetail_20' ) start [2025-03-14 22:51:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682012', 'tblTempUsageDetail_20' ) end [2025-03-14 22:51:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 22:51:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 22:51:23] Production.INFO: ==32279== Releasing lock... [2025-03-14 22:51:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 22:51:23] Production.INFO: 38.25 MB #Memory Used# [2025-03-14 22:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 19:52:05 [end_date_ymd] => 2025-03-14 22:52:05 [RateCDR] => 1 ) [2025-03-14 22:52: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-03-14 19:52:05' and `end` < '2025-03-14 22:52: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-03-14 22:52:18] Production.INFO: count ==1383 [2025-03-14 22:52:18] Production.ERROR: pbx CDR StartTime 2025-03-14 19:52:05 - End Time 2025-03-14 22:52:05 [2025-03-14 22:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682017', 'tblTempUsageDetail_20' ) start [2025-03-14 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682017', 'tblTempUsageDetail_20' ) end [2025-03-14 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682017', 'tblTempVendorCDR_20' ) start [2025-03-14 22:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682017', 'tblTempVendorCDR_20' ) end [2025-03-14 22:52:18] Production.INFO: ProcessCDR(1,14682017,1,1,2) [2025-03-14 22:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682017,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682017,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682017', 'tblTempUsageDetail_20' ) start [2025-03-14 22:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682017', 'tblTempUsageDetail_20' ) end [2025-03-14 22:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 22:52:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 22:52:22] Production.INFO: ==32353== Releasing lock... [2025-03-14 22:52:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 22:52:22] Production.INFO: 38.75 MB #Memory Used# [2025-03-14 22:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 19:53:05 [end_date_ymd] => 2025-03-14 22:53:05 [RateCDR] => 1 ) [2025-03-14 22:53: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-03-14 19:53:05' and `end` < '2025-03-14 22:53: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-03-14 22:53:17] Production.INFO: count ==1387 [2025-03-14 22:53:17] Production.ERROR: pbx CDR StartTime 2025-03-14 19:53:05 - End Time 2025-03-14 22:53:05 [2025-03-14 22:53:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682022', 'tblTempUsageDetail_20' ) start [2025-03-14 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682022', 'tblTempUsageDetail_20' ) end [2025-03-14 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682022', 'tblTempVendorCDR_20' ) start [2025-03-14 22:53:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682022', 'tblTempVendorCDR_20' ) end [2025-03-14 22:53:17] Production.INFO: ProcessCDR(1,14682022,1,1,2) [2025-03-14 22:53:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:53:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682022,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:53:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682022,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682022', 'tblTempUsageDetail_20' ) start [2025-03-14 22:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682022', 'tblTempUsageDetail_20' ) end [2025-03-14 22:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 22:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 22:53:21] Production.INFO: ==32429== Releasing lock... [2025-03-14 22:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 22:53:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-14 22:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 19:54:05 [end_date_ymd] => 2025-03-14 22:54:05 [RateCDR] => 1 ) [2025-03-14 22:54: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-03-14 19:54:05' and `end` < '2025-03-14 22:54: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-03-14 22:54:18] Production.INFO: count ==1385 [2025-03-14 22:54:18] Production.ERROR: pbx CDR StartTime 2025-03-14 19:54:05 - End Time 2025-03-14 22:54:05 [2025-03-14 22:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682027', 'tblTempUsageDetail_20' ) start [2025-03-14 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682027', 'tblTempUsageDetail_20' ) end [2025-03-14 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682027', 'tblTempVendorCDR_20' ) start [2025-03-14 22:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682027', 'tblTempVendorCDR_20' ) end [2025-03-14 22:54:18] Production.INFO: ProcessCDR(1,14682027,1,1,2) [2025-03-14 22:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682027,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682027,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682027', 'tblTempUsageDetail_20' ) start [2025-03-14 22:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682027', 'tblTempUsageDetail_20' ) end [2025-03-14 22:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 22:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 22:54:21] Production.INFO: ==32502== Releasing lock... [2025-03-14 22:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 22:54:21] Production.INFO: 38.75 MB #Memory Used# [2025-03-14 22:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 19:55:05 [end_date_ymd] => 2025-03-14 22:55:05 [RateCDR] => 1 ) [2025-03-14 22:55: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-03-14 19:55:05' and `end` < '2025-03-14 22:55: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-03-14 22:55:17] Production.INFO: count ==1383 [2025-03-14 22:55:17] Production.ERROR: pbx CDR StartTime 2025-03-14 19:55:05 - End Time 2025-03-14 22:55:05 [2025-03-14 22:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 22:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682032', 'tblTempUsageDetail_20' ) start [2025-03-14 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682032', 'tblTempUsageDetail_20' ) end [2025-03-14 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682032', 'tblTempVendorCDR_20' ) start [2025-03-14 22:55:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682032', 'tblTempVendorCDR_20' ) end [2025-03-14 22:55:18] Production.INFO: ProcessCDR(1,14682032,1,1,2) [2025-03-14 22:55:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:55:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682032,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:55:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:55:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682032,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682032', 'tblTempUsageDetail_20' ) start [2025-03-14 22:55:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682032', 'tblTempUsageDetail_20' ) end [2025-03-14 22:55:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 22:55:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 22:55:21] Production.INFO: ==32576== Releasing lock... [2025-03-14 22:55:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 22:55:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-14 22:56:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 19:56:05 [end_date_ymd] => 2025-03-14 22:56:05 [RateCDR] => 1 ) [2025-03-14 22:56: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-03-14 19:56:05' and `end` < '2025-03-14 22:56: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-03-14 22:56:17] Production.INFO: count ==1386 [2025-03-14 22:56:18] Production.ERROR: pbx CDR StartTime 2025-03-14 19:56:05 - End Time 2025-03-14 22:56:05 [2025-03-14 22:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682037', 'tblTempUsageDetail_20' ) start [2025-03-14 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682037', 'tblTempUsageDetail_20' ) end [2025-03-14 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682037', 'tblTempVendorCDR_20' ) start [2025-03-14 22:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682037', 'tblTempVendorCDR_20' ) end [2025-03-14 22:56:18] Production.INFO: ProcessCDR(1,14682037,1,1,2) [2025-03-14 22:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:56:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682037,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:56:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:56:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682037,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682037', 'tblTempUsageDetail_20' ) start [2025-03-14 22:56:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682037', 'tblTempUsageDetail_20' ) end [2025-03-14 22:56:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 22:56:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 22:56:23] Production.INFO: ==32650== Releasing lock... [2025-03-14 22:56:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 22:56:23] Production.INFO: 38.5 MB #Memory Used# [2025-03-14 22:57:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 19:57:06 [end_date_ymd] => 2025-03-14 22:57:06 [RateCDR] => 1 ) [2025-03-14 22:57: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-03-14 19:57:06' and `end` < '2025-03-14 22:57: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-03-14 22:57:18] Production.INFO: count ==1384 [2025-03-14 22:57:19] Production.ERROR: pbx CDR StartTime 2025-03-14 19:57:06 - End Time 2025-03-14 22:57:06 [2025-03-14 22:57:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682042', 'tblTempUsageDetail_20' ) start [2025-03-14 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682042', 'tblTempUsageDetail_20' ) end [2025-03-14 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682042', 'tblTempVendorCDR_20' ) start [2025-03-14 22:57:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682042', 'tblTempVendorCDR_20' ) end [2025-03-14 22:57:19] Production.INFO: ProcessCDR(1,14682042,1,1,2) [2025-03-14 22:57:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:57:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682042,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:57:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:57:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682042,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682042', 'tblTempUsageDetail_20' ) start [2025-03-14 22:57:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682042', 'tblTempUsageDetail_20' ) end [2025-03-14 22:57:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 22:57:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 22:57:23] Production.INFO: ==32727== Releasing lock... [2025-03-14 22:57:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 22:57:23] Production.INFO: 38.75 MB #Memory Used# [2025-03-14 22:58:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 19:58:05 [end_date_ymd] => 2025-03-14 22:58:05 [RateCDR] => 1 ) [2025-03-14 22:58: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-03-14 19:58:05' and `end` < '2025-03-14 22:58: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-03-14 22:58:17] Production.INFO: count ==1382 [2025-03-14 22:58:17] Production.ERROR: pbx CDR StartTime 2025-03-14 19:58:05 - End Time 2025-03-14 22:58:05 [2025-03-14 22:58:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682047', 'tblTempUsageDetail_20' ) start [2025-03-14 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682047', 'tblTempUsageDetail_20' ) end [2025-03-14 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682047', 'tblTempVendorCDR_20' ) start [2025-03-14 22:58:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682047', 'tblTempVendorCDR_20' ) end [2025-03-14 22:58:17] Production.INFO: ProcessCDR(1,14682047,1,1,2) [2025-03-14 22:58:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:58:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682047,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:58:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:58:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682047,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682047', 'tblTempUsageDetail_20' ) start [2025-03-14 22:58:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682047', 'tblTempUsageDetail_20' ) end [2025-03-14 22:58:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 22:58:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 22:58:21] Production.INFO: ==339== Releasing lock... [2025-03-14 22:58:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 22:58:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-14 22:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 19:59:05 [end_date_ymd] => 2025-03-14 22:59:05 [RateCDR] => 1 ) [2025-03-14 22:59: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-03-14 19:59:05' and `end` < '2025-03-14 22:59: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-03-14 22:59:17] Production.INFO: count ==1385 [2025-03-14 22:59:18] Production.ERROR: pbx CDR StartTime 2025-03-14 19:59:05 - End Time 2025-03-14 22:59:05 [2025-03-14 22:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682052', 'tblTempUsageDetail_20' ) start [2025-03-14 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682052', 'tblTempUsageDetail_20' ) end [2025-03-14 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682052', 'tblTempVendorCDR_20' ) start [2025-03-14 22:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682052', 'tblTempVendorCDR_20' ) end [2025-03-14 22:59:18] Production.INFO: ProcessCDR(1,14682052,1,1,2) [2025-03-14 22:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:59:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682052,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 22:59:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:59:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682052,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 22:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682052', 'tblTempUsageDetail_20' ) start [2025-03-14 22:59:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682052', 'tblTempUsageDetail_20' ) end [2025-03-14 22:59:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 22:59:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 22:59:23] Production.INFO: ==425== Releasing lock... [2025-03-14 22:59:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 22:59:23] Production.INFO: 38.75 MB #Memory Used# [2025-03-14 23:00:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 20:00:06 [end_date_ymd] => 2025-03-14 23:00:06 [RateCDR] => 1 ) [2025-03-14 23:00: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-03-14 20:00:06' and `end` < '2025-03-14 23:00: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-03-14 23:00:18] Production.INFO: count ==1380 [2025-03-14 23:00:19] Production.ERROR: pbx CDR StartTime 2025-03-14 20:00:06 - End Time 2025-03-14 23:00:06 [2025-03-14 23:00:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682057', 'tblTempUsageDetail_20' ) start [2025-03-14 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682057', 'tblTempUsageDetail_20' ) end [2025-03-14 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682057', 'tblTempVendorCDR_20' ) start [2025-03-14 23:00:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682057', 'tblTempVendorCDR_20' ) end [2025-03-14 23:00:19] Production.INFO: ProcessCDR(1,14682057,1,1,2) [2025-03-14 23:00:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:00:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682057,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:00:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:00:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682057,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682057', 'tblTempUsageDetail_20' ) start [2025-03-14 23:00:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682057', 'tblTempUsageDetail_20' ) end [2025-03-14 23:00:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 23:00:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 23:00:22] Production.INFO: ==511== Releasing lock... [2025-03-14 23:00:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 23:00:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-14 23:01:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 20:01:06 [end_date_ymd] => 2025-03-14 23:01:06 [RateCDR] => 1 ) [2025-03-14 23:01: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-03-14 20:01:06' and `end` < '2025-03-14 23:01: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-03-14 23:01:18] Production.INFO: count ==1330 [2025-03-14 23:01:19] Production.ERROR: pbx CDR StartTime 2025-03-14 20:01:06 - End Time 2025-03-14 23:01:06 [2025-03-14 23:01:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682063', 'tblTempUsageDetail_20' ) start [2025-03-14 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682063', 'tblTempUsageDetail_20' ) end [2025-03-14 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682063', 'tblTempVendorCDR_20' ) start [2025-03-14 23:01:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682063', 'tblTempVendorCDR_20' ) end [2025-03-14 23:01:19] Production.INFO: ProcessCDR(1,14682063,1,1,2) [2025-03-14 23:01:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:01:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682063,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:01:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:01:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682063,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682063', 'tblTempUsageDetail_20' ) start [2025-03-14 23:01:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682063', 'tblTempUsageDetail_20' ) end [2025-03-14 23:01:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 23:01:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 23:01:22] Production.INFO: ==602== Releasing lock... [2025-03-14 23:01:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 23:01:22] Production.INFO: 38 MB #Memory Used# [2025-03-14 23:02:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 20:02:05 [end_date_ymd] => 2025-03-14 23:02:05 [RateCDR] => 1 ) [2025-03-14 23:02: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-03-14 20:02:05' and `end` < '2025-03-14 23:02: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-03-14 23:02:18] Production.INFO: count ==1317 [2025-03-14 23:02:18] Production.ERROR: pbx CDR StartTime 2025-03-14 20:02:05 - End Time 2025-03-14 23:02:05 [2025-03-14 23:02:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682068', 'tblTempUsageDetail_20' ) start [2025-03-14 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682068', 'tblTempUsageDetail_20' ) end [2025-03-14 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682068', 'tblTempVendorCDR_20' ) start [2025-03-14 23:02:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682068', 'tblTempVendorCDR_20' ) end [2025-03-14 23:02:18] Production.INFO: ProcessCDR(1,14682068,1,1,2) [2025-03-14 23:02:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:02:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682068,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:02:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:02:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682068,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682068', 'tblTempUsageDetail_20' ) start [2025-03-14 23:02:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682068', 'tblTempUsageDetail_20' ) end [2025-03-14 23:02:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 23:02:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 23:02:22] Production.INFO: ==824== Releasing lock... [2025-03-14 23:02:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 23:02:22] Production.INFO: 38.25 MB #Memory Used# [2025-03-14 23:03:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 20:03:06 [end_date_ymd] => 2025-03-14 23:03:06 [RateCDR] => 1 ) [2025-03-14 23:03: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-03-14 20:03:06' and `end` < '2025-03-14 23:03: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-03-14 23:03:18] Production.INFO: count ==1314 [2025-03-14 23:03:18] Production.ERROR: pbx CDR StartTime 2025-03-14 20:03:06 - End Time 2025-03-14 23:03:06 [2025-03-14 23:03:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682073', 'tblTempUsageDetail_20' ) start [2025-03-14 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682073', 'tblTempUsageDetail_20' ) end [2025-03-14 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682073', 'tblTempVendorCDR_20' ) start [2025-03-14 23:03:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682073', 'tblTempVendorCDR_20' ) end [2025-03-14 23:03:18] Production.INFO: ProcessCDR(1,14682073,1,1,2) [2025-03-14 23:03:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:03:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682073,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:03:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:03:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682073,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682073', 'tblTempUsageDetail_20' ) start [2025-03-14 23:03:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682073', 'tblTempUsageDetail_20' ) end [2025-03-14 23:03:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 23:03:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 23:03:23] Production.INFO: ==904== Releasing lock... [2025-03-14 23:03:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 23:03:23] Production.INFO: 38.5 MB #Memory Used# [2025-03-14 23:04:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 20:04:05 [end_date_ymd] => 2025-03-14 23:04:05 [RateCDR] => 1 ) [2025-03-14 23:04: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-03-14 20:04:05' and `end` < '2025-03-14 23:04: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-03-14 23:04:17] Production.INFO: count ==1312 [2025-03-14 23:04:18] Production.ERROR: pbx CDR StartTime 2025-03-14 20:04:05 - End Time 2025-03-14 23:04:05 [2025-03-14 23:04:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682078', 'tblTempUsageDetail_20' ) start [2025-03-14 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682078', 'tblTempUsageDetail_20' ) end [2025-03-14 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682078', 'tblTempVendorCDR_20' ) start [2025-03-14 23:04:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682078', 'tblTempVendorCDR_20' ) end [2025-03-14 23:04:18] Production.INFO: ProcessCDR(1,14682078,1,1,2) [2025-03-14 23:04:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:04:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682078,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:04:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:04:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682078,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:04:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682078', 'tblTempUsageDetail_20' ) start [2025-03-14 23:04:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682078', 'tblTempUsageDetail_20' ) end [2025-03-14 23:04:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 23:04:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 23:04:23] Production.INFO: ==985== Releasing lock... [2025-03-14 23:04:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 23:04:23] Production.INFO: 38 MB #Memory Used# [2025-03-14 23:05:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 20:05:05 [end_date_ymd] => 2025-03-14 23:05:05 [RateCDR] => 1 ) [2025-03-14 23:05: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-03-14 20:05:05' and `end` < '2025-03-14 23:05: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-03-14 23:05:18] Production.INFO: count ==1317 [2025-03-14 23:05:18] Production.ERROR: pbx CDR StartTime 2025-03-14 20:05:05 - End Time 2025-03-14 23:05:05 [2025-03-14 23:05:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682083', 'tblTempUsageDetail_20' ) start [2025-03-14 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682083', 'tblTempUsageDetail_20' ) end [2025-03-14 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682083', 'tblTempVendorCDR_20' ) start [2025-03-14 23:05:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682083', 'tblTempVendorCDR_20' ) end [2025-03-14 23:05:18] Production.INFO: ProcessCDR(1,14682083,1,1,2) [2025-03-14 23:05:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:05:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682083,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:05:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:05:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682083,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682083', 'tblTempUsageDetail_20' ) start [2025-03-14 23:05:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682083', 'tblTempUsageDetail_20' ) end [2025-03-14 23:05:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 23:05:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 23:05:22] Production.INFO: ==1135== Releasing lock... [2025-03-14 23:05:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 23:05:22] Production.INFO: 38.5 MB #Memory Used# [2025-03-14 23:06:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 20:06:05 [end_date_ymd] => 2025-03-14 23:06:05 [RateCDR] => 1 ) [2025-03-14 23:06: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-03-14 20:06:05' and `end` < '2025-03-14 23:06: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-03-14 23:06:18] Production.INFO: count ==1316 [2025-03-14 23:06:18] Production.ERROR: pbx CDR StartTime 2025-03-14 20:06:05 - End Time 2025-03-14 23:06:05 [2025-03-14 23:06:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682088', 'tblTempUsageDetail_20' ) start [2025-03-14 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682088', 'tblTempUsageDetail_20' ) end [2025-03-14 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682088', 'tblTempVendorCDR_20' ) start [2025-03-14 23:06:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682088', 'tblTempVendorCDR_20' ) end [2025-03-14 23:06:18] Production.INFO: ProcessCDR(1,14682088,1,1,2) [2025-03-14 23:06:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:06:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682088,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:06:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:06:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682088,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682088', 'tblTempUsageDetail_20' ) start [2025-03-14 23:06:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682088', 'tblTempUsageDetail_20' ) end [2025-03-14 23:06:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 23:06:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 23:06:21] Production.INFO: ==1212== Releasing lock... [2025-03-14 23:06:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 23:06:21] Production.INFO: 38 MB #Memory Used# [2025-03-14 23:07:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 20:07:06 [end_date_ymd] => 2025-03-14 23:07:06 [RateCDR] => 1 ) [2025-03-14 23:07: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-03-14 20:07:06' and `end` < '2025-03-14 23:07: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-03-14 23:07:18] Production.INFO: count ==1318 [2025-03-14 23:07:18] Production.ERROR: pbx CDR StartTime 2025-03-14 20:07:06 - End Time 2025-03-14 23:07:06 [2025-03-14 23:07:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682093', 'tblTempUsageDetail_20' ) start [2025-03-14 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682093', 'tblTempUsageDetail_20' ) end [2025-03-14 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682093', 'tblTempVendorCDR_20' ) start [2025-03-14 23:07:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682093', 'tblTempVendorCDR_20' ) end [2025-03-14 23:07:18] Production.INFO: ProcessCDR(1,14682093,1,1,2) [2025-03-14 23:07:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:07:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682093,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:07:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:07:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682093,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682093', 'tblTempUsageDetail_20' ) start [2025-03-14 23:07:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682093', 'tblTempUsageDetail_20' ) end [2025-03-14 23:07:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 23:07:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 23:07:23] Production.INFO: ==1297== Releasing lock... [2025-03-14 23:07:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 23:07:23] Production.INFO: 38.5 MB #Memory Used# [2025-03-14 23:08:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 20:08:05 [end_date_ymd] => 2025-03-14 23:08:05 [RateCDR] => 1 ) [2025-03-14 23:08: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-03-14 20:08:05' and `end` < '2025-03-14 23:08: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-03-14 23:08:18] Production.INFO: count ==1318 [2025-03-14 23:08:18] Production.ERROR: pbx CDR StartTime 2025-03-14 20:08:05 - End Time 2025-03-14 23:08:05 [2025-03-14 23:08:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682098', 'tblTempUsageDetail_20' ) start [2025-03-14 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682098', 'tblTempUsageDetail_20' ) end [2025-03-14 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682098', 'tblTempVendorCDR_20' ) start [2025-03-14 23:08:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682098', 'tblTempVendorCDR_20' ) end [2025-03-14 23:08:18] Production.INFO: ProcessCDR(1,14682098,1,1,2) [2025-03-14 23:08:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:08:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682098,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:08:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:08:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682098,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682098', 'tblTempUsageDetail_20' ) start [2025-03-14 23:08:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682098', 'tblTempUsageDetail_20' ) end [2025-03-14 23:08:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 23:08:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 23:08:21] Production.INFO: ==1446== Releasing lock... [2025-03-14 23:08:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 23:08:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-14 23:09:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 20:09:05 [end_date_ymd] => 2025-03-14 23:09:05 [RateCDR] => 1 ) [2025-03-14 23:09: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-03-14 20:09:05' and `end` < '2025-03-14 23:09: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-03-14 23:09:18] Production.INFO: count ==1318 [2025-03-14 23:09:18] Production.ERROR: pbx CDR StartTime 2025-03-14 20:09:05 - End Time 2025-03-14 23:09:05 [2025-03-14 23:09:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682103', 'tblTempUsageDetail_20' ) start [2025-03-14 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682103', 'tblTempUsageDetail_20' ) end [2025-03-14 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682103', 'tblTempVendorCDR_20' ) start [2025-03-14 23:09:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682103', 'tblTempVendorCDR_20' ) end [2025-03-14 23:09:18] Production.INFO: ProcessCDR(1,14682103,1,1,2) [2025-03-14 23:09:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:09:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682103,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:09:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:09:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682103,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682103', 'tblTempUsageDetail_20' ) start [2025-03-14 23:09:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682103', 'tblTempUsageDetail_20' ) end [2025-03-14 23:09:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 23:09:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 23:09:21] Production.INFO: ==1551== Releasing lock... [2025-03-14 23:09:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 23:09:21] Production.INFO: 38.5 MB #Memory Used# [2025-03-14 23:10:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 20:10:06 [end_date_ymd] => 2025-03-14 23:10:06 [RateCDR] => 1 ) [2025-03-14 23:10: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-03-14 20:10:06' and `end` < '2025-03-14 23:10: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-03-14 23:10:18] Production.INFO: count ==1320 [2025-03-14 23:10:18] Production.ERROR: pbx CDR StartTime 2025-03-14 20:10:06 - End Time 2025-03-14 23:10:06 [2025-03-14 23:10:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682109', 'tblTempUsageDetail_20' ) start [2025-03-14 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682109', 'tblTempUsageDetail_20' ) end [2025-03-14 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682109', 'tblTempVendorCDR_20' ) start [2025-03-14 23:10:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682109', 'tblTempVendorCDR_20' ) end [2025-03-14 23:10:18] Production.INFO: ProcessCDR(1,14682109,1,1,2) [2025-03-14 23:10:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:10:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682109,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:10:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:10:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682109,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682109', 'tblTempUsageDetail_20' ) start [2025-03-14 23:10:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682109', 'tblTempUsageDetail_20' ) end [2025-03-14 23:10:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 23:10:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 23:10:23] Production.INFO: ==1631== Releasing lock... [2025-03-14 23:10:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 23:10:23] Production.INFO: 38.25 MB #Memory Used# [2025-03-14 23:11:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 20:11:06 [end_date_ymd] => 2025-03-14 23:11:06 [RateCDR] => 1 ) [2025-03-14 23:11: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-03-14 20:11:06' and `end` < '2025-03-14 23:11: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-03-14 23:11:18] Production.INFO: count ==1279 [2025-03-14 23:11:18] Production.ERROR: pbx CDR StartTime 2025-03-14 20:11:06 - End Time 2025-03-14 23:11:06 [2025-03-14 23:11:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682114', 'tblTempUsageDetail_20' ) start [2025-03-14 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682114', 'tblTempUsageDetail_20' ) end [2025-03-14 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682114', 'tblTempVendorCDR_20' ) start [2025-03-14 23:11:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682114', 'tblTempVendorCDR_20' ) end [2025-03-14 23:11:18] Production.INFO: ProcessCDR(1,14682114,1,1,2) [2025-03-14 23:11:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:11:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682114,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:11:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:11:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682114,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682114', 'tblTempUsageDetail_20' ) start [2025-03-14 23:11:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682114', 'tblTempUsageDetail_20' ) end [2025-03-14 23:11:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 23:11:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 23:11:22] Production.INFO: ==1707== Releasing lock... [2025-03-14 23:11:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 23:11:22] Production.INFO: 38 MB #Memory Used# [2025-03-14 23:12:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 20:12:05 [end_date_ymd] => 2025-03-14 23:12:05 [RateCDR] => 1 ) [2025-03-14 23:12: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-03-14 20:12:05' and `end` < '2025-03-14 23:12: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-03-14 23:12:17] Production.INFO: count ==1277 [2025-03-14 23:12:18] Production.ERROR: pbx CDR StartTime 2025-03-14 20:12:05 - End Time 2025-03-14 23:12:05 [2025-03-14 23:12:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682119', 'tblTempUsageDetail_20' ) start [2025-03-14 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682119', 'tblTempUsageDetail_20' ) end [2025-03-14 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682119', 'tblTempVendorCDR_20' ) start [2025-03-14 23:12:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682119', 'tblTempVendorCDR_20' ) end [2025-03-14 23:12:18] Production.INFO: ProcessCDR(1,14682119,1,1,2) [2025-03-14 23:12:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:12:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682119,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:12:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:12:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682119,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682119', 'tblTempUsageDetail_20' ) start [2025-03-14 23:12:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682119', 'tblTempUsageDetail_20' ) end [2025-03-14 23:12:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 23:12:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 23:12:21] Production.INFO: ==1861== Releasing lock... [2025-03-14 23:12:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 23:12:21] Production.INFO: 37.75 MB #Memory Used# [2025-03-14 23:13:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 20:13:05 [end_date_ymd] => 2025-03-14 23:13:05 [RateCDR] => 1 ) [2025-03-14 23:13: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-03-14 20:13:05' and `end` < '2025-03-14 23:13: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-03-14 23:13:17] Production.INFO: count ==1274 [2025-03-14 23:13:18] Production.ERROR: pbx CDR StartTime 2025-03-14 20:13:05 - End Time 2025-03-14 23:13:05 [2025-03-14 23:13:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682124', 'tblTempUsageDetail_20' ) start [2025-03-14 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682124', 'tblTempUsageDetail_20' ) end [2025-03-14 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682124', 'tblTempVendorCDR_20' ) start [2025-03-14 23:13:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682124', 'tblTempVendorCDR_20' ) end [2025-03-14 23:13:18] Production.INFO: ProcessCDR(1,14682124,1,1,2) [2025-03-14 23:13:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:13:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682124,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:13:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:13:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682124,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682124', 'tblTempUsageDetail_20' ) start [2025-03-14 23:13:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682124', 'tblTempUsageDetail_20' ) end [2025-03-14 23:13:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 23:13:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 23:13:21] Production.INFO: ==1940== Releasing lock... [2025-03-14 23:13:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 23:13:21] Production.INFO: 38 MB #Memory Used# [2025-03-14 23:14:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 20:14:04 [end_date_ymd] => 2025-03-14 23:14:04 [RateCDR] => 1 ) [2025-03-14 23:14: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-03-14 20:14:04' and `end` < '2025-03-14 23:14: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-03-14 23:14:17] Production.INFO: count ==1269 [2025-03-14 23:14:17] Production.ERROR: pbx CDR StartTime 2025-03-14 20:14:04 - End Time 2025-03-14 23:14:04 [2025-03-14 23:14:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682129', 'tblTempUsageDetail_20' ) start [2025-03-14 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682129', 'tblTempUsageDetail_20' ) end [2025-03-14 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682129', 'tblTempVendorCDR_20' ) start [2025-03-14 23:14:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682129', 'tblTempVendorCDR_20' ) end [2025-03-14 23:14:17] Production.INFO: ProcessCDR(1,14682129,1,1,2) [2025-03-14 23:14:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:14:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682129,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:14:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:14:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682129,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:14:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682129', 'tblTempUsageDetail_20' ) start [2025-03-14 23:14:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682129', 'tblTempUsageDetail_20' ) end [2025-03-14 23:14:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 23:14:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 23:14:21] Production.INFO: ==2013== Releasing lock... [2025-03-14 23:14:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 23:14:21] Production.INFO: 37.75 MB #Memory Used# [2025-03-14 23:15:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 20:15:05 [end_date_ymd] => 2025-03-14 23:15:05 [RateCDR] => 1 ) [2025-03-14 23:15: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-03-14 20:15:05' and `end` < '2025-03-14 23:15: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-03-14 23:15:17] Production.INFO: count ==1266 [2025-03-14 23:15:17] Production.ERROR: pbx CDR StartTime 2025-03-14 20:15:05 - End Time 2025-03-14 23:15:05 [2025-03-14 23:15:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682134', 'tblTempUsageDetail_20' ) start [2025-03-14 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682134', 'tblTempUsageDetail_20' ) end [2025-03-14 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682134', 'tblTempVendorCDR_20' ) start [2025-03-14 23:15:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682134', 'tblTempVendorCDR_20' ) end [2025-03-14 23:15:17] Production.INFO: ProcessCDR(1,14682134,1,1,2) [2025-03-14 23:15:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:15:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682134,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:15:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:15:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682134,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682134', 'tblTempUsageDetail_20' ) start [2025-03-14 23:15:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682134', 'tblTempUsageDetail_20' ) end [2025-03-14 23:15:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 23:15:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 23:15:20] Production.INFO: ==2167== Releasing lock... [2025-03-14 23:15:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 23:15:20] Production.INFO: 37.25 MB #Memory Used# [2025-03-14 23:16:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 20:16:05 [end_date_ymd] => 2025-03-14 23:16:05 [RateCDR] => 1 ) [2025-03-14 23:16: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-03-14 20:16:05' and `end` < '2025-03-14 23:16: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-03-14 23:16:18] Production.INFO: count ==1262 [2025-03-14 23:16:18] Production.ERROR: pbx CDR StartTime 2025-03-14 20:16:05 - End Time 2025-03-14 23:16:05 [2025-03-14 23:16:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682139', 'tblTempUsageDetail_20' ) start [2025-03-14 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682139', 'tblTempUsageDetail_20' ) end [2025-03-14 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682139', 'tblTempVendorCDR_20' ) start [2025-03-14 23:16:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682139', 'tblTempVendorCDR_20' ) end [2025-03-14 23:16:18] Production.INFO: ProcessCDR(1,14682139,1,1,2) [2025-03-14 23:16:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:16:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682139,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:16:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:16:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682139,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682139', 'tblTempUsageDetail_20' ) start [2025-03-14 23:16:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682139', 'tblTempUsageDetail_20' ) end [2025-03-14 23:16:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 23:16:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 23:16:21] Production.INFO: ==2241== Releasing lock... [2025-03-14 23:16:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 23:16:21] Production.INFO: 37.75 MB #Memory Used# [2025-03-14 23:17:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 20:17:05 [end_date_ymd] => 2025-03-14 23:17:05 [RateCDR] => 1 ) [2025-03-14 23:17: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-03-14 20:17:05' and `end` < '2025-03-14 23:17: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-03-14 23:17:17] Production.INFO: count ==1252 [2025-03-14 23:17:18] Production.ERROR: pbx CDR StartTime 2025-03-14 20:17:05 - End Time 2025-03-14 23:17:05 [2025-03-14 23:17:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682144', 'tblTempUsageDetail_20' ) start [2025-03-14 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682144', 'tblTempUsageDetail_20' ) end [2025-03-14 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682144', 'tblTempVendorCDR_20' ) start [2025-03-14 23:17:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682144', 'tblTempVendorCDR_20' ) end [2025-03-14 23:17:18] Production.INFO: ProcessCDR(1,14682144,1,1,2) [2025-03-14 23:17:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:17:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682144,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:17:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:17:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682144,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682144', 'tblTempUsageDetail_20' ) start [2025-03-14 23:17:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682144', 'tblTempUsageDetail_20' ) end [2025-03-14 23:17:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 23:17:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 23:17:21] Production.INFO: ==2312== Releasing lock... [2025-03-14 23:17:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 23:17:21] Production.INFO: 38 MB #Memory Used# [2025-03-14 23:18:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 20:18:06 [end_date_ymd] => 2025-03-14 23:18:06 [RateCDR] => 1 ) [2025-03-14 23:18: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-03-14 20:18:06' and `end` < '2025-03-14 23:18: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-03-14 23:18:18] Production.INFO: count ==1248 [2025-03-14 23:18:18] Production.ERROR: pbx CDR StartTime 2025-03-14 20:18:06 - End Time 2025-03-14 23:18:06 [2025-03-14 23:18:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682149', 'tblTempUsageDetail_20' ) start [2025-03-14 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682149', 'tblTempUsageDetail_20' ) end [2025-03-14 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682149', 'tblTempVendorCDR_20' ) start [2025-03-14 23:18:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682149', 'tblTempVendorCDR_20' ) end [2025-03-14 23:18:18] Production.INFO: ProcessCDR(1,14682149,1,1,2) [2025-03-14 23:18:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:18:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682149,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:18:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:18:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682149,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682149', 'tblTempUsageDetail_20' ) start [2025-03-14 23:18:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682149', 'tblTempUsageDetail_20' ) end [2025-03-14 23:18:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 23:18:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 23:18:23] Production.INFO: ==2428== Releasing lock... [2025-03-14 23:18:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 23:18:23] Production.INFO: 38 MB #Memory Used# [2025-03-14 23:19:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 20:19:05 [end_date_ymd] => 2025-03-14 23:19:05 [RateCDR] => 1 ) [2025-03-14 23:19: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-03-14 20:19:05' and `end` < '2025-03-14 23:19: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-03-14 23:19:17] Production.INFO: count ==1242 [2025-03-14 23:19:18] Production.ERROR: pbx CDR StartTime 2025-03-14 20:19:05 - End Time 2025-03-14 23:19:05 [2025-03-14 23:19:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682154', 'tblTempUsageDetail_20' ) start [2025-03-14 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682154', 'tblTempUsageDetail_20' ) end [2025-03-14 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682154', 'tblTempVendorCDR_20' ) start [2025-03-14 23:19:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682154', 'tblTempVendorCDR_20' ) end [2025-03-14 23:19:18] Production.INFO: ProcessCDR(1,14682154,1,1,2) [2025-03-14 23:19:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:19:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682154,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:19:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:19:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682154,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682154', 'tblTempUsageDetail_20' ) start [2025-03-14 23:19:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682154', 'tblTempUsageDetail_20' ) end [2025-03-14 23:19:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 23:19:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 23:19:21] Production.INFO: ==2501== Releasing lock... [2025-03-14 23:19:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 23:19:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-14 23:20:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 20:20:06 [end_date_ymd] => 2025-03-14 23:20:06 [RateCDR] => 1 ) [2025-03-14 23:20: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-03-14 20:20:06' and `end` < '2025-03-14 23:20: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-03-14 23:20:18] Production.INFO: count ==1247 [2025-03-14 23:20:18] Production.ERROR: pbx CDR StartTime 2025-03-14 20:20:06 - End Time 2025-03-14 23:20:06 [2025-03-14 23:20:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682159', 'tblTempUsageDetail_20' ) start [2025-03-14 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682159', 'tblTempUsageDetail_20' ) end [2025-03-14 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682159', 'tblTempVendorCDR_20' ) start [2025-03-14 23:20:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682159', 'tblTempVendorCDR_20' ) end [2025-03-14 23:20:18] Production.INFO: ProcessCDR(1,14682159,1,1,2) [2025-03-14 23:20:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:20:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682159,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:20:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:20:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682159,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682159', 'tblTempUsageDetail_20' ) start [2025-03-14 23:20:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682159', 'tblTempUsageDetail_20' ) end [2025-03-14 23:20:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 23:20:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 23:20:23] Production.INFO: ==2575== Releasing lock... [2025-03-14 23:20:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 23:20:23] Production.INFO: 37.75 MB #Memory Used# [2025-03-14 23:21:04] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 20:21:04 [end_date_ymd] => 2025-03-14 23:21:04 [RateCDR] => 1 ) [2025-03-14 23:21: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-03-14 20:21:04' and `end` < '2025-03-14 23:21: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-03-14 23:21:17] Production.INFO: count ==1241 [2025-03-14 23:21:17] Production.ERROR: pbx CDR StartTime 2025-03-14 20:21:04 - End Time 2025-03-14 23:21:04 [2025-03-14 23:21:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682165', 'tblTempUsageDetail_20' ) start [2025-03-14 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682165', 'tblTempUsageDetail_20' ) end [2025-03-14 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682165', 'tblTempVendorCDR_20' ) start [2025-03-14 23:21:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682165', 'tblTempVendorCDR_20' ) end [2025-03-14 23:21:17] Production.INFO: ProcessCDR(1,14682165,1,1,2) [2025-03-14 23:21:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:21:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682165,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:21:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:21:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682165,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682165', 'tblTempUsageDetail_20' ) start [2025-03-14 23:21:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682165', 'tblTempUsageDetail_20' ) end [2025-03-14 23:21:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 23:21:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 23:21:20] Production.INFO: ==2650== Releasing lock... [2025-03-14 23:21:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 23:21:20] Production.INFO: 37 MB #Memory Used# [2025-03-14 23:22:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 20:22:05 [end_date_ymd] => 2025-03-14 23:22:05 [RateCDR] => 1 ) [2025-03-14 23:22: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-03-14 20:22:05' and `end` < '2025-03-14 23:22: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-03-14 23:22:18] Production.INFO: count ==1235 [2025-03-14 23:22:18] Production.ERROR: pbx CDR StartTime 2025-03-14 20:22:05 - End Time 2025-03-14 23:22:05 [2025-03-14 23:22:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682170', 'tblTempUsageDetail_20' ) start [2025-03-14 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682170', 'tblTempUsageDetail_20' ) end [2025-03-14 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682170', 'tblTempVendorCDR_20' ) start [2025-03-14 23:22:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682170', 'tblTempVendorCDR_20' ) end [2025-03-14 23:22:18] Production.INFO: ProcessCDR(1,14682170,1,1,2) [2025-03-14 23:22:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:22:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682170,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:22:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:22:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682170,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682170', 'tblTempUsageDetail_20' ) start [2025-03-14 23:22:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682170', 'tblTempUsageDetail_20' ) end [2025-03-14 23:22:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 23:22:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 23:22:22] Production.INFO: ==2721== Releasing lock... [2025-03-14 23:22:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 23:22:22] Production.INFO: 37.25 MB #Memory Used# [2025-03-14 23:23:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 20:23:05 [end_date_ymd] => 2025-03-14 23:23:05 [RateCDR] => 1 ) [2025-03-14 23:23: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-03-14 20:23:05' and `end` < '2025-03-14 23:23: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-03-14 23:23:17] Production.INFO: count ==1231 [2025-03-14 23:23:17] Production.ERROR: pbx CDR StartTime 2025-03-14 20:23:05 - End Time 2025-03-14 23:23:05 [2025-03-14 23:23:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682175', 'tblTempUsageDetail_20' ) start [2025-03-14 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682175', 'tblTempUsageDetail_20' ) end [2025-03-14 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682175', 'tblTempVendorCDR_20' ) start [2025-03-14 23:23:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682175', 'tblTempVendorCDR_20' ) end [2025-03-14 23:23:17] Production.INFO: ProcessCDR(1,14682175,1,1,2) [2025-03-14 23:23:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:23:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682175,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:23:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:23:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682175,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682175', 'tblTempUsageDetail_20' ) start [2025-03-14 23:23:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682175', 'tblTempUsageDetail_20' ) end [2025-03-14 23:23:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 23:23:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 23:23:21] Production.INFO: ==2797== Releasing lock... [2025-03-14 23:23:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 23:23:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-14 23:24:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 20:24:05 [end_date_ymd] => 2025-03-14 23:24:05 [RateCDR] => 1 ) [2025-03-14 23:24: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-03-14 20:24:05' and `end` < '2025-03-14 23:24: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-03-14 23:24:18] Production.INFO: count ==1219 [2025-03-14 23:24:18] Production.ERROR: pbx CDR StartTime 2025-03-14 20:24:05 - End Time 2025-03-14 23:24:05 [2025-03-14 23:24:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682180', 'tblTempUsageDetail_20' ) start [2025-03-14 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682180', 'tblTempUsageDetail_20' ) end [2025-03-14 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682180', 'tblTempVendorCDR_20' ) start [2025-03-14 23:24:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682180', 'tblTempVendorCDR_20' ) end [2025-03-14 23:24:18] Production.INFO: ProcessCDR(1,14682180,1,1,2) [2025-03-14 23:24:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:24:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682180,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:24:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:24:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682180,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682180', 'tblTempUsageDetail_20' ) start [2025-03-14 23:24:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682180', 'tblTempUsageDetail_20' ) end [2025-03-14 23:24:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 23:24:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 23:24:21] Production.INFO: ==2871== Releasing lock... [2025-03-14 23:24:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 23:24:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-14 23:25:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 20:25:05 [end_date_ymd] => 2025-03-14 23:25:05 [RateCDR] => 1 ) [2025-03-14 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-03-14 20:25:05' and `end` < '2025-03-14 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-03-14 23:25:17] Production.INFO: count ==1213 [2025-03-14 23:25:17] Production.ERROR: pbx CDR StartTime 2025-03-14 20:25:05 - End Time 2025-03-14 23:25:05 [2025-03-14 23:25:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682185', 'tblTempUsageDetail_20' ) start [2025-03-14 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682185', 'tblTempUsageDetail_20' ) end [2025-03-14 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682185', 'tblTempVendorCDR_20' ) start [2025-03-14 23:25:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682185', 'tblTempVendorCDR_20' ) end [2025-03-14 23:25:17] Production.INFO: ProcessCDR(1,14682185,1,1,2) [2025-03-14 23:25:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:25:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682185,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:25:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:25:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682185,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682185', 'tblTempUsageDetail_20' ) start [2025-03-14 23:25:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682185', 'tblTempUsageDetail_20' ) end [2025-03-14 23:25:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 23:25:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 23:25:21] Production.INFO: ==2949== Releasing lock... [2025-03-14 23:25:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 23:25:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-14 23:26:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 20:26:05 [end_date_ymd] => 2025-03-14 23:26:05 [RateCDR] => 1 ) [2025-03-14 23:26: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-03-14 20:26:05' and `end` < '2025-03-14 23:26: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-03-14 23:26:17] Production.INFO: count ==1211 [2025-03-14 23:26:18] Production.ERROR: pbx CDR StartTime 2025-03-14 20:26:05 - End Time 2025-03-14 23:26:05 [2025-03-14 23:26:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682190', 'tblTempUsageDetail_20' ) start [2025-03-14 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682190', 'tblTempUsageDetail_20' ) end [2025-03-14 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682190', 'tblTempVendorCDR_20' ) start [2025-03-14 23:26:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682190', 'tblTempVendorCDR_20' ) end [2025-03-14 23:26:18] Production.INFO: ProcessCDR(1,14682190,1,1,2) [2025-03-14 23:26:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:26:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682190,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:26:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:26:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682190,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682190', 'tblTempUsageDetail_20' ) start [2025-03-14 23:26:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682190', 'tblTempUsageDetail_20' ) end [2025-03-14 23:26:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 23:26:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 23:26:21] Production.INFO: ==3021== Releasing lock... [2025-03-14 23:26:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 23:26:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-14 23:27:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 20:27:05 [end_date_ymd] => 2025-03-14 23:27:05 [RateCDR] => 1 ) [2025-03-14 23:27: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-03-14 20:27:05' and `end` < '2025-03-14 23:27: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-03-14 23:27:17] Production.INFO: count ==1198 [2025-03-14 23:27:18] Production.ERROR: pbx CDR StartTime 2025-03-14 20:27:05 - End Time 2025-03-14 23:27:05 [2025-03-14 23:27:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682195', 'tblTempUsageDetail_20' ) start [2025-03-14 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682195', 'tblTempUsageDetail_20' ) end [2025-03-14 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682195', 'tblTempVendorCDR_20' ) start [2025-03-14 23:27:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682195', 'tblTempVendorCDR_20' ) end [2025-03-14 23:27:18] Production.INFO: ProcessCDR(1,14682195,1,1,2) [2025-03-14 23:27:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:27:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682195,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:27:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:27:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682195,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682195', 'tblTempUsageDetail_20' ) start [2025-03-14 23:27:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682195', 'tblTempUsageDetail_20' ) end [2025-03-14 23:27:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 23:27:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 23:27:21] Production.INFO: ==3095== Releasing lock... [2025-03-14 23:27:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 23:27:21] Production.INFO: 37 MB #Memory Used# [2025-03-14 23:28:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 20:28:05 [end_date_ymd] => 2025-03-14 23:28:05 [RateCDR] => 1 ) [2025-03-14 23:28: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-03-14 20:28:05' and `end` < '2025-03-14 23:28: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-03-14 23:28:17] Production.INFO: count ==1191 [2025-03-14 23:28:18] Production.ERROR: pbx CDR StartTime 2025-03-14 20:28:05 - End Time 2025-03-14 23:28:05 [2025-03-14 23:28:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682200', 'tblTempUsageDetail_20' ) start [2025-03-14 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682200', 'tblTempUsageDetail_20' ) end [2025-03-14 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682200', 'tblTempVendorCDR_20' ) start [2025-03-14 23:28:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682200', 'tblTempVendorCDR_20' ) end [2025-03-14 23:28:18] Production.INFO: ProcessCDR(1,14682200,1,1,2) [2025-03-14 23:28:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:28:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682200,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:28:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:28:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682200,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682200', 'tblTempUsageDetail_20' ) start [2025-03-14 23:28:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682200', 'tblTempUsageDetail_20' ) end [2025-03-14 23:28:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 23:28:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 23:28:21] Production.INFO: ==3169== Releasing lock... [2025-03-14 23:28:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 23:28:21] Production.INFO: 37 MB #Memory Used# [2025-03-14 23:29:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 20:29:05 [end_date_ymd] => 2025-03-14 23:29:05 [RateCDR] => 1 ) [2025-03-14 23:29: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-03-14 20:29:05' and `end` < '2025-03-14 23:29: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-03-14 23:29:17] Production.INFO: count ==1191 [2025-03-14 23:29:18] Production.ERROR: pbx CDR StartTime 2025-03-14 20:29:05 - End Time 2025-03-14 23:29:05 [2025-03-14 23:29:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682205', 'tblTempUsageDetail_20' ) start [2025-03-14 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682205', 'tblTempUsageDetail_20' ) end [2025-03-14 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682205', 'tblTempVendorCDR_20' ) start [2025-03-14 23:29:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682205', 'tblTempVendorCDR_20' ) end [2025-03-14 23:29:18] Production.INFO: ProcessCDR(1,14682205,1,1,2) [2025-03-14 23:29:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:29:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682205,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:29:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:29:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682205,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682205', 'tblTempUsageDetail_20' ) start [2025-03-14 23:29:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682205', 'tblTempUsageDetail_20' ) end [2025-03-14 23:29:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 23:29:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 23:29:21] Production.INFO: ==3240== Releasing lock... [2025-03-14 23:29:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 23:29:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-14 23:30:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 20:30:06 [end_date_ymd] => 2025-03-14 23:30:06 [RateCDR] => 1 ) [2025-03-14 23:30: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-03-14 20:30:06' and `end` < '2025-03-14 23:30: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-03-14 23:30:19] Production.INFO: count ==1193 [2025-03-14 23:30:19] Production.ERROR: pbx CDR StartTime 2025-03-14 20:30:06 - End Time 2025-03-14 23:30:06 [2025-03-14 23:30:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682211', 'tblTempUsageDetail_20' ) start [2025-03-14 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682211', 'tblTempUsageDetail_20' ) end [2025-03-14 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682211', 'tblTempVendorCDR_20' ) start [2025-03-14 23:30:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682211', 'tblTempVendorCDR_20' ) end [2025-03-14 23:30:19] Production.INFO: ProcessCDR(1,14682211,1,1,2) [2025-03-14 23:30:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:30:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682211,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:30:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:30:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682211,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:30:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682211', 'tblTempUsageDetail_20' ) start [2025-03-14 23:30:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682211', 'tblTempUsageDetail_20' ) end [2025-03-14 23:30:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 23:30:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 23:30:23] Production.INFO: ==3315== Releasing lock... [2025-03-14 23:30:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 23:30:23] Production.INFO: 37.5 MB #Memory Used# [2025-03-14 23:31:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 20:31:05 [end_date_ymd] => 2025-03-14 23:31:05 [RateCDR] => 1 ) [2025-03-14 23:31: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-03-14 20:31:05' and `end` < '2025-03-14 23:31: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-03-14 23:31:18] Production.INFO: count ==1174 [2025-03-14 23:31:18] Production.ERROR: pbx CDR StartTime 2025-03-14 20:31:05 - End Time 2025-03-14 23:31:05 [2025-03-14 23:31:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682216', 'tblTempUsageDetail_20' ) start [2025-03-14 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682216', 'tblTempUsageDetail_20' ) end [2025-03-14 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682216', 'tblTempVendorCDR_20' ) start [2025-03-14 23:31:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682216', 'tblTempVendorCDR_20' ) end [2025-03-14 23:31:18] Production.INFO: ProcessCDR(1,14682216,1,1,2) [2025-03-14 23:31:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:31:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682216,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:31:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:31:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682216,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682216', 'tblTempUsageDetail_20' ) start [2025-03-14 23:31:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682216', 'tblTempUsageDetail_20' ) end [2025-03-14 23:31:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 23:31:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 23:31:21] Production.INFO: ==3390== Releasing lock... [2025-03-14 23:31:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 23:31:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-14 23:32:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 20:32:05 [end_date_ymd] => 2025-03-14 23:32:05 [RateCDR] => 1 ) [2025-03-14 23:32: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-03-14 20:32:05' and `end` < '2025-03-14 23:32: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-03-14 23:32:17] Production.INFO: count ==1171 [2025-03-14 23:32:17] Production.ERROR: pbx CDR StartTime 2025-03-14 20:32:05 - End Time 2025-03-14 23:32:05 [2025-03-14 23:32:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 23:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682221', 'tblTempUsageDetail_20' ) start [2025-03-14 23:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682221', 'tblTempUsageDetail_20' ) end [2025-03-14 23:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682221', 'tblTempVendorCDR_20' ) start [2025-03-14 23:32:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682221', 'tblTempVendorCDR_20' ) end [2025-03-14 23:32:17] Production.INFO: ProcessCDR(1,14682221,1,1,2) [2025-03-14 23:32:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:32:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682221,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:32:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:32:20] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682221,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682221', 'tblTempUsageDetail_20' ) start [2025-03-14 23:32:20] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682221', 'tblTempUsageDetail_20' ) end [2025-03-14 23:32:20] Production.ERROR: pbx prc_insertCDR start [2025-03-14 23:32:20] Production.ERROR: pbx prc_insertCDR end [2025-03-14 23:32:20] Production.INFO: ==3465== Releasing lock... [2025-03-14 23:32:20] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 23:32:20] Production.INFO: 37 MB #Memory Used# [2025-03-14 23:33:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 20:33:05 [end_date_ymd] => 2025-03-14 23:33:05 [RateCDR] => 1 ) [2025-03-14 23:33: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-03-14 20:33:05' and `end` < '2025-03-14 23:33: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-03-14 23:33:18] Production.INFO: count ==1170 [2025-03-14 23:33:18] Production.ERROR: pbx CDR StartTime 2025-03-14 20:33:05 - End Time 2025-03-14 23:33:05 [2025-03-14 23:33:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682226', 'tblTempUsageDetail_20' ) start [2025-03-14 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682226', 'tblTempUsageDetail_20' ) end [2025-03-14 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682226', 'tblTempVendorCDR_20' ) start [2025-03-14 23:33:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682226', 'tblTempVendorCDR_20' ) end [2025-03-14 23:33:18] Production.INFO: ProcessCDR(1,14682226,1,1,2) [2025-03-14 23:33:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:33:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682226,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:33:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:33:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682226,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682226', 'tblTempUsageDetail_20' ) start [2025-03-14 23:33:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682226', 'tblTempUsageDetail_20' ) end [2025-03-14 23:33:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 23:33:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 23:33:21] Production.INFO: ==3579== Releasing lock... [2025-03-14 23:33:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 23:33:21] Production.INFO: 37 MB #Memory Used# [2025-03-14 23:34:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 20:34:05 [end_date_ymd] => 2025-03-14 23:34:05 [RateCDR] => 1 ) [2025-03-14 23:34: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-03-14 20:34:05' and `end` < '2025-03-14 23:34: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-03-14 23:34:17] Production.INFO: count ==1173 [2025-03-14 23:34:18] Production.ERROR: pbx CDR StartTime 2025-03-14 20:34:05 - End Time 2025-03-14 23:34:05 [2025-03-14 23:34:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682231', 'tblTempUsageDetail_20' ) start [2025-03-14 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682231', 'tblTempUsageDetail_20' ) end [2025-03-14 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682231', 'tblTempVendorCDR_20' ) start [2025-03-14 23:34:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682231', 'tblTempVendorCDR_20' ) end [2025-03-14 23:34:18] Production.INFO: ProcessCDR(1,14682231,1,1,2) [2025-03-14 23:34:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:34:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682231,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:34:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:34:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682231,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682231', 'tblTempUsageDetail_20' ) start [2025-03-14 23:34:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682231', 'tblTempUsageDetail_20' ) end [2025-03-14 23:34:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 23:34:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 23:34:23] Production.INFO: ==3653== Releasing lock... [2025-03-14 23:34:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 23:34:23] Production.INFO: 36.75 MB #Memory Used# [2025-03-14 23:35:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 20:35:05 [end_date_ymd] => 2025-03-14 23:35:05 [RateCDR] => 1 ) [2025-03-14 23:35: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-03-14 20:35:05' and `end` < '2025-03-14 23:35: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-03-14 23:35:17] Production.INFO: count ==1171 [2025-03-14 23:35:18] Production.ERROR: pbx CDR StartTime 2025-03-14 20:35:05 - End Time 2025-03-14 23:35:05 [2025-03-14 23:35:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682236', 'tblTempUsageDetail_20' ) start [2025-03-14 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682236', 'tblTempUsageDetail_20' ) end [2025-03-14 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682236', 'tblTempVendorCDR_20' ) start [2025-03-14 23:35:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682236', 'tblTempVendorCDR_20' ) end [2025-03-14 23:35:18] Production.INFO: ProcessCDR(1,14682236,1,1,2) [2025-03-14 23:35:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:35:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682236,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:35:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:35:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682236,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682236', 'tblTempUsageDetail_20' ) start [2025-03-14 23:35:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682236', 'tblTempUsageDetail_20' ) end [2025-03-14 23:35:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 23:35:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 23:35:21] Production.INFO: ==3726== Releasing lock... [2025-03-14 23:35:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 23:35:21] Production.INFO: 37.25 MB #Memory Used# [2025-03-14 23:36:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 20:36:05 [end_date_ymd] => 2025-03-14 23:36:05 [RateCDR] => 1 ) [2025-03-14 23:36: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-03-14 20:36:05' and `end` < '2025-03-14 23:36: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-03-14 23:36:17] Production.INFO: count ==1168 [2025-03-14 23:36:17] Production.ERROR: pbx CDR StartTime 2025-03-14 20:36:05 - End Time 2025-03-14 23:36:05 [2025-03-14 23:36:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 23:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682241', 'tblTempUsageDetail_20' ) start [2025-03-14 23:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682241', 'tblTempUsageDetail_20' ) end [2025-03-14 23:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682241', 'tblTempVendorCDR_20' ) start [2025-03-14 23:36:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682241', 'tblTempVendorCDR_20' ) end [2025-03-14 23:36:17] Production.INFO: ProcessCDR(1,14682241,1,1,2) [2025-03-14 23:36:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:36:18] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682241,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:36:18] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:36:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682241,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682241', 'tblTempUsageDetail_20' ) start [2025-03-14 23:36:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682241', 'tblTempUsageDetail_20' ) end [2025-03-14 23:36:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 23:36:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 23:36:21] Production.INFO: ==3800== Releasing lock... [2025-03-14 23:36:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 23:36:21] Production.INFO: 37 MB #Memory Used# [2025-03-14 23:37:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 20:37:06 [end_date_ymd] => 2025-03-14 23:37:06 [RateCDR] => 1 ) [2025-03-14 23:37: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-03-14 20:37:06' and `end` < '2025-03-14 23:37: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-03-14 23:37:18] Production.INFO: count ==1167 [2025-03-14 23:37:18] Production.ERROR: pbx CDR StartTime 2025-03-14 20:37:06 - End Time 2025-03-14 23:37:06 [2025-03-14 23:37:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 23:37:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682246', 'tblTempUsageDetail_20' ) start [2025-03-14 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682246', 'tblTempUsageDetail_20' ) end [2025-03-14 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682246', 'tblTempVendorCDR_20' ) start [2025-03-14 23:37:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682246', 'tblTempVendorCDR_20' ) end [2025-03-14 23:37:19] Production.INFO: ProcessCDR(1,14682246,1,1,2) [2025-03-14 23:37:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:37:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682246,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:37:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:37:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682246,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682246', 'tblTempUsageDetail_20' ) start [2025-03-14 23:37:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682246', 'tblTempUsageDetail_20' ) end [2025-03-14 23:37:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 23:37:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 23:37:22] Production.INFO: ==3872== Releasing lock... [2025-03-14 23:37:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 23:37:22] Production.INFO: 36.75 MB #Memory Used# [2025-03-14 23:38:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 20:38:05 [end_date_ymd] => 2025-03-14 23:38:05 [RateCDR] => 1 ) [2025-03-14 23:38: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-03-14 20:38:05' and `end` < '2025-03-14 23:38: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-03-14 23:38:17] Production.INFO: count ==1166 [2025-03-14 23:38:17] Production.ERROR: pbx CDR StartTime 2025-03-14 20:38:05 - End Time 2025-03-14 23:38:05 [2025-03-14 23:38:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 23:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682251', 'tblTempUsageDetail_20' ) start [2025-03-14 23:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682251', 'tblTempUsageDetail_20' ) end [2025-03-14 23:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682251', 'tblTempVendorCDR_20' ) start [2025-03-14 23:38:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682251', 'tblTempVendorCDR_20' ) end [2025-03-14 23:38:17] Production.INFO: ProcessCDR(1,14682251,1,1,2) [2025-03-14 23:38:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:38:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682251,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:38:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:38:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682251,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682251', 'tblTempUsageDetail_20' ) start [2025-03-14 23:38:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682251', 'tblTempUsageDetail_20' ) end [2025-03-14 23:38:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 23:38:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 23:38:22] Production.INFO: ==3945== Releasing lock... [2025-03-14 23:38:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 23:38:22] Production.INFO: 36.75 MB #Memory Used# [2025-03-14 23:39:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 20:39:05 [end_date_ymd] => 2025-03-14 23:39:05 [RateCDR] => 1 ) [2025-03-14 23:39: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-03-14 20:39:05' and `end` < '2025-03-14 23:39: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-03-14 23:39:18] Production.INFO: count ==1161 [2025-03-14 23:39:18] Production.ERROR: pbx CDR StartTime 2025-03-14 20:39:05 - End Time 2025-03-14 23:39:05 [2025-03-14 23:39:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682256', 'tblTempUsageDetail_20' ) start [2025-03-14 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682256', 'tblTempUsageDetail_20' ) end [2025-03-14 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682256', 'tblTempVendorCDR_20' ) start [2025-03-14 23:39:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682256', 'tblTempVendorCDR_20' ) end [2025-03-14 23:39:18] Production.INFO: ProcessCDR(1,14682256,1,1,2) [2025-03-14 23:39:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:39:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682256,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:39:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:39:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682256,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682256', 'tblTempUsageDetail_20' ) start [2025-03-14 23:39:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682256', 'tblTempUsageDetail_20' ) end [2025-03-14 23:39:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 23:39:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 23:39:21] Production.INFO: ==4024== Releasing lock... [2025-03-14 23:39:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 23:39:21] Production.INFO: 37.5 MB #Memory Used# [2025-03-14 23:40:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 20:40:06 [end_date_ymd] => 2025-03-14 23:40:06 [RateCDR] => 1 ) [2025-03-14 23:40: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-03-14 20:40:06' and `end` < '2025-03-14 23:40: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-03-14 23:40:18] Production.INFO: count ==1160 [2025-03-14 23:40:18] Production.ERROR: pbx CDR StartTime 2025-03-14 20:40:06 - End Time 2025-03-14 23:40:06 [2025-03-14 23:40:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682262', 'tblTempUsageDetail_20' ) start [2025-03-14 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682262', 'tblTempUsageDetail_20' ) end [2025-03-14 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682262', 'tblTempVendorCDR_20' ) start [2025-03-14 23:40:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682262', 'tblTempVendorCDR_20' ) end [2025-03-14 23:40:18] Production.INFO: ProcessCDR(1,14682262,1,1,2) [2025-03-14 23:40:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:40:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682262,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:40:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:40:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682262,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682262', 'tblTempUsageDetail_20' ) start [2025-03-14 23:40:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682262', 'tblTempUsageDetail_20' ) end [2025-03-14 23:40:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 23:40:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 23:40:23] Production.INFO: ==4104== Releasing lock... [2025-03-14 23:40:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 23:40:23] Production.INFO: 37.25 MB #Memory Used# [2025-03-14 23:41:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 20:41:05 [end_date_ymd] => 2025-03-14 23:41:05 [RateCDR] => 1 ) [2025-03-14 23:41: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-03-14 20:41:05' and `end` < '2025-03-14 23:41: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-03-14 23:41:18] Production.INFO: count ==1129 [2025-03-14 23:41:18] Production.ERROR: pbx CDR StartTime 2025-03-14 20:41:05 - End Time 2025-03-14 23:41:05 [2025-03-14 23:41:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682267', 'tblTempUsageDetail_20' ) start [2025-03-14 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682267', 'tblTempUsageDetail_20' ) end [2025-03-14 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682267', 'tblTempVendorCDR_20' ) start [2025-03-14 23:41:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682267', 'tblTempVendorCDR_20' ) end [2025-03-14 23:41:18] Production.INFO: ProcessCDR(1,14682267,1,1,2) [2025-03-14 23:41:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:41:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682267,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:41:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:41:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682267,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682267', 'tblTempUsageDetail_20' ) start [2025-03-14 23:41:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682267', 'tblTempUsageDetail_20' ) end [2025-03-14 23:41:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 23:41:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 23:41:21] Production.INFO: ==4182== Releasing lock... [2025-03-14 23:41:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 23:41:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-14 23:42:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 20:42:05 [end_date_ymd] => 2025-03-14 23:42:05 [RateCDR] => 1 ) [2025-03-14 23:42: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-03-14 20:42:05' and `end` < '2025-03-14 23:42: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-03-14 23:42:18] Production.INFO: count ==1123 [2025-03-14 23:42:18] Production.ERROR: pbx CDR StartTime 2025-03-14 20:42:05 - End Time 2025-03-14 23:42:05 [2025-03-14 23:42:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682272', 'tblTempUsageDetail_20' ) start [2025-03-14 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682272', 'tblTempUsageDetail_20' ) end [2025-03-14 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682272', 'tblTempVendorCDR_20' ) start [2025-03-14 23:42:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682272', 'tblTempVendorCDR_20' ) end [2025-03-14 23:42:18] Production.INFO: ProcessCDR(1,14682272,1,1,2) [2025-03-14 23:42:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:42:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682272,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:42:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:42:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682272,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682272', 'tblTempUsageDetail_20' ) start [2025-03-14 23:42:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682272', 'tblTempUsageDetail_20' ) end [2025-03-14 23:42:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 23:42:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 23:42:21] Production.INFO: ==4264== Releasing lock... [2025-03-14 23:42:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 23:42:21] Production.INFO: 37 MB #Memory Used# [2025-03-14 23:43:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 20:43:05 [end_date_ymd] => 2025-03-14 23:43:05 [RateCDR] => 1 ) [2025-03-14 23:43: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-03-14 20:43:05' and `end` < '2025-03-14 23:43: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-03-14 23:43:18] Production.INFO: count ==1123 [2025-03-14 23:43:18] Production.ERROR: pbx CDR StartTime 2025-03-14 20:43:05 - End Time 2025-03-14 23:43:05 [2025-03-14 23:43:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682277', 'tblTempUsageDetail_20' ) start [2025-03-14 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682277', 'tblTempUsageDetail_20' ) end [2025-03-14 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682277', 'tblTempVendorCDR_20' ) start [2025-03-14 23:43:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682277', 'tblTempVendorCDR_20' ) end [2025-03-14 23:43:18] Production.INFO: ProcessCDR(1,14682277,1,1,2) [2025-03-14 23:43:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:43:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682277,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:43:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:43:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682277,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682277', 'tblTempUsageDetail_20' ) start [2025-03-14 23:43:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682277', 'tblTempUsageDetail_20' ) end [2025-03-14 23:43:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 23:43:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 23:43:21] Production.INFO: ==4338== Releasing lock... [2025-03-14 23:43:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 23:43:21] Production.INFO: 37 MB #Memory Used# [2025-03-14 23:44:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 20:44:05 [end_date_ymd] => 2025-03-14 23:44:05 [RateCDR] => 1 ) [2025-03-14 23:44: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-03-14 20:44:05' and `end` < '2025-03-14 23:44: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-03-14 23:44:17] Production.INFO: count ==1122 [2025-03-14 23:44:18] Production.ERROR: pbx CDR StartTime 2025-03-14 20:44:05 - End Time 2025-03-14 23:44:05 [2025-03-14 23:44:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682282', 'tblTempUsageDetail_20' ) start [2025-03-14 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682282', 'tblTempUsageDetail_20' ) end [2025-03-14 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682282', 'tblTempVendorCDR_20' ) start [2025-03-14 23:44:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682282', 'tblTempVendorCDR_20' ) end [2025-03-14 23:44:18] Production.INFO: ProcessCDR(1,14682282,1,1,2) [2025-03-14 23:44:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:44:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682282,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:44:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:44:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682282,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682282', 'tblTempUsageDetail_20' ) start [2025-03-14 23:44:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682282', 'tblTempUsageDetail_20' ) end [2025-03-14 23:44:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 23:44:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 23:44:21] Production.INFO: ==4434== Releasing lock... [2025-03-14 23:44:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 23:44:21] Production.INFO: 37 MB #Memory Used# [2025-03-14 23:45:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 20:45:05 [end_date_ymd] => 2025-03-14 23:45:05 [RateCDR] => 1 ) [2025-03-14 23:45: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-03-14 20:45:05' and `end` < '2025-03-14 23:45: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-03-14 23:45:18] Production.INFO: count ==1118 [2025-03-14 23:45:18] Production.ERROR: pbx CDR StartTime 2025-03-14 20:45:05 - End Time 2025-03-14 23:45:05 [2025-03-14 23:45:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682287', 'tblTempUsageDetail_20' ) start [2025-03-14 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682287', 'tblTempUsageDetail_20' ) end [2025-03-14 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682287', 'tblTempVendorCDR_20' ) start [2025-03-14 23:45:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682287', 'tblTempVendorCDR_20' ) end [2025-03-14 23:45:18] Production.INFO: ProcessCDR(1,14682287,1,1,2) [2025-03-14 23:45:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:45:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682287,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:45:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:45:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682287,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682287', 'tblTempUsageDetail_20' ) start [2025-03-14 23:45:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682287', 'tblTempUsageDetail_20' ) end [2025-03-14 23:45:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 23:45:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 23:45:21] Production.INFO: ==4512== Releasing lock... [2025-03-14 23:45:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 23:45:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-14 23:46:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 20:46:06 [end_date_ymd] => 2025-03-14 23:46:06 [RateCDR] => 1 ) [2025-03-14 23:46: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-03-14 20:46:06' and `end` < '2025-03-14 23:46: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-03-14 23:46:18] Production.INFO: count ==1118 [2025-03-14 23:46:18] Production.ERROR: pbx CDR StartTime 2025-03-14 20:46:06 - End Time 2025-03-14 23:46:06 [2025-03-14 23:46:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682292', 'tblTempUsageDetail_20' ) start [2025-03-14 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682292', 'tblTempUsageDetail_20' ) end [2025-03-14 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682292', 'tblTempVendorCDR_20' ) start [2025-03-14 23:46:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682292', 'tblTempVendorCDR_20' ) end [2025-03-14 23:46:18] Production.INFO: ProcessCDR(1,14682292,1,1,2) [2025-03-14 23:46:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:46:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682292,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:46:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:46:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682292,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682292', 'tblTempUsageDetail_20' ) start [2025-03-14 23:46:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682292', 'tblTempUsageDetail_20' ) end [2025-03-14 23:46:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 23:46:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 23:46:21] Production.INFO: ==4591== Releasing lock... [2025-03-14 23:46:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 23:46:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-14 23:47:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 20:47:05 [end_date_ymd] => 2025-03-14 23:47:05 [RateCDR] => 1 ) [2025-03-14 23:47: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-03-14 20:47:05' and `end` < '2025-03-14 23:47: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-03-14 23:47:18] Production.INFO: count ==1103 [2025-03-14 23:47:18] Production.ERROR: pbx CDR StartTime 2025-03-14 20:47:05 - End Time 2025-03-14 23:47:05 [2025-03-14 23:47:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682297', 'tblTempUsageDetail_20' ) start [2025-03-14 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682297', 'tblTempUsageDetail_20' ) end [2025-03-14 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682297', 'tblTempVendorCDR_20' ) start [2025-03-14 23:47:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682297', 'tblTempVendorCDR_20' ) end [2025-03-14 23:47:18] Production.INFO: ProcessCDR(1,14682297,1,1,2) [2025-03-14 23:47:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:47:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682297,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:47:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:47:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682297,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682297', 'tblTempUsageDetail_20' ) start [2025-03-14 23:47:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682297', 'tblTempUsageDetail_20' ) end [2025-03-14 23:47:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 23:47:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 23:47:21] Production.INFO: ==4665== Releasing lock... [2025-03-14 23:47:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 23:47:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-14 23:48:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 20:48:06 [end_date_ymd] => 2025-03-14 23:48:06 [RateCDR] => 1 ) [2025-03-14 23:48: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-03-14 20:48:06' and `end` < '2025-03-14 23:48: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-03-14 23:48:18] Production.INFO: count ==1103 [2025-03-14 23:48:18] Production.ERROR: pbx CDR StartTime 2025-03-14 20:48:06 - End Time 2025-03-14 23:48:06 [2025-03-14 23:48:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682302', 'tblTempUsageDetail_20' ) start [2025-03-14 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682302', 'tblTempUsageDetail_20' ) end [2025-03-14 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682302', 'tblTempVendorCDR_20' ) start [2025-03-14 23:48:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682302', 'tblTempVendorCDR_20' ) end [2025-03-14 23:48:18] Production.INFO: ProcessCDR(1,14682302,1,1,2) [2025-03-14 23:48:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:48:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682302,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:48:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:48:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682302,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682302', 'tblTempUsageDetail_20' ) start [2025-03-14 23:48:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682302', 'tblTempUsageDetail_20' ) end [2025-03-14 23:48:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 23:48:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 23:48:22] Production.INFO: ==4744== Releasing lock... [2025-03-14 23:48:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 23:48:22] Production.INFO: 36.75 MB #Memory Used# [2025-03-14 23:49:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 20:49:05 [end_date_ymd] => 2025-03-14 23:49:05 [RateCDR] => 1 ) [2025-03-14 23:49: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-03-14 20:49:05' and `end` < '2025-03-14 23:49: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-03-14 23:49:18] Production.INFO: count ==1101 [2025-03-14 23:49:18] Production.ERROR: pbx CDR StartTime 2025-03-14 20:49:05 - End Time 2025-03-14 23:49:05 [2025-03-14 23:49:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682307', 'tblTempUsageDetail_20' ) start [2025-03-14 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682307', 'tblTempUsageDetail_20' ) end [2025-03-14 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682307', 'tblTempVendorCDR_20' ) start [2025-03-14 23:49:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682307', 'tblTempVendorCDR_20' ) end [2025-03-14 23:49:18] Production.INFO: ProcessCDR(1,14682307,1,1,2) [2025-03-14 23:49:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:49:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682307,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:49:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:49:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682307,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:49:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682307', 'tblTempUsageDetail_20' ) start [2025-03-14 23:49:24] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682307', 'tblTempUsageDetail_20' ) end [2025-03-14 23:49:24] Production.ERROR: pbx prc_insertCDR start [2025-03-14 23:49:24] Production.ERROR: pbx prc_insertCDR end [2025-03-14 23:49:24] Production.INFO: ==4857== Releasing lock... [2025-03-14 23:49:24] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 23:49:24] Production.INFO: 36.75 MB #Memory Used# [2025-03-14 23:50:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 20:50:06 [end_date_ymd] => 2025-03-14 23:50:06 [RateCDR] => 1 ) [2025-03-14 23:50: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-03-14 20:50:06' and `end` < '2025-03-14 23:50: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-03-14 23:50:18] Production.INFO: count ==1100 [2025-03-14 23:50:19] Production.ERROR: pbx CDR StartTime 2025-03-14 20:50:06 - End Time 2025-03-14 23:50:06 [2025-03-14 23:50:19] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682313', 'tblTempUsageDetail_20' ) start [2025-03-14 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682313', 'tblTempUsageDetail_20' ) end [2025-03-14 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682313', 'tblTempVendorCDR_20' ) start [2025-03-14 23:50:19] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682313', 'tblTempVendorCDR_20' ) end [2025-03-14 23:50:19] Production.INFO: ProcessCDR(1,14682313,1,1,2) [2025-03-14 23:50:19] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:50:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682313,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:50:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:50:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682313,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682313', 'tblTempUsageDetail_20' ) start [2025-03-14 23:50:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682313', 'tblTempUsageDetail_20' ) end [2025-03-14 23:50:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 23:50:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 23:50:22] Production.INFO: ==4931== Releasing lock... [2025-03-14 23:50:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 23:50:22] Production.INFO: 36.75 MB #Memory Used# [2025-03-14 23:51:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 20:51:05 [end_date_ymd] => 2025-03-14 23:51:05 [RateCDR] => 1 ) [2025-03-14 23:51: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-03-14 20:51:05' and `end` < '2025-03-14 23:51: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-03-14 23:51:17] Production.INFO: count ==1080 [2025-03-14 23:51:18] Production.ERROR: pbx CDR StartTime 2025-03-14 20:51:05 - End Time 2025-03-14 23:51:05 [2025-03-14 23:51:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682318', 'tblTempUsageDetail_20' ) start [2025-03-14 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682318', 'tblTempUsageDetail_20' ) end [2025-03-14 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682318', 'tblTempVendorCDR_20' ) start [2025-03-14 23:51:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682318', 'tblTempVendorCDR_20' ) end [2025-03-14 23:51:18] Production.INFO: ProcessCDR(1,14682318,1,1,2) [2025-03-14 23:51:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:51:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682318,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:51:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:51:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682318,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682318', 'tblTempUsageDetail_20' ) start [2025-03-14 23:51:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682318', 'tblTempUsageDetail_20' ) end [2025-03-14 23:51:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 23:51:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 23:51:21] Production.INFO: ==5008== Releasing lock... [2025-03-14 23:51:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 23:51:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-14 23:52:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 20:52:05 [end_date_ymd] => 2025-03-14 23:52:05 [RateCDR] => 1 ) [2025-03-14 23:52: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-03-14 20:52:05' and `end` < '2025-03-14 23:52: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-03-14 23:52:18] Production.INFO: count ==1070 [2025-03-14 23:52:18] Production.ERROR: pbx CDR StartTime 2025-03-14 20:52:05 - End Time 2025-03-14 23:52:05 [2025-03-14 23:52:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682323', 'tblTempUsageDetail_20' ) start [2025-03-14 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682323', 'tblTempUsageDetail_20' ) end [2025-03-14 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682323', 'tblTempVendorCDR_20' ) start [2025-03-14 23:52:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682323', 'tblTempVendorCDR_20' ) end [2025-03-14 23:52:18] Production.INFO: ProcessCDR(1,14682323,1,1,2) [2025-03-14 23:52:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:52:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682323,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:52:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:52:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682323,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682323', 'tblTempUsageDetail_20' ) start [2025-03-14 23:52:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682323', 'tblTempUsageDetail_20' ) end [2025-03-14 23:52:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 23:52:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 23:52:21] Production.INFO: ==5081== Releasing lock... [2025-03-14 23:52:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 23:52:21] Production.INFO: 36.75 MB #Memory Used# [2025-03-14 23:53:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 20:53:05 [end_date_ymd] => 2025-03-14 23:53:05 [RateCDR] => 1 ) [2025-03-14 23:53: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-03-14 20:53:05' and `end` < '2025-03-14 23:53: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-03-14 23:53:17] Production.INFO: count ==1065 [2025-03-14 23:53:18] Production.ERROR: pbx CDR StartTime 2025-03-14 20:53:05 - End Time 2025-03-14 23:53:05 [2025-03-14 23:53:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682328', 'tblTempUsageDetail_20' ) start [2025-03-14 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682328', 'tblTempUsageDetail_20' ) end [2025-03-14 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682328', 'tblTempVendorCDR_20' ) start [2025-03-14 23:53:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682328', 'tblTempVendorCDR_20' ) end [2025-03-14 23:53:18] Production.INFO: ProcessCDR(1,14682328,1,1,2) [2025-03-14 23:53:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:53:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682328,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:53:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:53:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682328,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682328', 'tblTempUsageDetail_20' ) start [2025-03-14 23:53:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682328', 'tblTempUsageDetail_20' ) end [2025-03-14 23:53:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 23:53:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 23:53:21] Production.INFO: ==5160== Releasing lock... [2025-03-14 23:53:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 23:53:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-14 23:54:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 20:54:05 [end_date_ymd] => 2025-03-14 23:54:05 [RateCDR] => 1 ) [2025-03-14 23:54: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-03-14 20:54:05' and `end` < '2025-03-14 23:54: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-03-14 23:54:18] Production.INFO: count ==1068 [2025-03-14 23:54:18] Production.ERROR: pbx CDR StartTime 2025-03-14 20:54:05 - End Time 2025-03-14 23:54:05 [2025-03-14 23:54:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682333', 'tblTempUsageDetail_20' ) start [2025-03-14 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682333', 'tblTempUsageDetail_20' ) end [2025-03-14 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682333', 'tblTempVendorCDR_20' ) start [2025-03-14 23:54:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682333', 'tblTempVendorCDR_20' ) end [2025-03-14 23:54:18] Production.INFO: ProcessCDR(1,14682333,1,1,2) [2025-03-14 23:54:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:54:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682333,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:54:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:54:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682333,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682333', 'tblTempUsageDetail_20' ) start [2025-03-14 23:54:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682333', 'tblTempUsageDetail_20' ) end [2025-03-14 23:54:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 23:54:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 23:54:21] Production.INFO: ==5233== Releasing lock... [2025-03-14 23:54:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 23:54:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-14 23:55:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 20:55:05 [end_date_ymd] => 2025-03-14 23:55:05 [RateCDR] => 1 ) [2025-03-14 23:55: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-03-14 20:55:05' and `end` < '2025-03-14 23:55: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-03-14 23:55:17] Production.INFO: count ==1069 [2025-03-14 23:55:17] Production.ERROR: pbx CDR StartTime 2025-03-14 20:55:05 - End Time 2025-03-14 23:55:05 [2025-03-14 23:55:17] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682338', 'tblTempUsageDetail_20' ) start [2025-03-14 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682338', 'tblTempUsageDetail_20' ) end [2025-03-14 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682338', 'tblTempVendorCDR_20' ) start [2025-03-14 23:55:17] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682338', 'tblTempVendorCDR_20' ) end [2025-03-14 23:55:17] Production.INFO: ProcessCDR(1,14682338,1,1,2) [2025-03-14 23:55:17] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:55:20] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682338,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:55:20] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:55:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682338,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682338', 'tblTempUsageDetail_20' ) start [2025-03-14 23:55:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682338', 'tblTempUsageDetail_20' ) end [2025-03-14 23:55:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 23:55:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 23:55:22] Production.INFO: ==5308== Releasing lock... [2025-03-14 23:55:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 23:55:22] Production.INFO: 37 MB #Memory Used# [2025-03-14 23:56:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 20:56:06 [end_date_ymd] => 2025-03-14 23:56:06 [RateCDR] => 1 ) [2025-03-14 23:56: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-03-14 20:56:06' and `end` < '2025-03-14 23:56: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-03-14 23:56:18] Production.INFO: count ==1067 [2025-03-14 23:56:18] Production.ERROR: pbx CDR StartTime 2025-03-14 20:56:06 - End Time 2025-03-14 23:56:06 [2025-03-14 23:56:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682343', 'tblTempUsageDetail_20' ) start [2025-03-14 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682343', 'tblTempUsageDetail_20' ) end [2025-03-14 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682343', 'tblTempVendorCDR_20' ) start [2025-03-14 23:56:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682343', 'tblTempVendorCDR_20' ) end [2025-03-14 23:56:18] Production.INFO: ProcessCDR(1,14682343,1,1,2) [2025-03-14 23:56:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:56:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682343,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:56:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:56:22] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682343,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682343', 'tblTempUsageDetail_20' ) start [2025-03-14 23:56:22] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682343', 'tblTempUsageDetail_20' ) end [2025-03-14 23:56:22] Production.ERROR: pbx prc_insertCDR start [2025-03-14 23:56:22] Production.ERROR: pbx prc_insertCDR end [2025-03-14 23:56:22] Production.INFO: ==5381== Releasing lock... [2025-03-14 23:56:22] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 23:56:22] Production.INFO: 36.25 MB #Memory Used# [2025-03-14 23:57:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 20:57:05 [end_date_ymd] => 2025-03-14 23:57:05 [RateCDR] => 1 ) [2025-03-14 23:57: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-03-14 20:57:05' and `end` < '2025-03-14 23:57: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-03-14 23:57:17] Production.INFO: count ==1069 [2025-03-14 23:57:18] Production.ERROR: pbx CDR StartTime 2025-03-14 20:57:05 - End Time 2025-03-14 23:57:05 [2025-03-14 23:57:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682348', 'tblTempUsageDetail_20' ) start [2025-03-14 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682348', 'tblTempUsageDetail_20' ) end [2025-03-14 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682348', 'tblTempVendorCDR_20' ) start [2025-03-14 23:57:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682348', 'tblTempVendorCDR_20' ) end [2025-03-14 23:57:18] Production.INFO: ProcessCDR(1,14682348,1,1,2) [2025-03-14 23:57:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:57:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682348,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:57:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:57:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682348,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682348', 'tblTempUsageDetail_20' ) start [2025-03-14 23:57:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682348', 'tblTempUsageDetail_20' ) end [2025-03-14 23:57:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 23:57:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 23:57:21] Production.INFO: ==5453== Releasing lock... [2025-03-14 23:57:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 23:57:21] Production.INFO: 36.5 MB #Memory Used# [2025-03-14 23:58:06] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 20:58:06 [end_date_ymd] => 2025-03-14 23:58:06 [RateCDR] => 1 ) [2025-03-14 23:58: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-03-14 20:58:06' and `end` < '2025-03-14 23:58: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-03-14 23:58:18] Production.INFO: count ==1061 [2025-03-14 23:58:18] Production.ERROR: pbx CDR StartTime 2025-03-14 20:58:06 - End Time 2025-03-14 23:58:06 [2025-03-14 23:58:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682353', 'tblTempUsageDetail_20' ) start [2025-03-14 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682353', 'tblTempUsageDetail_20' ) end [2025-03-14 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682353', 'tblTempVendorCDR_20' ) start [2025-03-14 23:58:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682353', 'tblTempVendorCDR_20' ) end [2025-03-14 23:58:18] Production.INFO: ProcessCDR(1,14682353,1,1,2) [2025-03-14 23:58:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:58:21] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682353,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:58:21] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:58:23] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682353,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682353', 'tblTempUsageDetail_20' ) start [2025-03-14 23:58:23] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682353', 'tblTempUsageDetail_20' ) end [2025-03-14 23:58:23] Production.ERROR: pbx prc_insertCDR start [2025-03-14 23:58:23] Production.ERROR: pbx prc_insertCDR end [2025-03-14 23:58:23] Production.INFO: ==5525== Releasing lock... [2025-03-14 23:58:23] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 23:58:23] Production.INFO: 36.5 MB #Memory Used# [2025-03-14 23:59:05] Production.ERROR: Array ( [start_date_ymd] => 2025-03-14 20:59:05 [end_date_ymd] => 2025-03-14 23:59:05 [RateCDR] => 1 ) [2025-03-14 23:59: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-03-14 20:59:05' and `end` < '2025-03-14 23:59: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-03-14 23:59:17] Production.INFO: count ==1060 [2025-03-14 23:59:18] Production.ERROR: pbx CDR StartTime 2025-03-14 20:59:05 - End Time 2025-03-14 23:59:05 [2025-03-14 23:59:18] Production.ERROR: ========================== pbx transaction end ============================= [2025-03-14 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682358', 'tblTempUsageDetail_20' ) start [2025-03-14 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID ('1','1' , '14682358', 'tblTempUsageDetail_20' ) end [2025-03-14 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682358', 'tblTempVendorCDR_20' ) start [2025-03-14 23:59:18] Production.INFO: CALL prc_DeleteDuplicateUniqueID2 ('1','1' , '14682358', 'tblTempVendorCDR_20' ) end [2025-03-14 23:59:18] Production.INFO: ProcessCDR(1,14682358,1,1,2) [2025-03-14 23:59:18] Production.ERROR: start CALL prc_ProcesssVCDR( 1,1,14682358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:59:19] Production.ERROR: end CALL prc_ProcesssVCDR( 1,1,14682358,'tblTempVendorCDR_20',1,2,'','CurrentRate','0','0') [2025-03-14 23:59:19] Production.ERROR: start CALL prc_ProcesssCDR( 1,1,14682358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:59:21] Production.ERROR: end CALL prc_ProcesssCDR( 1,1,14682358,'tblTempUsageDetail_20',1,2,'','CurrentRate','0','0','0','0') [2025-03-14 23:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682358', 'tblTempUsageDetail_20' ) start [2025-03-14 23:59:21] Production.ERROR: PBX CALL prc_ProcessDiscountPlan ('14682358', 'tblTempUsageDetail_20' ) end [2025-03-14 23:59:21] Production.ERROR: pbx prc_insertCDR start [2025-03-14 23:59:21] Production.ERROR: pbx prc_insertCDR end [2025-03-14 23:59:21] Production.INFO: ==5603== Releasing lock... [2025-03-14 23:59:21] Production.INFO: pbxaccountusage-command-pbxaccountusage-companyid-1-cronjobid-16 #Stops# [2025-03-14 23:59:21] Production.INFO: 36 MB #Memory Used#